设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6115|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is; g9 r; i, Y- \7 y
        seedTab:table[integer,integer,string];
9 a; \& J6 D; g8 h  Z) j' q8 ydo7 h( A' }' u% F, N, }
        seedTab.create;( o1 H2 X8 y7 V) j* W  {- P
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2; |  x! E+ |; _9 M$ m" M3 ^* ^
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
- z0 d5 U+ v& ~; y) u/ S  F! I        seedTab.writeRow(1,3,1,1,"Lead time");
, g% ]  Y: \" T; L* o4 I$ |1 P$ o        * Q+ K% g* b! _6 d# d# e/ A" m
        setSeedTable(seedTab);
4 l3 @! n( |7 H  e        eventController.end := str_to_time("3600:00:00:00");/ B- ~* ]9 g7 V4 l
end;% b% I9 f: l2 G0 k2 ^1 e
2 j* B! {3 _, o$ K0 Z5 h* j% L, W
: H6 t, r- }7 d* H, X& {9 s

6 L& X: p- W4 e% E代码中1,1,0,1
5 n9 b7 w: V# K2 Y           1,2,1,08 j- W7 Z, k. G" V$ V
            1,3,1,1        $ Z+ }3 y# Q% T7 J
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了" [+ {' N) L: J9 b3 N3 C5 G
do
% f/ q3 m: L& y6 ?* y4 e- U        seedTab.create;
% C  I) r# V) {9 T" L        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
6 a( f/ n( e) x" X* Z; v9 B        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");3 [- F8 b& Y, m8 F! s. f) B" Y
                seedTab.writeRow(1,3,1,1,"Lead time");
% e$ i& q+ m! a                print seedTab[3,2];
0 x* x: I. X' t
- X8 f' e: g6 X: ^* Z-- ……
9 E. F6 t# {  hend;/ v$ {6 o7 f7 @, t$ B2 c
" B& N" i; J2 E5 [& O
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);# D- v+ o" R, r  L
这个说的也很清楚
& z+ A4 \! ?8 \' z# L9 h6 u8 T- IwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 4 B/ C& l; T$ X4 N% ~6 B' g) r
你用下面代码输出就知道了' C, }. ]1 D7 Y4 L' s4 H
do
6 R7 h3 h" d! u' m        seedTab.create;

" c$ x) l/ O7 q' Z4 i& H& O# I谢谢啊,还有两个问题需要请教9 e7 V8 v: G0 S  l( D
$ R' O# ?& C. X8 |8 L9 }
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);5 z/ q( t4 K& l. I4 i( u
     SizeOfDemand是一个1列4行的Table文件,内容是:
7 U  y/ ~% x& L/ f. f- c         1
2 Q0 J: R, r0 Y5 n9 \7 l2 s  r         2/ a6 m5 v2 O+ u
         2  f+ g3 C  b  ^: _& z, e; A# Y8 \" \
         1
. Z8 x. [9 J: ~* W; N2 c
2 z' i3 N. ]4 j- d2 N8 n9 }
! N+ W- \8 t, ^- x' f4 r+ I4 J# V$ m% A
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); % G9 l3 U6 u4 {/ E
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
1 L- ~+ e3 [1 _: y1 q7 ?2 L5 k# L7 o0 Q

! Z. O& E; c" W9 b) J请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution: ]+ l+ i0 c3 k
Name in Plant Simulation English/German :Uniform/Gleich
1 H3 |, o* o& ], t) u. J* H' e6 [, H# V4 ^( t
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
( k; y: M; ^9 M# X  @* I% vDistribution:Uniform distribution
3 h& X. T( l) f4 Q6 g/ p4 rName in Plant Simulation English/German :Uniform/Gleich
# c1 r3 C% _/ M
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-23 13:49 , Processed in 0.023949 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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