设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6413|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
* Q0 {6 F# H4 Z' d        seedTab:table[integer,integer,string];  y9 g7 l  x. g7 H9 c( S
do" d; g& H/ j: b* l! _( D( i
        seedTab.create;4 I2 h) T, A; x
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
2 ^, x  v+ ]* P( ~" S7 J1 Q7 k        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
: G0 \& J! s1 f2 D9 F5 K7 @' J        seedTab.writeRow(1,3,1,1,"Lead time");! u, `. n8 L0 f3 W% P" \1 M
       
  P& q" l4 y3 h        setSeedTable(seedTab);* E4 h+ P  @3 V' w0 ?
        eventController.end := str_to_time("3600:00:00:00");1 e% w; V. E4 Z* R  w3 [
end;
; n& l- y9 x; ]  y; s9 L+ k/ f7 i- N. z1 m
# I) j: v0 n* y' ?- [; X( m! U; F! \

# y1 `) W: t% n' ?- G代码中1,1,0,1+ v5 }2 W) p0 I# p
           1,2,1,0
; Y% `) g- G8 [: @. |/ L8 Y. M            1,3,1,1        
& h4 c' m" j' C7 |/ J分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了4 R/ d1 N/ L5 Q( G, X/ O- Z( c# s
do
7 x$ M( b' K2 b        seedTab.create;
9 n1 ~* y) K: Z( L" P: T3 e        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
$ O/ v5 I' I" P: g, G: f        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");1 w7 \: }/ o! v4 P( Q5 G' [2 A
                seedTab.writeRow(1,3,1,1,"Lead time");$ U/ i1 N+ f1 i1 s% G* t) C
                print seedTab[3,2];
8 O6 ~: {5 N3 g" q
1 _- g7 p5 i) I9 h+ T9 }-- ……
# {# L. c: U6 \1 _4 Kend;: d/ S( w) i  {# |$ ?; E
2 U  H$ R) Y2 q& {& |/ }4 ~
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);' h4 `$ J2 o# p2 y( g7 m, c
这个说的也很清楚
! K# R+ \; @& l4 }" bwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 . ?9 a$ B3 n5 G
你用下面代码输出就知道了
. ^4 |! ^( e6 }do$ v0 u% h- T+ O( |# D
        seedTab.create;

# L" ]8 E( L6 [8 M$ x5 g谢谢啊,还有两个问题需要请教; Z( f5 k9 c) Z3 W
$ Y+ D8 C* I0 j) I( q/ Q
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);( r7 R8 @7 M. }
     SizeOfDemand是一个1列4行的Table文件,内容是:' }, C! Q5 r7 ~
         10 I8 z0 {. {% y, G' Q
         2- H& A$ G# B3 X: u5 g. V
         2
+ T* T2 J, e- x& V         13 C8 [  J2 [3 Z' [, h: Y$ [$ X6 p
7 s3 m; G. f9 l/ N

) T7 B# R! ~, M( j$ v$ X& w1 w5 _0 ]3 D
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
- ^- @, |2 o6 H9 y% z# `+ L; b* c  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
, W2 ~; H' b  m) i/ |# w& B/ e) n. b% `$ }" p% i# t
7 z+ W( t. E+ n6 A  Y3 ?
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution; ?' T0 B9 o/ e
Name in Plant Simulation English/German :Uniform/Gleich
# ~% R) s0 m1 O* V* ]. U0 Y% g; {* O! e/ m7 B
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
/ i2 |  G1 w. G! i+ z" B% x& w  KDistribution:Uniform distribution7 i% P; L/ }4 Z! ?
Name in Plant Simulation English/German :Uniform/Gleich

6 B/ w) n6 j: k% z) ^$ v+ `8 N& K, i谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-1 04:02 , Processed in 0.023914 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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