设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6654|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is" k: r0 B9 ~* `$ E7 x
        seedTab:table[integer,integer,string];% s9 v  l  N$ p, [$ r
do9 e' D5 r0 f* ?; `# s# [9 |7 Y
        seedTab.create;. b, F5 D" k- i+ {
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2* K% T* n. y# L6 x* [3 r6 s
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
) l1 c) {- ]( i5 K8 K7 L/ q; P; {        seedTab.writeRow(1,3,1,1,"Lead time");3 ?+ ]. m2 O/ v2 g* {9 e
        : {* j7 U3 c* b! N* _2 K+ s3 j" L
        setSeedTable(seedTab);
3 S- Q9 @& L. a1 s5 a        eventController.end := str_to_time("3600:00:00:00");; w: ~) G% y; M$ U
end;- q3 K6 i& M- v

9 _! P2 {+ k) j& ^. W; l
: u9 j7 t) w3 C0 }/ f8 @) b0 `. h9 ^; V  |( |
代码中1,1,0,1/ m  g1 |9 V" E, u$ O3 h  {9 _6 U
           1,2,1,0/ H$ `$ y) r1 N; t9 m) Y
            1,3,1,1        
& K5 c% b. i2 c: Y& x分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了; ~1 V" F) k7 E/ f7 `; J" J
do0 ?6 Q" D8 S4 x  X5 l
        seedTab.create;. ^" M7 k4 e! E$ r4 J; p
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2) S# x) d+ U. f4 s7 ?
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");* E+ J  m- j4 L$ W; p) x
                seedTab.writeRow(1,3,1,1,"Lead time");4 B: Q; ]5 ~6 B. }6 k3 Q
                print seedTab[3,2];  ?( G7 a: m7 {$ E/ n
8 p% o0 b3 K4 L
-- ……
2 l6 I. ]( W% N% ~! j# j6 yend;) [% ~6 H6 E% L" t1 t

- L) i5 F) P: j; m* M<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
2 ^. d1 I2 D: V1 s, i! @这个说的也很清楚
% T' c" n+ Q6 ^1 w4 ?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 9 o2 \5 |7 o$ p
你用下面代码输出就知道了4 U, p3 J/ G/ p
do
  }% F0 N: C- c  e- ]; c. h$ f9 c        seedTab.create;
8 z$ u0 M! }( }' q6 w2 m  L
谢谢啊,还有两个问题需要请教
! h/ O& Q" X- a$ `7 c
. k- z5 w+ z5 M: c7 F2 d8 D1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
' F* q$ @  |0 k. ?. q     SizeOfDemand是一个1列4行的Table文件,内容是:
6 T7 N  S% K, S3 {* {- }9 V, |         1- y$ U. t4 r) F( h
         2
+ F! E1 e; t( E" \; d         2) T* I" o. L+ c7 A2 b
         1
( L; r' [$ U( Q' u8 h' [1 P  p
# _- f* U0 W! |" Q! w7 M
+ B; d: I, \: n* E  C% l1 ~. k$ V9 b7 k5 e
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
  q  t# \1 f% d! l1 t  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
7 o" g0 }8 @  t1 a) Y; I( G# D! x1 R+ }& ?+ x0 K; K
+ d5 {. o' ^: O
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
( P1 f  e9 z3 c1 a! a6 V; X) N7 UName in Plant Simulation English/German :Uniform/Gleich
/ A5 t% p, G9 ~  z" C
: Y. A# Z" i4 m3 ?' h( \, B为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 2 G% Z  z4 c" [
Distribution:Uniform distribution+ @" d8 K; T: J( A! i
Name in Plant Simulation English/German :Uniform/Gleich
/ P& s* Q2 O4 z
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-6 09:26 , Processed in 0.016968 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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