设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6583|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
, t5 P) l$ e& Z0 L' I4 v1 U        seedTab:table[integer,integer,string];$ r& T( h. x: W
do
: x+ d# {0 E% g8 n        seedTab.create;
3 z7 k6 S7 b/ {# {        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
5 U& t  u' c, d: l) v        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");0 f  X4 S. S: x" g# j. k, |
        seedTab.writeRow(1,3,1,1,"Lead time");7 q0 [, a5 A$ k5 O+ `4 M: i" l
        " F) Z- x& u( [3 D( }/ y! {0 H
        setSeedTable(seedTab);
- I) K! Y/ t$ H+ V8 [        eventController.end := str_to_time("3600:00:00:00");
0 _& N$ j# @# b8 tend;
5 D" Q) A5 U6 P5 P' P8 B- k  `! `2 {8 o8 G

4 l1 T- H! ~% p1 \) i% M
  h9 s3 S4 n  g# o4 u" M  @代码中1,1,0,1
" [. _( J6 V0 R# i9 ]2 s( b           1,2,1,0$ r- ], R: i) ^2 y$ u0 ]
            1,3,1,1        / t8 h- d: t: @, w% b& z; V5 o# g
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了) ]) M) Y% m! K2 i
do
' j5 E) [: i4 }5 x        seedTab.create;
% f* ~5 i$ N# _! i        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
$ \8 D$ _7 M9 n" ~& C( T' @; S        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");9 R5 r) J, p* C3 B/ G3 l
                seedTab.writeRow(1,3,1,1,"Lead time");" |, Z- T/ Q+ O6 i8 |
                print seedTab[3,2];
* C  D+ N! J& o: T: x" a
2 H- F- u! f9 t- p-- ……" b. H. L. l1 p$ b. l% I3 ~
end;
" C; I# m9 k2 K2 P3 L% ~
2 Y9 ]/ K: |+ U, S2 b- d7 ~% w<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
. r6 ^7 `2 L" G& F, P8 [- W这个说的也很清楚 1 @* k) Q7 v6 S+ |; F4 m# l
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 4 K! B# j/ T( i# d. N
你用下面代码输出就知道了0 V9 h: z$ G* I: A/ b: B$ [1 o# ]
do
8 z! G6 y) N  j5 J' l2 K0 P' A        seedTab.create;
6 y5 f, u% G: q( M
谢谢啊,还有两个问题需要请教3 b; s- V1 i/ j9 A3 O
. O- b& D( w1 m! h0 `& h, U
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);7 K& j& o" {6 D6 x
     SizeOfDemand是一个1列4行的Table文件,内容是:+ y- v% G* U9 Q5 `
         1
" a1 t. c) m" o' [2 l         2
/ w/ M% W1 r  u$ y) z" X         2( P4 B7 V- ?. v) J* y. R6 Q
         1
" E0 o9 D" _" u2 g8 Z0 o; f
/ K; |* y; X" k" O+ @
9 m6 z8 @5 K; g8 n% J6 d$ D. j2 Y4 E) ^; {
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
# U9 F: [9 n3 X8 _! f- ~  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
3 _9 G7 |9 U5 P9 B$ Z# t6 Z
8 b* h: f0 M* V. N& R) u
" W/ y7 `# S  p; E) J7 ~: O请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
* W' z( l& p1 l5 PName in Plant Simulation English/German :Uniform/Gleich ! G& D! \- P; n% {0 l4 Z7 }
$ G. w+ v. e0 K( v" @' m) J) c
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
- Y7 I! }. b; q  A0 u, O' `Distribution:Uniform distribution! n' h. {. ~5 e3 N9 @
Name in Plant Simulation English/German :Uniform/Gleich

7 s- V( E# }1 t: C0 \* x1 }8 }; R谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-24 15:23 , Processed in 0.020143 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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