设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4815|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is2 [; L# i1 j7 m) m& _! f) R
        seedTab:table[integer,integer,string];
! L% S7 R0 d" X& F( W% q6 Ldo% E4 Y3 ~7 B8 i% o0 W
        seedTab.create;
- M+ C! Q6 Z5 Q/ S        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
; \5 K+ Y! Q' P+ Y3 v$ r+ S) D4 M        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
2 H, w: |2 O6 ~$ q' B8 C        seedTab.writeRow(1,3,1,1,"Lead time");
! V9 G/ ?! \+ |8 v       
7 I5 N/ c9 j  v0 x2 q        setSeedTable(seedTab);
& y( M9 p5 ^" c; ?( N$ w- m2 c+ o        eventController.end := str_to_time("3600:00:00:00");3 K: P* k7 x. N! s' N
end;5 ?) j) g/ z0 f* c% J

3 k$ E; P! B* B' w4 i9 w/ n8 ?' j
; z0 @- M# w5 l( {8 O1 j! ?" d/ d8 d6 `. Y7 m( Y" s
代码中1,1,0,1
7 R1 v( |' i* E! J  I5 M; T4 J9 b           1,2,1,0
4 `  n7 R3 r) @3 h) f4 a            1,3,1,1          r. @! t" o* b8 U
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
) K1 j( J/ B, }/ n# jdo
! C/ a$ x! O: ?* C        seedTab.create;
6 X2 A2 [& _0 H        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2$ }# m, j! K. J0 e/ J
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");$ Y. A/ D$ Q- `
                seedTab.writeRow(1,3,1,1,"Lead time");( `! x0 u! k3 T  ]' {
                print seedTab[3,2];8 \. [# m( w) N4 ~7 B
1 C: N+ N' `) \# v( y8 M) S4 J
-- ……4 \- m0 Q: K3 I) d( f! T$ x$ `
end;
( q' E7 ]+ j: n2 }5 @& _
2 T) z3 P2 e6 _, m* M5 V<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);* S. n( i' \$ t: D  l
这个说的也很清楚
. Q8 c8 L7 Q7 V9 ~1 L! r& n  z( vwriteRow(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 h. L% F2 O& t你用下面代码输出就知道了  M* x6 {3 t; I9 S
do  i( k7 G$ \) Z9 K& U$ _
        seedTab.create;

$ s( `/ q5 u9 e: {* d9 ?: O谢谢啊,还有两个问题需要请教
: n  ?1 O3 z5 u% L: z% Q  I5 T+ R# W- z; p1 k+ u9 l
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
2 l; Z) @$ c! [6 l! i  X9 Q& e6 A. H     SizeOfDemand是一个1列4行的Table文件,内容是:2 Q9 X* g6 e! B) G; U7 q4 |5 w
         1
. H! o% E0 L, b8 i8 Z( w" i         27 j% N; H) x8 q' D5 [
         2
1 h4 E2 X3 d) ^# k2 O: e# ?         1) l3 r" b" C7 S' P5 D" N( V2 W; ]- _
- y' y; o4 @0 k' ^, g
3 y3 `5 w6 X' w) u- ]

  E/ N- ]- O3 u  Y2 |3 r5 a7 z2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
+ F# Y" D% R& h1 u! B  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
  |- O% a7 }2 m/ U& `5 b, G
7 o3 R& G- w( _5 }9 _- K/ }! R8 S" ~! {
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
9 {1 f5 G. s5 O; u" KName in Plant Simulation English/German :Uniform/Gleich
: W/ B& N0 s7 T" J; A
/ E$ ~. d( x* W) y为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 ( H; k3 o2 ]; {- i8 f9 M7 p; G
Distribution:Uniform distribution
, t9 Y  u+ k% l( g1 j" D/ d4 L3 SName in Plant Simulation English/German :Uniform/Gleich

: Z7 K. Q1 Z, O7 ^: F0 U3 o0 S谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-26 20:53 , Processed in 0.014968 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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