设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6919|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
  U4 h: S' i  N" Y! b1 W        seedTab:table[integer,integer,string];( ]7 s( S, D: h+ {& ~* l% d
do1 @1 p0 w: W6 n) J- D& q
        seedTab.create;
& A. C0 @; y2 P$ a2 P: W        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2  C% e& v$ M' o8 P% z
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");) G) q. z8 B1 A8 W2 A( A
        seedTab.writeRow(1,3,1,1,"Lead time");
" |- W+ S* W7 j       
: z8 d  D8 J& |) b/ ^. ]: d        setSeedTable(seedTab);: A6 d$ M, r9 i) N
        eventController.end := str_to_time("3600:00:00:00");; G: o3 i+ L( Q$ L
end;* D% s6 V1 N. R- Z' s, D
- X& }$ D& i  w% U. l
& t" a, R6 h+ m* j6 n
9 ]6 g- c. R& X
代码中1,1,0,1# `! i8 X, ]% O% s
           1,2,1,0% J6 S- R$ b2 f# E$ Q
            1,3,1,1        
' X( |5 c+ E, u- i分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
/ ?0 R: b, B( D6 \( xdo/ d9 C  F4 C$ o' |" V* t
        seedTab.create;
1 x1 L6 }4 o% F& e        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2: e5 ^4 b" U8 \6 k: m. \
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");5 y1 ?: E' B9 ~) b; f
                seedTab.writeRow(1,3,1,1,"Lead time");
9 F4 C4 ^) @% l& M# f9 b                print seedTab[3,2];
- H3 ^$ z' S) Q
) v% V) Z& l: [, q+ U-- ……
9 ], ~# X( w* X( M/ ^6 q1 Aend;/ A# a9 T. U0 d" g
  _1 X/ |* E) e9 m
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);  f- G; f+ q; s9 n9 C  H2 n
这个说的也很清楚
2 |! r& F8 t. C0 g( u  u2 DwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 # n  B! q" U! |: [
你用下面代码输出就知道了8 d, _- ?' W( u+ l* `% l1 `
do
9 o0 m; \! S5 @* [. y( h        seedTab.create;
0 ~  ^$ k# D2 m, t7 ]3 `& O. `* [: w# N9 E5 i
谢谢啊,还有两个问题需要请教
6 C) D: [8 a1 C/ ]4 U; z9 Z+ H5 A( ]5 t: }, O( m
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
  w. j$ t6 Z- E8 a     SizeOfDemand是一个1列4行的Table文件,内容是:& N; s+ o! t5 |$ u
         12 w* q$ z' ^" R7 e4 ^, Z
         2' {# E- R5 L/ _2 I; ]
         2
) d9 @6 J6 B9 _! `) V! L         1
* z: @# l$ {7 ?# P7 U: ?( v) Q% l7 i$ w; x5 ^6 a
9 @) u2 {+ h0 ~
) j% _0 [) k" d& J
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
# G+ |5 l% U* T# g  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思  y, C- P# n9 ?# w- A

( |$ e5 B9 @/ x& O3 t9 Y0 R& H9 @( I8 y, a4 _  ?1 R
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
8 p* A3 J4 H- `; D) ]Name in Plant Simulation English/German :Uniform/Gleich
- L: {7 Y, W  r/ A# v1 E: U9 n0 n1 D# C5 W- S, \. E/ g6 C" s
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
7 S" F" Y; n- R5 oDistribution:Uniform distribution$ c- O1 N, K4 \4 k7 ?
Name in Plant Simulation English/German :Uniform/Gleich

" L- V6 y8 f2 N, ]3 @2 R1 J谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-14 18:30 , Processed in 0.020509 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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