设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6579|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
& G) n6 ^" i  t6 x+ _        seedTab:table[integer,integer,string];
2 }* d* K+ t, ]" f( Ddo1 n  S# |: ^0 g, q
        seedTab.create;+ Q/ ]: y; o; k4 h# }3 n
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
- f* P6 Z) j$ y9 b1 d        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
: D( t* O% I$ w5 o# i5 {# I        seedTab.writeRow(1,3,1,1,"Lead time");
- p/ ], r: [; c% o3 ?       
- ?7 B: |# J- E, A/ }9 W4 `0 e( W        setSeedTable(seedTab);
3 O$ `& g# W4 g3 J        eventController.end := str_to_time("3600:00:00:00");
6 O  H7 q  H7 f2 k1 R; ?end;
" [: y  n3 K: X0 V9 k  H/ L. u
  X- h0 x' d7 k9 Y1 D6 ^2 q
5 [/ u4 ?) _" I- X0 y% a
代码中1,1,0,1
6 n2 e+ N* y* E5 U8 o5 _" X% Y           1,2,1,0
5 y% a; I) [8 Q: u! G            1,3,1,1        
) L4 ~  m& ?- o: g  y分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
+ `# Y. e5 \9 udo
6 i8 S8 K, h$ q2 Q% D* h        seedTab.create;6 L& ^6 Q: @* u. X) z
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
( E2 O! t8 H1 X2 Y2 {        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");! Y7 ?+ e- T$ @/ m4 Y+ F! \
                seedTab.writeRow(1,3,1,1,"Lead time");8 m$ Z: v1 s( z' k6 s) q: D
                print seedTab[3,2];/ c# ?3 b  f+ }8 Z/ `- k" E
4 g, b. w. d% V/ R' Q  ^
-- ……
# p5 ]0 s  F4 X6 Kend;
% m. ]! G0 w$ q5 w! p% w
( P" \( H; t8 J/ U<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);3 ]7 B  h& Z4 G- L; j% u* t$ r
这个说的也很清楚 ' e$ b! A6 W2 j$ k
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 " Z5 a, {) E" m5 g* M$ |
你用下面代码输出就知道了
$ [* B8 ?5 p: ]4 j6 |$ S  Ido
7 ?+ `, t( _, ~; I) T& X( J        seedTab.create;
* \7 l0 m, W1 d2 |+ d3 V6 u9 {$ g
谢谢啊,还有两个问题需要请教
0 J/ T2 R" x* {3 Y  W
, |- R9 _+ U5 Z1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);% m* g: g0 z' _! M1 B
     SizeOfDemand是一个1列4行的Table文件,内容是:! K! x. H+ B8 M- f2 U2 s4 n
         1
% H9 \" B. {2 b0 c' {         2
1 ?5 l" v5 e2 g: f9 ^- D: V  a         2
1 \( b; T' V: k( S. v         1
7 ^& d' \' w+ ]% |+ Z2 c  x( m6 }3 d! p- [5 O( @) }

9 i' ]- ]3 Y! _' Z" c% d: v3 U
2 Z  X, ^' G# ]2 \: @0 \2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); 5 ]3 R; S6 U! I" W  ?; p  D
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
3 M* ?, v' q$ w1 @5 O3 ^/ P2 F# k- S& T+ a' z2 n# ^; u9 N
; o7 K% u1 V9 @5 }9 v9 o9 ]
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution2 {5 @5 V5 s- q0 a! i2 e* T
Name in Plant Simulation English/German :Uniform/Gleich ; v( S+ @, K; J" V; q9 Q! I+ j& W. ]; |
7 N2 M$ V8 S2 i- A( y" y2 t& I
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
0 m# Z* W$ G$ V6 ^# A- Q/ m7 RDistribution:Uniform distribution; R+ p0 W5 s. \5 P7 S- w
Name in Plant Simulation English/German :Uniform/Gleich
8 o4 c, N; A+ \* G5 L9 M, ^: g" b$ M
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-23 19:24 , Processed in 0.022896 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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