设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7014|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is; i  E+ R8 f  V( S+ R+ P! n
        seedTab:table[integer,integer,string];- V0 W& L) H" X; u! L( ^! a9 D$ q
do
# Y1 P  F- g  ]2 X! t4 d; ?4 }, U        seedTab.create;# y7 c7 e$ c7 A$ Y
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
& Z) r! ]! s7 X/ ]. f. x) f7 ]- w. `' E        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
" f2 n2 X) U+ n! w, \7 [        seedTab.writeRow(1,3,1,1,"Lead time");& c1 {% x3 U8 L
       
% P" t% g  m9 x9 ^' m: O' _6 ~        setSeedTable(seedTab);7 }" Y2 ^; |1 N/ e1 ?4 H- `) z4 R
        eventController.end := str_to_time("3600:00:00:00");
9 e4 J' T. G0 l" \8 ]) n0 uend;
6 F1 H* N1 _- y  E2 \! h+ Z- ?9 S2 C' i; @+ v
1 I" O# P; z! ?* C, X* l, K

( d4 J! Y3 P+ i6 J代码中1,1,0,1; @4 A6 [. Z8 d: s
           1,2,1,00 p( B+ d# k5 W% I, E- v
            1,3,1,1        , z. U7 t( p3 \  m
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
, E8 l, m3 n+ {: ndo
0 l/ N2 i1 t0 I( ^7 y        seedTab.create;5 t* _+ Q1 f3 n- o* |
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 23 A: E1 u* {1 W0 |6 [
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");  t( x5 @7 b# o) @& w3 }+ o' N
                seedTab.writeRow(1,3,1,1,"Lead time");) Q: `4 G$ A( ]$ P
                print seedTab[3,2];
0 F( k$ G. B' r0 L4 Y! P9 ^  ?# V* N7 U0 h
-- ……, R, T& x& P8 ~
end;
* D8 j+ [. {% \4 `3 W( Q5 K/ O4 ?5 w6 f1 m. u* `
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);/ g) H$ g8 z4 J0 Y
这个说的也很清楚
. x% h1 b4 ?5 M% ~7 ?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 s% A9 {6 D# Z$ v7 y3 B3 p0 b# o2 N
你用下面代码输出就知道了
  n6 J1 |+ U. f" a6 `3 mdo
% L9 i) O: W. Y+ J        seedTab.create;

8 Y7 U( W5 u3 a7 U2 N3 Y/ h谢谢啊,还有两个问题需要请教/ }) }9 x# ^1 a0 C, j# R0 w

( K4 i0 X; G3 B/ x1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);8 s5 {; b/ I8 i, D7 _5 k; ~
     SizeOfDemand是一个1列4行的Table文件,内容是:
0 m9 {8 w( N" F         1
- V4 s8 U3 e2 b         29 ^6 Z; O: L0 v( H# x& A& F9 i
         25 n- f$ f7 f% {  Q( P4 j' Z" }
         1
! m" H  b, s& U' S" _5 A8 W+ y; ]% M: b5 F3 J4 a& ]7 S
8 t( L3 R: A; L6 s
  k* V6 q$ {8 h% c, b' R, W4 L9 g
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
, Y: T6 g; C/ C0 E9 n  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
1 z8 ]- ~2 a+ A0 \% J- F; H& s% b" E) D& Z/ S

7 r! q# r3 y# F% R, j" {3 v& j请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
# z9 t( m% Q8 E) n4 |) {" E( mName in Plant Simulation English/German :Uniform/Gleich / z6 u9 C! |2 ~: j
0 r( Z& B, a( \1 b4 ]. _
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 9 F- l7 E- U% M3 F: }& W! d5 O
Distribution:Uniform distribution9 l0 \- ?8 T9 z* p5 c+ d
Name in Plant Simulation English/German :Uniform/Gleich

* {* K; u2 T. `$ f谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-26 23:23 , Processed in 0.019245 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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