设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6990|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is! H  w' p1 h6 x9 n, t* L" i
        seedTab:table[integer,integer,string];, ?5 y0 H( F- X& |0 j/ W: j5 ]
do
( L) R+ O& @6 Q0 S, K2 U' q! o3 Y        seedTab.create;
5 G/ t. V8 w( ]* h, y5 f( D        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
5 c8 h: o( F( l; z7 b        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
/ u1 R; [" r, J+ e        seedTab.writeRow(1,3,1,1,"Lead time");
1 I. `5 I) q' f. e+ X       
& K5 p* x9 r) D5 I1 Q7 @        setSeedTable(seedTab);* u; a# k4 A& l$ o: m
        eventController.end := str_to_time("3600:00:00:00");
+ s0 ]2 G2 w" {2 G, {2 Rend;
1 V# |$ @6 ~$ ?3 z7 c, t2 r) Y: T  G; p, T$ v# `( F

8 d5 \" Q9 t. r9 s
+ V3 p# G8 }) j0 y) O% j代码中1,1,0,17 X* n0 h" e  g# v  _
           1,2,1,0
5 v7 N- g5 n3 r            1,3,1,1        3 ^( f% x; D- k3 u
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
7 V  `1 @) J- d8 a9 O. gdo& q7 i0 [7 T2 Y$ x
        seedTab.create;- q) }: H3 t$ C, A4 N+ P
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
$ s- l" u5 E0 }6 I- D5 H" r        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
) }. y# I7 d1 x5 R6 x5 m+ _                seedTab.writeRow(1,3,1,1,"Lead time");. \1 d" @  f7 O8 D, Y& Z. R( M
                print seedTab[3,2];
  X) G: ~& S' I9 i% r+ N/ e  q# e( ?1 b' O5 f
-- ……
7 B6 [! \: q( s0 J0 N. Hend;0 x5 G9 W- f- f5 M; d
7 X* l, s1 ^2 }) I1 @: Y( n% S
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
& ^" G! ]8 n$ O5 Z# A5 u这个说的也很清楚 + f. Y; e; Q8 h6 V- d) _2 \; N
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 F% r2 E6 R0 V+ r" B
你用下面代码输出就知道了
& w! B* R. i. K' Sdo
/ N$ B/ c6 }+ Q6 m        seedTab.create;
+ ?" }. n! W& f9 l1 D- |
谢谢啊,还有两个问题需要请教
5 G' R" U, |) q: p$ U& b& ]
' [; U" U- n2 p- P1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);4 b3 ~0 l0 f$ A6 Q) K
     SizeOfDemand是一个1列4行的Table文件,内容是:7 x& X* L; G1 @: ^
         1# L3 \3 e8 {6 Z( S, s5 g. @
         2
  x7 u. M8 u8 ]         26 x# L" {  W9 w. U$ l
         1, r1 K  F, z, d, z

# L- |; i: \/ ]8 x+ l/ z9 c9 L: l( }4 M: p8 P
; l. ~. v4 k3 L: s
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); 8 i+ \* e/ B2 @% q1 ?
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
, X$ ]5 e6 V' }& x8 d# ~0 Z2 S/ Z: H  S
/ h3 [/ ]. I7 I( A% E
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
' w% R/ T" H3 B4 M  d* sName in Plant Simulation English/German :Uniform/Gleich
# q9 W! a: e1 u6 B) V# I- [5 c8 r3 c3 z6 v" ?
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 . _+ ~6 [" I' E& ?
Distribution:Uniform distribution
2 j: p7 v% Q3 o; o2 U: |. c6 IName in Plant Simulation English/German :Uniform/Gleich
* Y5 r0 g* n; v, R
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-22 04:54 , Processed in 0.017794 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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