设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6131|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
8 g) D* q( c- c4 G5 `6 f        seedTab:table[integer,integer,string];
0 S7 a! e+ ]$ j& M$ T+ Edo+ ~4 c0 w* |$ C7 L3 b% D
        seedTab.create;; Y, g/ k) U; R; V: }, }, G
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
. a* n! ~  ^3 v: v5 p3 M        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
. f( g' H2 o1 ~  h. k        seedTab.writeRow(1,3,1,1,"Lead time");
1 L0 f: L( u* g: e. a        ' @# \2 e" {+ z
        setSeedTable(seedTab);
% g* N- ^0 U* [( ~6 ^; q. R        eventController.end := str_to_time("3600:00:00:00");9 q5 `6 }; c. f6 @7 Z9 f# W
end;" L" I$ I* P. y
- [- I- N$ v( o
! L) O) V0 f7 J
$ n& D/ T" {6 g2 K7 m2 T  p! ^( L
代码中1,1,0,18 E. C3 `) W7 V2 R4 s
           1,2,1,0# G+ A+ b) F# v  W  b
            1,3,1,1        
/ B  L6 I' j1 _$ c5 o/ {分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
) I5 ]$ j! n1 Wdo
; ?  g8 L! \6 G9 C" B        seedTab.create;: I( B! d5 t: Z/ Q
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 20 M0 N" h: b$ i) H
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
5 [) Q5 T9 i; I) \9 s: F6 B' {% w                seedTab.writeRow(1,3,1,1,"Lead time");
( M$ [0 S. m. ?  |7 C! U                print seedTab[3,2];
: H4 f5 }6 i6 i! u$ X
8 h2 g8 w* C4 O8 ~-- ……& S  }" F" K$ n5 t: M
end;
0 X; [  U$ z2 k
9 G: W. n% H+ a0 C/ U/ S/ k8 ]3 p<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
& f- |3 |" [  u' ^4 f' J这个说的也很清楚 : ~" X$ k# L0 [( v& 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
* \2 ~- u' r3 T( d0 @& P$ I% C你用下面代码输出就知道了
2 S( ~% T" W: r+ k" Vdo- h) C: m4 E! D" Q
        seedTab.create;

4 U) h* J/ s3 Q( d. D( J  @% M, \谢谢啊,还有两个问题需要请教6 K: f* x- V" g8 W: }
+ x2 {" K6 _2 z" Z" Y
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);! H9 ]$ N2 p4 U! H: _( a
     SizeOfDemand是一个1列4行的Table文件,内容是:
/ D% w" Y9 f9 j7 f  h) d$ }         1! y5 L5 J; _* g5 X( C+ r
         2
; R; Q7 T; l, ~) f/ g         2
  \7 ]6 {; k$ `9 R         1' Y, N8 P% I$ L

& Y, Q- `' f1 ?& p/ [* t& T2 M# ~9 \- q' e* @
$ ]2 z4 X- h6 P6 N# v
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); ( U$ t4 X, r; A7 ]9 R! s
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
! K" O% _8 d4 x2 s
( Q: |% [3 z% v( S/ j8 }$ U6 c) M* {( t) F5 e$ Z3 d# ^. u: |7 C
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution9 s. T0 C! y' G! x! e$ @
Name in Plant Simulation English/German :Uniform/Gleich
& }+ C$ |3 V; J" I: W3 s
9 o! T' {  h1 y, B- c为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 . N& w' j, Z, o8 N) X9 U
Distribution:Uniform distribution
2 z9 H0 `) A/ I) w" SName in Plant Simulation English/German :Uniform/Gleich
3 z4 \& ]) b1 ]6 Z
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-26 14:45 , Processed in 0.021271 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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