设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6106|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
/ m& b8 j9 W6 S- f$ v6 G        seedTab:table[integer,integer,string];
' l; u# E, X) }) G2 ]4 Xdo- j/ s6 j4 X- g: P
        seedTab.create;  ]/ I% [7 h! n5 |
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
% Q* F9 z" {' ]5 q! f        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");5 _4 }/ `- G; E8 c! T  p9 M
        seedTab.writeRow(1,3,1,1,"Lead time");* U2 |. a. T( O
       
7 g# [& O' u5 r8 J        setSeedTable(seedTab);
6 }) e  m; U5 k- @' A5 q; ]        eventController.end := str_to_time("3600:00:00:00");. ?( e5 f2 y% ~! ?% B+ A: \$ _
end;
- ?$ s2 B8 f0 {* A- ^3 }3 G  R, m
) S% I& g* f3 c0 C+ D- s
, I6 f% t% q4 e2 o: E3 h
, B2 d2 x0 y( u1 l7 d5 N7 E代码中1,1,0,18 l9 W& m: a2 a% R, k3 [' q# K
           1,2,1,00 ?( {$ ]) y+ M) t- {
            1,3,1,1        6 f+ G2 c' Z2 l- f% O" y
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
& Q# L/ a, C- L- r% r- v# ?do
8 D; R1 w) q  S        seedTab.create;6 x2 `* [7 z; N) N  L# a
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 22 A" v- B7 L& Z+ @9 I) N0 q$ e
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
8 [  P8 m* Y8 M$ o; ]' q- V6 W                seedTab.writeRow(1,3,1,1,"Lead time");0 S+ _: C# A& L1 D# l* z: J
                print seedTab[3,2];
" ]) E* H5 N5 ]6 c
2 y7 F: r6 G% ^. z7 K6 [) I( B-- ……2 |3 e& C) w6 Y& T
end;- l/ V3 j1 [6 F7 ]
$ ~7 q: t/ _; `/ c" I% z3 U
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);: x8 b" P; V# B
这个说的也很清楚
* j& K" w* P. N5 N! \/ C" mwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57
) u* s. \( }) F. m  Z( j" ~& U9 S+ C你用下面代码输出就知道了+ Y" n' e  n" J
do
( x3 [( y. B$ N" }$ T2 v        seedTab.create;

2 `5 V+ V( o6 D5 W1 M3 b: x! x谢谢啊,还有两个问题需要请教
, ?& D: J3 s0 u3 l/ _
/ V0 K9 \+ p' O1 U0 f, N1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);( D* n+ i" |7 a# G* k8 F8 V
     SizeOfDemand是一个1列4行的Table文件,内容是:5 L  E8 K! S5 a6 P; y3 n& i
         1
+ G: z" V+ z- A, p         2
5 b* h& W5 N6 ^$ `         2
* `7 Z$ T; }7 T6 X6 C/ l         1) N. k5 F0 @4 A7 p! Q) q
& V9 K. I* x  R7 R

! N( h) p- k; Q, a* O
! w& G6 P  o6 `) Y2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
  Z# a6 D4 `( }  _8 R  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
& V1 d# @  ]' l% `9 |( k& `0 a. [* G. O) D. }: U$ g5 R' q

7 n6 b1 m: @, V/ d- i9 P请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution. ]" `/ p/ l8 q0 k" e8 f
Name in Plant Simulation English/German :Uniform/Gleich
% x  }8 V1 z' E2 t4 _! t1 e8 B  c' b% `2 ^" M/ u
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 3 I* t0 b5 F6 Q
Distribution:Uniform distribution
: n6 `" X! J0 j2 P2 AName in Plant Simulation English/German :Uniform/Gleich

. m5 S7 x% ~  _2 J# b: B4 J1 H! r谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-22 03:18 , Processed in 0.021100 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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