设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7263|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is: d. L9 s- u) m! y3 T1 }: a* R
        seedTab:table[integer,integer,string];: g% A2 t, R* Z2 i% Z
do; A& l+ \* c$ E- z+ p
        seedTab.create;
$ e+ Z2 j3 s6 N        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 24 R8 E1 ]8 o* A7 g% T, a7 c
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");, M) F# a# e- x# m% ~! c* c. k0 t  w
        seedTab.writeRow(1,3,1,1,"Lead time");8 U& H4 X( ^- q$ x# [( d8 L
       
' M) d' @! y5 q6 |( K1 |( d" `        setSeedTable(seedTab);
( s2 ]' K, P: V8 \        eventController.end := str_to_time("3600:00:00:00");$ C: e: X; K. U- L# V3 S
end;
$ m5 G* Z9 O- _' m
1 g6 L8 o  W& R+ f* Z! a7 O+ x) l
8 R; v" W6 K5 u6 T# f0 q- e4 s
" K8 K8 K/ n9 P代码中1,1,0,1
& {6 n) D' C# Y; x           1,2,1,0
! e; O. x$ \. _- n- h$ D$ p5 M            1,3,1,1        $ i. ?4 s$ U, M+ o+ j- {
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
+ Z' ?% U& w/ r5 t' n+ pdo" R0 W6 b$ R" X* m1 P
        seedTab.create;
, D6 Q9 f2 z1 U& E- |0 l4 l        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
$ K; g, e$ P6 T        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
: h2 L$ }* g3 k) e9 e5 u$ @7 R                seedTab.writeRow(1,3,1,1,"Lead time");
/ C' V3 `* s. j5 ^1 ]                print seedTab[3,2];4 G7 p! t5 o6 A. l
% y2 }, u0 z8 n6 G, r
-- ……+ ~8 y1 m; K2 V
end;2 u4 U+ ^' Y6 w) [' y1 ^: l
& ?+ W- ^* j* r& n: p
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
( h% p; f4 k' T这个说的也很清楚
3 D; ~, |# D; _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
# }5 E3 q2 p- s你用下面代码输出就知道了6 l2 K. Z' R' i
do- u% l) ^+ {, n. |: D# m) m3 K9 Z
        seedTab.create;
- v8 q- q* D4 w3 }5 J
谢谢啊,还有两个问题需要请教3 c8 _9 s' B  U" R

0 i( U: P$ X1 a7 |- d1 |2 z1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);: @6 H% }: f/ [8 [
     SizeOfDemand是一个1列4行的Table文件,内容是:
4 F7 \7 r6 J4 q/ T$ n         1* V/ A5 g  P  f1 w9 Z) I& l# D
         2; O) X2 B& E+ h; E1 x
         2/ [9 ~& R" q# E. c7 }
         19 z2 c+ v! S) O' t9 b
0 @0 j# f' p4 |% I8 s
3 p* ?, i/ W+ t
' H2 x6 ^- H/ ]
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); # l; k9 |& J& [* J* U2 a! `* P
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思# G% a# l( o5 w3 t8 b) R0 t  _
  n+ ]4 U4 N& Z* e- {# L
. M# _, O9 m/ Z7 l' v
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
/ l, J7 i+ h% I( H+ jName in Plant Simulation English/German :Uniform/Gleich & |0 X1 ]1 X2 {4 o& i
" q1 Q3 |9 }, w! P5 \: C$ `
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 0 C( S& a( s6 c) S8 I! ^9 q1 y9 S
Distribution:Uniform distribution
- X* h/ ^& c9 M( ~2 a0 \7 ^& p( CName in Plant Simulation English/German :Uniform/Gleich

0 m& m# {; q. m谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-10 09:37 , Processed in 0.018215 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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