设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6252|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
1 J9 N' S# U1 t3 K        seedTab:table[integer,integer,string];" C+ b# q, s# G9 o
do
* L) T0 Y/ P8 X' D        seedTab.create;
4 o9 z/ I6 @+ I1 r! e& }, r7 n        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 21 f7 L! Z  [5 D  R4 V, I% y
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
  h5 w3 ^9 ]4 L2 N: d2 O        seedTab.writeRow(1,3,1,1,"Lead time");& ?0 c3 i3 K% Y: X/ D1 ^2 _! T
       
: C/ _5 L8 n! y% O        setSeedTable(seedTab);
9 Y" Y( U: {* h( T        eventController.end := str_to_time("3600:00:00:00");7 f/ Z# h% |/ w2 A2 t
end;- r* [. x$ E* I% t" G

/ O  `0 Z! W3 e- e' @( L2 t3 V/ w4 f6 z1 `! o1 x# Q+ j
3 X7 {. _7 X* }/ {% v
代码中1,1,0,1
& W7 e- [7 h$ A  P6 k           1,2,1,0
! ]1 v$ k# Y1 k) }+ _4 i0 r2 q            1,3,1,1          I: x6 m4 h1 ?- Q& E/ V
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了* G) s5 p4 O; I" ~/ Y1 X
do2 ]( u( ?- G1 w
        seedTab.create;# I4 c6 c4 r5 l
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
  }9 V! ]0 `- Z8 ~+ H- g/ K        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");8 l& Y$ E6 l: U  o
                seedTab.writeRow(1,3,1,1,"Lead time");1 n+ Y2 Z0 p. a" F* H/ |5 }( Y4 N
                print seedTab[3,2];5 f! H- @6 ^3 l) e9 P" y$ B! V% Q
- a# u4 s. T6 }$ @5 g# n! S# x
-- ……
! j# q* D- R, J, s4 w) m2 Aend;
- @$ d7 F, f/ C* f! E) D
0 c) [  [0 ?/ R. W( O. ?/ |3 S8 _<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
" e" @- X! w$ M& ^+ J这个说的也很清楚
9 A) o9 C. D# E' z& K7 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
6 W: P7 ^' |8 b  |% Q8 ~0 [" M你用下面代码输出就知道了$ Y" k7 S3 Q$ K3 E; G: v0 ?( ]4 H
do( v' Q3 U  v4 O2 D' j
        seedTab.create;

! R- o, k. C5 l0 J1 F9 U, M谢谢啊,还有两个问题需要请教
2 X- C; l$ f  p0 Q+ a. O6 x- L4 R
" @4 D% c  p+ u8 S( L0 O1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
/ f: |* E, s1 s* z9 s" M     SizeOfDemand是一个1列4行的Table文件,内容是:
; k/ h( Z. z% M; d% q+ S+ o% O* h' x         1
/ ^$ ]) ^# ~2 A* w' C3 u         2, ]$ U! A3 C0 a4 R
         21 n* e- v& J" b8 b
         1
3 m0 l. g2 T. b/ x) \9 F) ~0 z  Q5 s) {8 K! V' T
- Y" A0 G: m8 c/ i6 r3 n# I

9 D( }% p8 w4 V4 f2 n; }: t( T2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
# [% J5 ]# z( |  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
" y# p- P& T) u4 A) i) V6 A
( o# ^* A; j  \5 ^3 X9 ]1 W# j  C5 ], o
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
. q8 x0 U, ~) S% L: M: ~Name in Plant Simulation English/German :Uniform/Gleich
" T0 b6 k3 z0 ?$ [" x0 @4 ?' ]- h- a1 N# U- H6 A8 T4 Q
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 - |$ I  A) K; P  g$ j
Distribution:Uniform distribution2 \8 z' A  r+ B% R# g* c0 ~
Name in Plant Simulation English/German :Uniform/Gleich

# O/ K. B) a" @  W# v/ Y( C谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-12 14:38 , Processed in 0.022230 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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