设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6395|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is9 T+ X( g1 \" H" A
        seedTab:table[integer,integer,string];; j* d3 g" D* K6 ?, w; v4 y/ M
do6 p4 ~: i! w3 }) B  i* A
        seedTab.create;4 e. O8 F" X5 L( q1 G
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
+ F0 Y9 A; u9 x9 c' o9 p+ X        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");0 h5 {9 S, m( g! r4 C
        seedTab.writeRow(1,3,1,1,"Lead time");1 D# w* v# f) I  `! E  n, W
        ( k6 S* j2 o3 o6 g$ K2 H9 g, S
        setSeedTable(seedTab);# _! {9 e& V5 T) Z. h0 K
        eventController.end := str_to_time("3600:00:00:00");- I5 V! X# G/ i9 k9 P( ^- G
end;# m) ]5 d- v6 n. v/ c9 }

  s* f: }. C- ~& ]" G
0 t8 [2 ?" ^+ ?4 ]* t% x2 q1 V) s8 A3 ]; S' z' J
代码中1,1,0,1- S( W1 N" h6 Z; n8 o
           1,2,1,02 Q1 q/ U3 ]1 p  m2 g
            1,3,1,1          h; }& f6 T$ X
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
- D, Y' L3 J6 W4 C2 _do
% c1 }$ v3 g% a2 D        seedTab.create;
  U7 w$ _, e5 q, N* w        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2) r9 I% q$ E; A- g' _# A
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
9 M4 _8 Z, Z2 c4 W                seedTab.writeRow(1,3,1,1,"Lead time");3 n3 l/ W( q& U7 B" l
                print seedTab[3,2];
: X# z' _0 {5 u, E' F6 ?& h5 V/ A' X( }- x3 s! Q& \. e! M9 ~
-- ……5 `; q& P4 r+ l5 D8 _* K, B
end;' U& m* V: H) o1 q3 f3 ^) g
9 T% I! y$ k+ Q1 D! S
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
5 U/ ~2 V" A, i$ t这个说的也很清楚
' c5 H! o, o- l6 d) F8 ^6 e: T- \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 / ^7 R5 \3 c* ~4 v
你用下面代码输出就知道了
0 ?2 u- h! h$ e1 k- N2 w% A& hdo
: B/ U' A+ `: D        seedTab.create;
5 Y; S4 D4 z8 e* {7 u# s% ^" c
谢谢啊,还有两个问题需要请教
: y& I, W1 J9 w- v( |% {) D! F# f1 T6 d* D6 t  l+ U$ `
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
; f+ ]! `* K$ M% T( R. L' e, M  {     SizeOfDemand是一个1列4行的Table文件,内容是:
5 {+ l6 c& V# k( ~. Z0 t2 K2 g. N         1  _) Y8 d; r  ]4 h: i, _0 @/ G/ v
         2
$ Q$ r+ t2 ^# r6 d$ L( \6 m% o         2
4 c' g% {5 u/ p7 W         19 u  m( ]4 A" U$ j6 K
+ c0 o5 ?$ ?! i1 ?; l+ W8 x; a' W

- h* K" _6 g4 n! R6 q/ }, q) X. s# V) ]$ k$ F5 N4 s8 a
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); * _+ A" ?, U2 G1 C; D
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
- S8 v. h- R$ I1 [; w, M: M2 _1 @6 x( q2 u$ h4 z1 W
2 ?4 A4 j5 X, H3 e) z
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
1 e8 I, q4 f( jName in Plant Simulation English/German :Uniform/Gleich ! h2 T; g$ I* U  ?  k! _
& K' ]" v9 _* R7 P. ~1 }
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
) P) S* [( e  u. wDistribution:Uniform distribution
* z  J. |* ~" j; ]. IName in Plant Simulation English/German :Uniform/Gleich
; c2 Y& I) v& d- E  i$ z* }
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-29 16:57 , Processed in 0.028619 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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