设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7225|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
3 @' d3 G; @& y- ~/ ~        seedTab:table[integer,integer,string];
+ ]' ^, s  A9 V/ a# [do* b/ s5 o) d, T1 E! ~. q1 C
        seedTab.create;0 W" d! ~: n# u5 i1 A1 z' F7 C
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
1 Z9 t4 w" X) ?9 b5 C& z        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");, }; J- S1 K% ^0 H/ E1 S' J0 p9 r( J
        seedTab.writeRow(1,3,1,1,"Lead time");
+ Q2 S  D" j" i: I        2 |# E0 l, o6 d* c: {
        setSeedTable(seedTab);
9 ]8 r0 O9 S7 \        eventController.end := str_to_time("3600:00:00:00");
2 Q4 f' q7 a0 A% u- \end;
5 R3 C) W8 ^2 o+ k: q9 j
, s1 |. L3 D2 G6 i# B- d
' s7 }5 n, M4 C# i
) F* f- {* b' S! o* P1 j! x1 S: l; a代码中1,1,0,1
, B* C% K0 b$ }* |1 k- T1 B           1,2,1,0% i6 p+ O, F4 T" j
            1,3,1,1        / U$ p& C/ m  c) G4 Q0 ]
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
; U0 t2 x$ s$ `do
( B, r" V. B" x# ?0 i' d4 y        seedTab.create;* a8 B( q6 o; D) ~1 p
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2# d7 Z% r- ^' k$ Y% `1 t
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
/ [- c7 M5 l: R% U, ?1 f                seedTab.writeRow(1,3,1,1,"Lead time");  I0 @+ a  u, I$ c3 E1 `9 x4 |
                print seedTab[3,2];
5 X7 Q- E; J. A9 v
) Z- R6 V. |8 E. f-- ……. k; n# t0 k, w+ ^: a
end;6 P( c. [- v. [+ l9 l1 a. @" T

8 l3 N9 L+ X' T- S  W5 P<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
% Z7 Z$ S& d8 d/ }8 y$ C; P4 A- o这个说的也很清楚
7 K( [7 K' r; }6 k( n0 S* DwriteRow(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 Z: G) [, Q3 Y
你用下面代码输出就知道了' ^! |' ?# D  _: i
do1 q& i% M& s' B+ j
        seedTab.create;
& r+ f& h0 x; @0 k: b- n. ]4 B: t
谢谢啊,还有两个问题需要请教
5 Y( j# n1 g8 K' R% W/ ]) u- o; U+ ]$ ?7 m- L
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);; `" s# H1 {% n
     SizeOfDemand是一个1列4行的Table文件,内容是:
4 @1 r/ L$ g. `' S: Z2 G  p, P         1' j7 O5 n" _! D
         2
) k; @7 D2 ]- `. w: s# G% i8 f, j         2  `% U6 ]% b* J! v; W6 T
         1+ M5 [0 q& X. g( h8 D. O

/ p; b% I+ \; l
" t6 M' `" f9 V# z, T
; f6 z6 O* {. w8 P# m' ]# J  q, O2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
. o7 d% I3 {! w. l; Q- e9 {/ g  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思2 l1 E( r9 s( G1 ?8 E9 Y8 w

1 ]+ H- o) `! y2 G! |1 z8 ], t* o+ S* S) @1 f
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution4 ~8 `: ^9 s" U! Z9 h% h
Name in Plant Simulation English/German :Uniform/Gleich * U! \( `  E- g, Q2 r

1 \& c4 d& |2 m# L+ F6 o! f$ l! v为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
- e& X2 O& z' h+ U( u- y, F( iDistribution:Uniform distribution
& y! e) c8 L* oName in Plant Simulation English/German :Uniform/Gleich
! }& E2 P7 Y, U
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-4 13:34 , Processed in 0.035348 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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