设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5853|回复: 4

[求助] em-plant仿真技术教程352页库存参数仿真 代码求助

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
5 o! {" f7 N0 R        seedTab:table[integer,integer,string];
3 V5 r* j; \. Hdo! p- c% U2 _) r5 s4 L" M7 t
        seedTab.create;9 s% }; K* H3 G! F- z. K1 a
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
) w* i; H+ a+ l6 x        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
+ q' r$ R: M9 F6 I3 C6 u# N# ^+ h( k* V        seedTab.writeRow(1,3,1,1,"Lead time");
8 h$ `+ `# ^& e8 d0 t       
1 [% }' D$ z) f$ q        setSeedTable(seedTab);
3 @4 D, q( M) \        eventController.end := str_to_time("3600:00:00:00");
. v0 v: r& v- Q! b, w- D" uend;( s+ d! t/ M) z- I# L  p

2 T  Y( ]0 m8 c- c" [* `0 F
# W2 B3 B, h# S; u
3 h& z4 v: N9 f1 ?  j代码中1,1,0,1
; q! N  N0 o# ~  B0 J5 j4 f$ o2 {. u           1,2,1,0
1 b$ u3 _& w% l# C; ]: w4 A            1,3,1,1        , t. b, }+ s0 l/ B8 N
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了# s0 }) K- c) o- r. v2 E$ y5 N
do
# N- s6 E5 O7 @5 l0 O. Z6 I$ E        seedTab.create;0 F7 g' J* r* [9 n$ p
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
4 f4 y, @+ }9 M        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
1 \7 b$ R6 a* O                seedTab.writeRow(1,3,1,1,"Lead time");& {: u8 I7 B' h, I: K
                print seedTab[3,2];
* o2 W7 w. ?# K5 S
8 d  R. d' e0 j/ E( L7 R; X- P-- ……; L: o* }2 F) p) U& P. A+ g
end;
3 \" \# m- s" l. x: e! U
' I4 L8 i0 j2 `<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);1 a9 T7 I7 N$ V0 A6 J
这个说的也很清楚 3 Y2 ]5 e# D8 P& c7 b2 o3 U; Q2 S
writeRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 8 K6 q$ G0 A+ P' Z+ P3 Y) T
你用下面代码输出就知道了: ]$ g- o% J+ H
do1 }# `8 d. t7 P4 T
        seedTab.create;

- c" p1 v1 Q5 f0 @! J谢谢啊,还有两个问题需要请教! @7 c6 s7 _( d4 u. E% d
0 Z2 r+ o8 I* E
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);0 T9 s( U2 s7 s2 t; x% t
     SizeOfDemand是一个1列4行的Table文件,内容是:, m  v) O$ ~9 e8 Z+ T: q
         1
9 i" A% I! _# c$ x         2
: s! n9 E/ [* h1 `2 w         2
8 q' {0 F* L# T3 a4 X+ M& [3 l4 c         1
- H4 b, `$ |+ F# p, |4 ~& x# a5 Y, z/ o7 D* k' y1 Z
) |" a" Y% U( L, _

+ l7 ~9 m& T/ z6 [1 r+ V2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); 7 y" h# i) r3 f
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
+ ?. o- H% X$ i9 i
+ D9 H- I5 I: m/ i4 v9 W6 J* x$ f, Q, K4 e9 d- Z% @
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
* Z6 ^4 z* i: R8 AName in Plant Simulation English/German :Uniform/Gleich
+ @$ A6 c2 C* T( y1 [! m+ `3 {/ X: r4 m% H1 S8 |
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 % t/ V: X- d; q3 y8 E- |& \+ L
Distribution:Uniform distribution
. ~- C& }0 w# x' l" c2 I0 yName in Plant Simulation English/German :Uniform/Gleich
, B1 C; y( _* Z! q8 f, s  a
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2026-2-5 08:21 , Processed in 0.022209 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表