设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7241|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is& B1 |/ u" t8 a0 P1 i
        seedTab:table[integer,integer,string];
5 m: S4 |6 n2 |4 B% e7 S0 ?do
, n1 f4 K  k( ~6 N8 B% L        seedTab.create;% p/ N* k9 g: {
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
! _7 Z/ t6 j# |% \$ q        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");6 ~% p/ x- k; Y* g5 r
        seedTab.writeRow(1,3,1,1,"Lead time");0 W+ [2 A# b5 r/ \3 \5 k
       
& K4 ^1 t9 r0 D) o# Z/ T* ^- U        setSeedTable(seedTab);
1 Z6 k+ f; s/ o        eventController.end := str_to_time("3600:00:00:00");
8 }6 @9 \3 Z$ S1 send;
8 R! X$ z9 K) w$ ?8 ^! w2 S, x
1 m# r0 e  h( k) ^7 S2 [7 P6 \) D( k7 q6 U: @* u# v# X

0 o  d  P4 l5 ]( r0 P' P' B, \代码中1,1,0,1; H5 I8 f8 U( [( E
           1,2,1,0
/ @* Y6 h$ t7 Q& C$ v8 H/ s            1,3,1,1        
0 q; C( H) K' F; {# |3 {* b$ c分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了' i; s* }) _5 r
do0 {# M5 l& R) ^8 q5 n$ a
        seedTab.create;- T& e; A" h$ F2 g
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
0 f* q# `0 }7 S! q        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
0 g, L' L% K+ F6 E, `' b                seedTab.writeRow(1,3,1,1,"Lead time");2 `5 V$ Z1 R) a+ x
                print seedTab[3,2];
, M* Y2 ?$ q5 x, `  I
" M! C7 W8 ^% ~) K  O! P' f$ O-- ……* R9 i& H( x- R
end;
: U. Z, W9 V2 u6 F. i; T/ G" E, n9 i, w0 f) e% ^' B6 @: X
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);: G+ l, \- P1 l, z" u  D& J
这个说的也很清楚 6 s2 V  {& c4 ]) y9 G# d. v
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 1 S* J5 k% e7 G( Q
你用下面代码输出就知道了; B% x$ _. ^; K& J
do
9 `  t) |! U+ @( B8 a, M  W& v        seedTab.create;

- y; T3 M5 I  `: u/ @( Q+ X谢谢啊,还有两个问题需要请教
9 H0 Q% G# y8 G. f2 c# @6 W/ y. h- B4 N( @2 n
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);, B) w0 v( J8 y6 `- q
     SizeOfDemand是一个1列4行的Table文件,内容是:% T2 j  f9 s0 c2 B/ h% Z/ f
         1; F4 H# F. a" [) x3 J( r2 m
         2
+ |5 q% d- Y" D9 l         2
5 |! n* t# J+ h# t         1  t2 ]0 l9 @2 s  k/ `

) Z9 g! ?7 s" o4 k
6 {) N( S# B. j. j
5 \2 D4 d" n1 n6 F! i1 B2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
5 I. K& p5 x. i& |' t  j# c  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
$ |& N7 q* V- W/ r8 I/ [
. _  L) N. n1 `- l
; m6 s  x1 c0 K3 D- v2 l" A请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution4 ?7 o3 o* z& J
Name in Plant Simulation English/German :Uniform/Gleich 0 J$ u' f4 u+ O. O7 S, [1 f
3 b) e' z5 V4 K3 C6 {$ \
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
; W. p  r% x) b+ f' K* o9 RDistribution:Uniform distribution: i) k2 n# P+ D, p& b# w) ^
Name in Plant Simulation English/German :Uniform/Gleich
" ^  m8 M' P' W( w
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-8 05:42 , Processed in 0.018054 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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