设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7149|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
" r5 i$ p5 b  t7 C' x* m; J) j        seedTab:table[integer,integer,string];5 P1 J! n: C) w& r1 V
do! z" J( }; D# `6 n- ?! P9 O
        seedTab.create;( r2 J" F; k& ?" J: }9 N) ~- f
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
! K4 o7 ~* D0 p, }! [% b+ ?        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");# l  b8 N; W: M% i! {* n+ }6 W/ l2 ?5 Y
        seedTab.writeRow(1,3,1,1,"Lead time");2 m9 D7 E7 ^  X( R4 ^
       
0 x! M1 Z8 s5 Z- h8 x4 [        setSeedTable(seedTab);1 C) m, w. d6 @. @" `
        eventController.end := str_to_time("3600:00:00:00");  x3 E, _% i2 Y: r( o% U
end;% q* W4 }) z. x/ G* y) P  i

) d) f2 d- E+ k  X' ~3 Z. I& ?5 A! x- r: l
3 R0 R0 x9 B6 a8 d: h
代码中1,1,0,1
. C; {/ f" _5 w& B           1,2,1,06 V8 V1 {7 t% u" o" R
            1,3,1,1        
! [3 s: V# S* u0 c! p) s2 w分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
3 m8 C) a% v7 m& n1 R) Pdo
5 y+ I7 b9 k& L$ g- V" u- o) @        seedTab.create;
2 }6 |, d1 t/ `6 [$ ~2 T+ N        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 29 i5 E/ R( t; X4 c1 W5 L
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
- |; l. q1 d% g' G% G2 e% I                seedTab.writeRow(1,3,1,1,"Lead time");; B# E  o, ~" Y6 ^6 i
                print seedTab[3,2];
2 Q/ R0 t9 a$ H! |+ M3 \) v! Y+ y0 T
-- ……9 N4 X9 q5 A; W' p$ t9 F* v
end;
2 r- Q6 Z! I4 ~1 Y+ A, V; A  b8 u6 }; A. ]1 {& z' E' n: I
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);0 h4 k- H) d( y
这个说的也很清楚
% l, Q9 r9 Q% K; |9 ZwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 # P/ ^; g5 q5 S
你用下面代码输出就知道了
, z3 g& x0 q, W) C, y8 Q" R: vdo1 D/ N  _" F+ t$ J/ }6 m
        seedTab.create;

0 y/ D1 q/ k" P. L9 ~0 i谢谢啊,还有两个问题需要请教
) D" S, ?  d; W8 s/ J
" D& v+ ~* ^% a; L7 o) |1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
, n1 e9 L% A# z5 \+ ?8 I     SizeOfDemand是一个1列4行的Table文件,内容是:
/ X5 ?/ o& \) q$ B, M         1
: v5 z7 B8 R& B9 k  f8 {- A% d         2/ h" m8 I5 y+ D% d$ j
         2: K" t8 t7 g0 c' g# v, |
         13 |: \$ \5 U. N  f' t) E
4 c0 b, q- U5 P0 T) b

; z1 @- U0 B2 p
1 S, `7 ?% J  v9 m! B& n6 o2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); $ Q; P( ?) m; l
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思, h6 C6 t% H) l( ~
& l# ]/ `! K0 f4 G

9 I  O6 s# V& P) ?# x请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
& h8 U2 ?  k$ G( |3 wName in Plant Simulation English/German :Uniform/Gleich 0 b9 C9 n) ~, w# ]) [9 ^/ W

" ?& |' t5 \, R+ N4 \7 t0 X为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
; e" z2 q4 s/ M" X8 N1 A1 zDistribution:Uniform distribution
* R7 c* v: P/ x: q# L, w! G8 nName in Plant Simulation English/German :Uniform/Gleich
7 |" P  G1 E5 B3 K. W
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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