设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6592|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
, A# G. N! O7 J2 Y: }* g  S; L        seedTab:table[integer,integer,string];$ S0 z! r8 H* P- U( ?" t
do& @, t6 n4 I2 L% r7 h
        seedTab.create;
1 ^+ ^) B( ?2 K9 D* u7 I4 _, f2 L        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2  i: {7 v! ^0 F1 @; P, @$ c# o
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
/ h4 [2 D: T1 w; ^) \3 g        seedTab.writeRow(1,3,1,1,"Lead time");% ]- e! Q1 a: P7 c2 q9 w
        1 R0 ^! x# i: f7 @2 ~
        setSeedTable(seedTab);
" g7 b. R4 [  _/ m2 H( W7 R        eventController.end := str_to_time("3600:00:00:00");
  D! b  k+ I6 Z) |8 @1 yend;2 Z* E% s: h$ b! c$ d6 ?0 @* b# _

$ e/ t0 Y$ d9 s9 E1 y& `. d
' I- b8 x6 n" b& B" F) L- A
: M5 ?, ~5 d4 l. c+ `8 y2 P代码中1,1,0,1
. P" ]2 q3 {: Q! E1 v3 y8 r           1,2,1,0
* r8 ^' D' ?- I: D            1,3,1,1        
+ B6 t) E$ e' a, Z# ~# l% ~分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
5 q3 ?" R# X% N7 G' h/ a" R+ h% pdo% ~1 O' f) y$ R" a2 \! Q
        seedTab.create;* k+ a9 d) t# f  g
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
/ a. S3 |4 H. @: ?        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
- ]9 X, K, f3 y9 Q0 O                seedTab.writeRow(1,3,1,1,"Lead time");
/ M1 r  |# P1 Z5 s2 P                print seedTab[3,2];* Q1 [. r! @/ h; x4 J8 y3 a

$ x- D2 E, e$ Z: F-- ……
( @0 @+ M3 X* K! D" K3 iend;# k, E7 k4 K7 Q, G2 o
0 g/ U+ X" T" U5 {- S7 ^5 q0 X
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
' g) |: M# S+ b& L这个说的也很清楚   ~$ V/ q6 z. e# y  I1 i" a2 c6 c
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
/ l; @: a2 e4 V你用下面代码输出就知道了
6 n9 z5 F8 M( `7 O! r4 _; d/ J8 rdo: T# v9 W" v  O) S+ Z! r
        seedTab.create;

) b; ]) l) y' f' y* `$ {$ Z谢谢啊,还有两个问题需要请教
5 Y. Q5 q) j* i! `/ ?: {" d
. c+ I3 T4 z1 b' k1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);: q2 y, L( c5 q- K+ {
     SizeOfDemand是一个1列4行的Table文件,内容是:2 }1 `2 f1 ?/ ?. r. c4 d
         1
4 W0 ^) u  A+ y8 b  a$ u8 M         2
8 {9 a9 y+ B* d# L" H         2
9 \* E9 |3 r  _  P3 U6 b8 ^         1
. g. `9 T$ j2 C" g
8 z$ |, q; W' Q( X8 C3 H: i6 O: ?. ]- f8 q0 R) k. ^: I: R! ^
6 ?& h8 e/ @* w3 ?% c5 t
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); % Z1 X5 e* P' @7 d/ C
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
) y, i; r5 ?$ H( P+ A. Z
: k" L3 \4 E4 b0 T: q4 r2 Y; \# A2 v- E/ i, `4 \7 h1 F2 n
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
$ S! U! Z$ p$ {: u0 NName in Plant Simulation English/German :Uniform/Gleich # b* v, ]+ c# b  `

- W3 x& r8 E' e为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
/ w6 `9 O/ I8 f4 T4 u! _9 ]% A6 ]Distribution:Uniform distribution; i6 Q' L  i4 a/ u3 ?5 H; g
Name in Plant Simulation English/German :Uniform/Gleich

0 w9 V4 i0 Z/ |  y, q) I谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-26 22:30 , Processed in 0.017663 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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