设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6957|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is- W) a* n# e" I( o8 M3 L% g$ M
        seedTab:table[integer,integer,string];) G% }) j  c2 @" G+ V7 _& _. v8 U
do) {5 p8 ^$ _' G$ D
        seedTab.create;  N4 ?1 b: F! K
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
# b' U3 z3 R) V$ ?        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");8 z* T6 o& U6 S
        seedTab.writeRow(1,3,1,1,"Lead time");
9 r4 W9 K# q2 b        7 _- {( u" g5 }9 u: |* M
        setSeedTable(seedTab);. R: t% W7 ^# s2 V# E' S4 u
        eventController.end := str_to_time("3600:00:00:00");
7 a7 Q( v( }& B! `  hend;
6 A; m9 D" _1 Q0 F% G9 V  ?: _& {+ n4 Q

( L) L+ z+ i  f* y' ^( m; w
) C; S( d" p- @代码中1,1,0,1
) m! ?! u2 ^, X           1,2,1,0  F) A  I2 Z6 T4 X" C3 s, u0 U0 \4 |# B
            1,3,1,1        
# A6 g" M7 Z9 g. g0 P分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了. I$ [, M7 S3 ?* t8 T
do0 X& b0 B/ r$ F6 f; n6 T
        seedTab.create;
1 U  D( }. l# H# O6 K        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
+ z  T0 e: r, w        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
% h' W3 k; N& T) t& w$ k                seedTab.writeRow(1,3,1,1,"Lead time");2 J& p7 ^( H# s0 E% `0 @
                print seedTab[3,2];. b. R' _0 @- r
/ b0 Q, ~; M, f4 @! V( G" O3 |
-- ……
& p3 m' t# F7 T, ^) y' send;  J, r5 x3 L* L5 x2 @

3 q2 K  Z" U2 q+ A0 l& }# g! m9 Z<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);/ t' V0 p" v) F  U  M
这个说的也很清楚 / M4 S2 }3 I8 K
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 6 X# V1 Q1 A- c% B+ I' r
你用下面代码输出就知道了
$ d2 P- ]# d( ~do, L* Q# ^2 ]; h5 K& v; y9 F' F
        seedTab.create;

/ R: Z1 {' B1 W7 A谢谢啊,还有两个问题需要请教, d3 m6 Y5 S# n- E9 O

! D2 l5 P& S3 E( j/ p1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
% p) }7 `: v/ v/ W2 r     SizeOfDemand是一个1列4行的Table文件,内容是:
" a; c( h5 {+ B5 N$ C         1) x, G% y) ^: P3 P
         2
2 A* A# B+ H4 e6 e0 R7 U         2, m' L2 D- ?( ~9 I3 l) R2 |
         1
* V8 P/ K7 C" O' R
6 F* i8 {1 E$ I6 w4 A
: v/ @' J2 B: j/ f* k5 t
5 t7 {) R8 z+ ^: X, i  A2 @; ]2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
# ~6 C& Q$ c0 T" T  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思( p% J. A* u% k7 {8 R8 O

7 P, r9 V- v' b" p5 q7 G2 |& ~
5 F. n) I& N9 [0 Z9 U请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
6 L  F- z/ ~% g3 _Name in Plant Simulation English/German :Uniform/Gleich
4 j# W) f7 n. j
+ H9 E4 N' @2 z6 n! D6 D: L为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
( q0 R9 T" P: D. n* a- t+ @, ODistribution:Uniform distribution
1 q# r* a9 L6 @9 k+ dName in Plant Simulation English/German :Uniform/Gleich

! b1 W6 K0 |9 h9 E9 l+ i+ M谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-19 01:22 , Processed in 0.023884 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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