设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6473|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
. Y# F4 B0 l9 O, M        seedTab:table[integer,integer,string];
0 i5 {7 G0 D2 L- ndo1 r5 m0 M$ U" z/ z0 B
        seedTab.create;9 A* z) r; G7 h
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
& W+ h* _4 n; o        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
# Y* N% P) s& b% H1 c        seedTab.writeRow(1,3,1,1,"Lead time");. |" i+ a( K0 K  w# N) B
        # ~6 e9 K1 h- a/ B5 p$ v0 m2 I
        setSeedTable(seedTab);5 y5 ]( C4 l: P$ _
        eventController.end := str_to_time("3600:00:00:00");! g# h8 [  U$ ]  v1 a* J
end;& r( ]6 C# ~' N6 ?' |( P4 M
. j/ n/ z% K' H$ C  O' K
7 K) l; P4 t6 ]
5 O$ K' q+ q, W2 C' O# K
代码中1,1,0,1
) Y: k) I6 A1 N  T* _1 i& F) ]3 S           1,2,1,0+ i0 ~# S  [' J, O2 [
            1,3,1,1        4 i$ k4 |; M# ?) O
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了. F* x( U3 g, \) E8 B
do# C; G8 `/ q4 K, Q9 h* u
        seedTab.create;
# u; I$ o+ ]* z$ I! N9 @/ B        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2% o: b0 \& w9 N$ `, \: t, q
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
7 N- n( O( |/ }                seedTab.writeRow(1,3,1,1,"Lead time");/ U7 Z+ S2 j! ]  `
                print seedTab[3,2];. N0 E, }* O+ R3 d! U
, j, N. P: ?& a
-- ……
2 N: ^7 k' t! E% Pend;" X$ v% F2 V$ i4 A. `" ?  U$ T
) C2 O/ [# {, D) v5 f5 r- E0 [
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);' x6 p0 |$ ^- m& p% d
这个说的也很清楚 # `7 I+ y, W6 I8 }$ M
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 I7 f- n$ L3 o- P; i! n你用下面代码输出就知道了
! e% j& ~' V# Y7 o! _" g5 Vdo
+ ^  V7 ?, |4 w9 y2 ]        seedTab.create;
( m) w) ]2 |8 A
谢谢啊,还有两个问题需要请教; {1 [( o+ {* T4 y
* C. p. n& n: T1 \8 [& T
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);4 w" p; G: V, h4 {
     SizeOfDemand是一个1列4行的Table文件,内容是:5 E. N9 s9 l8 A3 ^1 C! Y
         1
' y2 M6 s0 M: d" ]         2
# q! Y; u- L6 a& N1 `' _5 f4 x         2
; J$ O! r. R5 ?: y3 @" u         1
! k6 d$ I  {7 T5 [+ q! R. `( m! |5 T, K; ]% _" m
' [3 A' i( X1 ?( q

6 ~1 Q* g- B* P6 N/ d$ H7 B2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); 4 \' z+ n  l; N9 J  B2 D
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
+ w" g8 w+ ^' y8 \
$ k6 _4 L5 @3 ?0 |, R4 K+ m1 u# W+ m! K5 _# Y8 n
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
% H/ D8 k( T3 t  p1 Q3 FName in Plant Simulation English/German :Uniform/Gleich
+ L  g! }; v! ]7 g3 t4 L) @! u& g$ d
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
. E3 X% H) f. `! P$ G( b9 GDistribution:Uniform distribution
0 }3 G, x$ V8 ]# K! R7 g( @. n: kName in Plant Simulation English/German :Uniform/Gleich
- o3 r  [7 l# p* @8 ]7 B8 |
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-8 19:49 , Processed in 0.024239 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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