设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6346|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is  _4 d2 s) i, n  M5 L
        seedTab:table[integer,integer,string];
" h# J8 O, J) l8 a$ o* [do
2 A5 @. A7 U" Z- J        seedTab.create;
6 }) n3 y1 e0 M        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
: q3 M. X5 n; u        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
3 v2 D. K7 w; V  v: Q        seedTab.writeRow(1,3,1,1,"Lead time");7 d+ h3 l5 a" _1 x+ ]
          K) F0 R3 v8 y% ?7 S
        setSeedTable(seedTab);
: j* K/ ^. W9 f) }+ `5 b        eventController.end := str_to_time("3600:00:00:00");
/ R  H0 s8 v! tend;
8 D6 ?. q! c, e# N% ^  f
) p0 ^: U- F' z0 U$ m: g! j& f- I) x' g0 a
' F+ M9 ^" z+ w
代码中1,1,0,1$ n5 i/ t! y: E. H
           1,2,1,0. t# z3 t4 T; e7 |1 d
            1,3,1,1        
8 q9 c' B4 _5 I! A, k分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
  y5 X; ^# f- ?* D6 ^% \* Odo* X6 V( n+ O' I' i2 ~# d8 Y, Y' K
        seedTab.create;
" ~: P+ p+ L4 O0 _        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
# j) A- k& |1 Z; q- @  Z) i3 E        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
3 m7 [& c* `% r3 s3 |2 G                seedTab.writeRow(1,3,1,1,"Lead time");( P) w" O9 C4 X
                print seedTab[3,2];
2 F3 q* U5 H. h, k7 k
  ~- |' O# f0 F  E-- ……
* J# ?1 ~* O0 E8 e4 O) S6 {end;" @: W+ K' U# S& ]! V1 s! _
5 y' x+ d: d# U0 A+ C4 b% U1 W
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);4 G4 R( G* i: Y9 x% P$ r
这个说的也很清楚 - r# B* s' p6 A$ R3 D: O
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
/ n/ ], u# {8 y, o你用下面代码输出就知道了1 e2 H- V+ g9 g0 C; x
do) R. R' t' c$ U4 m4 ?+ X1 H
        seedTab.create;

. _: Z# Q; d5 Y8 a9 V) W$ N9 ]谢谢啊,还有两个问题需要请教
& \" b# q% N0 t" `
. v/ h% C0 h1 c* ?0 ^; T1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
6 Q3 `$ C) g# X     SizeOfDemand是一个1列4行的Table文件,内容是:- N8 I, B9 ]( o- v' _+ t
         1
: j8 P5 g6 x. t2 A2 X         2
5 k; g" `5 Z4 A" V& _0 U         2
2 S) r7 W( |$ u* w- ~  {         1
6 A/ o0 U1 d/ A/ c
* x5 U; n  t- k- A6 D' f9 a/ F* i3 b. u2 g& _
0 t* n9 Z2 ^- c
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); : {7 v/ |3 G; l  W* s
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思( m2 u$ E, w1 N) K- V
" `& @8 N+ [5 u# A; y" X
, Q/ \/ |* c4 [& [" C
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
( }/ I8 W; c* L5 Q' `7 C7 tName in Plant Simulation English/German :Uniform/Gleich
, M& h7 e' K* t  _
5 h! D9 k& W% E: D9 W为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 7 M  A# e4 Q+ ?# y; M) ~
Distribution:Uniform distribution
+ Y+ a, g# T. f$ u4 p5 nName in Plant Simulation English/German :Uniform/Gleich

1 |# T8 O4 L* B6 b# O1 k谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-23 06:23 , Processed in 0.021487 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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