设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5979|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
: D: f# q2 I" s! Q% W8 z        seedTab:table[integer,integer,string];5 v. }( D4 N7 X2 K$ T
do$ _' V1 e/ t8 @, ?7 a
        seedTab.create;  |& i& R! I" S6 @+ n
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
+ L6 N' V3 f5 x3 ^6 B7 A3 U. c        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
# R. q8 f) }: O        seedTab.writeRow(1,3,1,1,"Lead time");; D- ]2 `3 V8 v% F3 e/ V: z
       
2 M- a+ q( u# i  [        setSeedTable(seedTab);8 B* O0 J  n/ j. e% W4 g& d
        eventController.end := str_to_time("3600:00:00:00");7 L) j* o: x/ r) v1 A/ X) G
end;2 h* H' s4 ]- m: F; g; U4 E
2 T1 d6 W4 [$ i* {3 }$ s
! I- K4 t- ]1 ]0 ?) O
+ i% v$ P2 m( l% [
代码中1,1,0,1- K6 N4 z& }0 o/ ^) n6 W4 e
           1,2,1,0" x# a  \' J: t* K1 T  I: y
            1,3,1,1        
+ U# ^: |, N5 V7 X4 r分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了1 j7 r7 W/ a6 l
do; s+ t4 i% U/ P
        seedTab.create;# L+ V  V) j) g9 S  J* J7 }& C* D1 ^
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
$ p  x$ y7 k6 O  @, `        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");$ Z" K. h+ Z+ u7 r4 ]: w
                seedTab.writeRow(1,3,1,1,"Lead time");
% w$ A1 m* }! {                print seedTab[3,2];
( n( {! n0 Y9 M) U. k
3 G& y3 b4 M& A7 i4 E-- ……) F: ~5 r% }+ i/ f3 v  Y: t0 ~5 W
end;
2 s2 r: f0 M/ R5 R. O- _  v
: h* K( ~: c1 l6 F6 a<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);- V2 A1 i# q5 |
这个说的也很清楚 " u8 C/ P5 U0 E
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
0 c7 Z& t; O, N7 z  @你用下面代码输出就知道了; \( O" L: R1 ^. x0 R& e
do- |3 o8 U6 M) A( E0 r
        seedTab.create;

; Y! {! @& H0 G! l8 }1 ?) v1 ]. [谢谢啊,还有两个问题需要请教
1 H- D, s' K. Z, O" y7 }
% Z0 E) u* P; V) \1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
# L" x' O+ o+ x! Y/ _; _$ x) n% a, O' t     SizeOfDemand是一个1列4行的Table文件,内容是:' P7 x  t1 K$ U5 r
         1
: V$ X- b3 Y1 g! @8 [         2& z. _6 ~" F0 t4 A! o
         26 k4 m. M8 g: v3 D7 J. D
         1% i; g3 Q& v; r! T4 L1 X  Z, }
' {0 W9 `- h/ {' ^/ `' A" O6 n
3 z5 Q8 Y* x* v1 f

# P/ v, [3 s/ t- G4 b5 V/ ^! [; i2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
4 X: W1 |8 V. `1 Z; D) ~  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
- g3 I# W$ _8 g# @
' _* y) [- R/ ~& Y  _" t' ]2 y$ v# T4 d1 R
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution* P& J$ o! T2 g" f8 U' a
Name in Plant Simulation English/German :Uniform/Gleich
2 E3 E6 ^8 e% k- V, x
2 ~$ s$ x* t/ n0 U5 G6 C  ^$ a. F+ Y为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
& X! Q! L# T( q1 E6 V$ Q% ]Distribution:Uniform distribution
2 `! D5 e1 o) ~* m: L6 uName in Plant Simulation English/German :Uniform/Gleich
! X) p9 u, S! l  A' Y
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-28 01:15 , Processed in 0.023563 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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