设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6757|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is& i6 D: g" X; v1 y2 U( U9 N! ]
        seedTab:table[integer,integer,string];# R$ a/ X1 {) N
do% A% s& L9 ]4 y' N3 K# n; Q
        seedTab.create;: O& V* W: N/ O6 f* t
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2: v5 D0 G" n( r% C, u0 O+ B( K
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");: w; P3 x- A2 P3 _6 Q$ o
        seedTab.writeRow(1,3,1,1,"Lead time");
9 S+ J4 ~7 a, c$ u- U8 x       
' t+ m8 p. q6 f& t1 K9 L" f' w( x2 k        setSeedTable(seedTab);: J# k2 i7 G( Q. }
        eventController.end := str_to_time("3600:00:00:00");
- M6 h5 v3 q" q' L. d  Tend;# f4 p" H8 s- T" k0 ~

3 a$ |) r- H1 c' t: h* |) Y. Y& }5 U1 V- h& S7 W/ E
: Q2 m1 F' k: u9 X; b% r
代码中1,1,0,1  n9 C, h$ q1 |3 ^& G3 w# v
           1,2,1,0, L' r- r0 S# w, Z% E' K7 M; r; V( l0 B
            1,3,1,1        
9 z7 ]' W7 V. g分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
) z# C3 o* a9 w* @7 _do
% T( @% |; A. s: u7 Y        seedTab.create;2 B1 c/ {. I, f% K" C1 c
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2+ p/ @! N7 Y7 l& W2 D1 v+ W( q
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
( i( p5 c" G/ O" c                seedTab.writeRow(1,3,1,1,"Lead time");7 }- o2 L& m& I& y9 f
                print seedTab[3,2];
* N$ ^- T1 A  ]+ {8 V! U. u1 A* D& a* S% L& g% i
-- ……  V5 W; \' T. M1 J3 A
end;
9 v/ q- `. _. T; p* [+ q; m2 t/ @
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);/ ]' d6 Z5 f6 M: x$ |0 ]9 v
这个说的也很清楚 & B% O! E8 [  f. ?7 Q, A7 [
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 $ {! I0 r/ b$ `6 h
你用下面代码输出就知道了9 U1 q6 R% a: i& ~
do" I! r6 R( Q$ Y7 V+ k8 z9 P3 [
        seedTab.create;
$ f- h- ?: d. C* a
谢谢啊,还有两个问题需要请教
. N1 ]* `' A0 t* `  p( t, J
% H, _9 p4 f' N8 c  Z3 C5 q1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);9 ?1 e4 u( ?% e/ @& ]4 a( f4 t
     SizeOfDemand是一个1列4行的Table文件,内容是:
) j" s, s; @- b9 R; n. |         1
+ ]6 W; L+ S; b, W$ x& Z: m         29 Y1 M& V% j: o2 t% \! b* f  B
         2! A% H5 Y, `3 X/ U" Y% T3 M
         1
+ i7 V' F! F- L8 F- d+ j7 J, L
2 o) t# c( ^9 q" K: M9 ]
" K. O" C9 c& B- Q$ Z. `) _9 b
: {2 {0 E4 w, w, v. x2 ?2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
' T& R; j" s* e; f( Q# X/ A; x  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思$ Y5 ]3 `; S: V  O

+ d# `. q# G* V$ m$ u
+ L7 K1 f& b* s6 t5 y; J( d请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution" `" C4 b0 l9 a/ q9 N$ `  b
Name in Plant Simulation English/German :Uniform/Gleich 1 x' {0 f% s  _; j* |/ L

* d! H1 _; c9 q为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 + ~+ P: u5 A1 L
Distribution:Uniform distribution, }8 h1 v3 O) W6 O7 s
Name in Plant Simulation English/German :Uniform/Gleich

8 Z  E" @( V; d- x& G谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-21 07:04 , Processed in 0.018127 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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