设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4926|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is5 s7 N$ w2 G: r# o7 L
        seedTab:table[integer,integer,string];
" V& V! k$ L; v3 Jdo
  a# [$ J& j" v0 |5 A8 v        seedTab.create;
' P# c  M& g& {% Z4 l/ z        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
& w1 x8 ?8 `, K; K  z: V" P0 f4 w        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");  L* z( y' Y) X# ^# W8 [
        seedTab.writeRow(1,3,1,1,"Lead time");
$ k$ f# d( S- p6 W5 w: k( e       
8 _" `; a! i. |3 T& r        setSeedTable(seedTab);
- T( {3 m4 x9 e' m  x% u( u        eventController.end := str_to_time("3600:00:00:00");2 M6 l( i0 B( O) Q* E
end;! h# F$ y3 O# x& j8 a6 F

5 K/ t' i' b9 g, f3 N5 ~
! B5 }& \( X" ^7 {8 z7 E7 e2 ]
$ D9 q: u6 |( Z7 H* i代码中1,1,0,1# }) y$ y/ {4 i# Z7 V$ b
           1,2,1,0
4 K) z; o; w' `/ p* f  f3 d% Y            1,3,1,1        
# X3 w5 n/ i+ z9 R7 x0 `1 o8 w5 D分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
2 @4 Y$ p1 v4 H! _8 w9 ?" H9 rdo  ?& j$ F- h9 R  f
        seedTab.create;
& s5 S4 i" O4 ^. U4 X6 [        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2; f7 n" z0 d8 o
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
) t1 O  C* u# Z, h' w/ t                seedTab.writeRow(1,3,1,1,"Lead time");
) W! O3 n. }, R: [* J                print seedTab[3,2];
( B/ d% ]6 d8 w% [
/ ^* D, H. C' b* S7 l$ u+ R6 r-- ……
$ A* A; {, f9 R7 w/ \end;& x$ R! w1 N9 x0 ^) w

9 G' Y5 |9 K. k% f! J5 u( K<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);3 a1 H: `( w3 E% x: B* u
这个说的也很清楚
  F. v+ W& d0 _/ x+ a$ D& 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
) |# L2 U5 d+ L你用下面代码输出就知道了
) J8 |8 H4 @) @9 ^: Pdo
/ u. [. j; H# u: c$ _        seedTab.create;
1 T2 w$ u4 b$ V" X, @) q2 U0 t
谢谢啊,还有两个问题需要请教" c9 ^- ?* x: C6 Y& o

( k. y' h9 i$ J$ ^* T) v+ A1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);9 z+ h( a8 O9 j. n3 e
     SizeOfDemand是一个1列4行的Table文件,内容是:, n- ~9 w: U; e& O) u0 p1 z! U
         1
8 x  m1 g7 i& \  l, _9 _0 e         2
: {1 T" n9 R4 u: l8 @         2) L' ^8 i# o. |. k
         1' R8 S  P- a/ j/ o0 N( `$ [" A0 C

- t6 M  t( q( y. }6 u! u9 ^0 M1 P* _" _8 V/ i! c5 p
* x) S/ A# u! `. f; o
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
: q; x9 {- h9 V5 b  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
: R8 |! }; t3 i9 F0 S2 s$ \
/ Z/ K' T. d7 I& Z' x
5 f* I$ L  A/ r5 K3 N6 H" v6 n请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
! l" ?9 O1 B* B2 k1 w* F' t* H, mName in Plant Simulation English/German :Uniform/Gleich
, e3 o- x) |2 P, e6 Q, K1 M' M4 P# S; w
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 1 n$ d+ e9 L. w0 E
Distribution:Uniform distribution3 Y1 L; \5 R4 _2 V% M
Name in Plant Simulation English/German :Uniform/Gleich
: c" a0 y0 j7 N5 Y! A6 ~( O
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-7-29 14:04 , Processed in 0.017499 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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