设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5327|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is2 ~" x' R& l6 l6 o6 B
        seedTab:table[integer,integer,string];% n6 \- E$ N  h( t3 F% o% D
do7 b6 N1 ~8 o5 ]% Y& t1 L% h8 [+ k2 C
        seedTab.create;, `0 G/ V1 y/ O2 O7 c' L
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
4 X: _- |, n) n- {5 `7 M        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");) l' d: F" u: w  `: C: g. p& D
        seedTab.writeRow(1,3,1,1,"Lead time");& T2 z( _$ V% \. Q
       
; t2 ]- e8 T8 P' {- W        setSeedTable(seedTab);
- x- ^/ M4 _7 H  t1 h        eventController.end := str_to_time("3600:00:00:00");
3 P, Y: U6 P7 H$ B# N3 E0 xend;
, C! L2 y/ L, A8 M) y1 ]
- M' L+ R8 S2 T5 A( h( J% ~- w, x, ?: n: _7 T% O& M
1 W! V( g/ N& S+ a
代码中1,1,0,1
) w& ?, a* |" L           1,2,1,0: c5 K/ {. n3 R+ t( ~
            1,3,1,1        3 w: e2 o! U9 G, y3 V
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
9 A; o- G2 G+ ldo" I: _& q2 r1 n, C
        seedTab.create;
& G1 c+ s) n9 D" n        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
0 r* Z6 c# V3 I$ [3 T        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
7 G. d- F6 {; w" _! S                seedTab.writeRow(1,3,1,1,"Lead time");
  W7 p& L: @$ n8 k& Z) F- U                print seedTab[3,2];
$ Z" r/ l. P' P% N4 N, P3 V
- T" v- a1 W' i% M9 ~, e* ?- g% }-- ……' `/ B: b  @3 g. }0 N4 A/ `( X& S
end;# G) T' q4 t" b9 T% N) U( T

  i5 \# A9 F5 X  B/ Z<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
# L2 j' q& P; c" Y8 V这个说的也很清楚 7 l( j/ ?7 e$ v) E
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 . ~3 x% ~% f- H+ P/ `* H
你用下面代码输出就知道了
: `9 O5 n" y/ O5 |% ~+ d- U* xdo
% Y' a- M0 N/ w/ r        seedTab.create;
, U1 c) ]4 b0 k* W2 x* M% ?
谢谢啊,还有两个问题需要请教* j% V" c! z: ^! }

4 T' D" w9 Y( W/ y4 D1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
. F& t4 T' F2 y2 f9 X" ^- Y, D     SizeOfDemand是一个1列4行的Table文件,内容是:
8 B' D2 T$ X* c$ ]# v         17 f( i. K9 q6 w, s
         2/ S! d% R* g7 c8 j
         2
3 q5 P1 e: Q9 `6 P; I         1
6 l0 i7 ^6 M1 Z1 B4 s4 s# i+ ~( `& _# }' H3 A

6 Y) i' Y% F1 [# C! _6 q, j. r/ u# W: A: n
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);   ~' v! J7 ^$ d$ U7 g  n% D
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思3 c1 I" Z6 ^5 e1 |' r" c

. I9 c, m! ~$ M3 k9 p0 M
1 Y$ M$ V1 R  P% K8 X  f请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution3 i6 e  Q7 L" b$ v3 c& |& a
Name in Plant Simulation English/German :Uniform/Gleich
( A+ v2 \# c; D) {3 c/ C0 c
6 r% J  z; T/ T* T2 r5 r3 e/ E为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
/ t# t/ M/ Z( q3 f/ \. HDistribution:Uniform distribution7 y) a  y- C, r6 X
Name in Plant Simulation English/German :Uniform/Gleich

4 f+ u8 C7 z2 L$ X! I谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-10-24 21:10 , Processed in 0.017362 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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