设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7215|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
/ A0 B- {/ I, ]$ i+ r        seedTab:table[integer,integer,string];3 @5 j( D6 S, E4 m3 s7 K
do
0 s5 d3 X: g$ c8 ~; S; P" b( k- r, ~        seedTab.create;2 o# @3 N2 q. W. g5 `
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2) V5 l3 K, E2 ~: s- }" F; n- @
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");7 G7 }2 d0 d" t' q- S4 m
        seedTab.writeRow(1,3,1,1,"Lead time");
; q. r, {& C# H! b7 v# ^1 O+ r        * p6 P* K+ K& ]3 b
        setSeedTable(seedTab);( y# A& u3 p" ~* z: L
        eventController.end := str_to_time("3600:00:00:00");
' Y( F# z2 T% Z8 Kend;( C) [+ E1 B" ~" s' G+ U

$ k) V6 [9 ]5 p- T& R) ~" A3 ^- |% {; F* |
5 K/ J8 ^: S& _2 k! K' a
代码中1,1,0,1
+ o" l! U" W* g           1,2,1,0
( }) w# ?8 F7 N) v            1,3,1,1        
( f- j, l' X8 y1 O. _4 S- i) u) l分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了6 k% x$ L) M% i  x# A. z% M, o7 R
do
' E, C" N; T: r3 ^# _2 e) L  f# ]* l        seedTab.create;
8 p, L1 G8 H+ n3 `* J/ d; w' j        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 23 W/ F8 ]( q/ h. @$ N
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
3 B  X/ u6 c. A; [. Z0 I                seedTab.writeRow(1,3,1,1,"Lead time");
6 u' n9 W3 M1 \, A                print seedTab[3,2];
5 o. Q% X' j5 }3 X. ~. g; r2 v  L7 c$ D
-- ……8 M) d0 d  G5 ]7 d4 A! ?* O
end;8 ~; B; t7 P+ k  t

2 |& W- K* i# n# N<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);7 z/ g1 k2 e( r3 g6 w
这个说的也很清楚
* @+ A' r! @5 {/ A) n; H9 x; S. QwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57
, x2 ?* R: S& _& N; R4 J# p: U你用下面代码输出就知道了2 ~0 E$ D2 g" u3 ?) c/ Q
do
' b) J0 t6 ~4 z6 e6 ?        seedTab.create;
/ g- O% \7 v9 S( u% X, {3 _
谢谢啊,还有两个问题需要请教
: c0 y! R( R7 Q
9 ~8 u3 j  ?) V1 p1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
/ C% U+ \9 S6 `: |     SizeOfDemand是一个1列4行的Table文件,内容是:$ c; J9 ?0 W. @- e' }) i9 e
         1
; L: x* Q/ K% l. ^# \& x         2
: l! _1 M/ Y7 V         2, ?7 q/ k7 s: @, Z' t  C( a) q7 H
         1/ _) k0 {8 Q4 P( f
  O+ N* x8 I$ G: S; F3 ?
7 r. M9 k$ b, {$ ]5 ]2 c
2 w) ~, t3 w2 W. a, V
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
. T  p8 p9 i" s* A/ J/ o  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
/ b& [* d9 H4 L# ~. T) A) f  i
* S0 |2 \& \  R: v
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
3 y, q3 x* ]. g" F3 BName in Plant Simulation English/German :Uniform/Gleich ! G% {. T  r6 x+ G1 c
1 E9 y5 K; K9 r+ G$ u4 S: i
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
9 B1 ?) s. F: d- ^. ~Distribution:Uniform distribution& q  m. Q+ ^/ M( h1 O# i. a
Name in Plant Simulation English/German :Uniform/Gleich

2 [  n. K9 r% w" ]+ e0 D6 P谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-2 11:15 , Processed in 0.021119 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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