设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5923|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
7 f3 O8 U1 t; O. i        seedTab:table[integer,integer,string];
0 z- T& P1 w  \4 b/ y0 k' A2 \do
, D- d5 g, I( p' |) v        seedTab.create;
1 v; c5 w; u( a7 u6 {" o        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 23 \/ c2 \0 }2 O; u
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
' n6 U( ]0 k' z        seedTab.writeRow(1,3,1,1,"Lead time");
$ a0 D8 D* z+ D. f" C" t8 t       
3 d9 ~4 ]7 P* V* t! T: O        setSeedTable(seedTab);
% D3 J8 [  b  ]6 s8 c        eventController.end := str_to_time("3600:00:00:00");
/ c. L0 t' c9 C9 }2 E5 [end;
2 |& z2 `1 o! v5 _. ^
  J2 U4 M# `- [. _! N# J9 O/ C, F# o( ?4 @; _
( H7 C6 r" r7 h) K( ?# L
代码中1,1,0,1, i8 e& a' V: |. D. u2 H3 T& s
           1,2,1,0  y, M/ q4 h: X0 u# S" n) T: o- Z
            1,3,1,1        
* R2 ~5 Y; e6 u. x5 q分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了* u. y) U6 J3 ]4 d
do
9 V* P8 h: _# M5 s: O" @# u5 Y. |        seedTab.create;0 C5 x# T/ Q5 e; u1 Y4 n
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
/ n& v3 ?, i6 o$ j8 `        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");6 p6 U) }7 h7 L! |
                seedTab.writeRow(1,3,1,1,"Lead time");5 O# f, o. U& s3 |+ l3 Y- E6 N% u
                print seedTab[3,2];9 ~: w9 P/ Q4 r+ p* R! V

3 O& V$ g7 R: ~-- ……
) a: W0 t, s) {, Y8 Fend;* C1 d* f$ ]( Z/ S
5 R" Q2 o& b+ @$ F/ f
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
, ]8 C0 i& E; p, G* E' _  H这个说的也很清楚 / |0 L* g0 m- O: 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
# o! `1 B( t7 Y1 H9 }! b你用下面代码输出就知道了2 E9 P- ~5 P$ \% @: S- s
do2 u$ P0 B9 r9 M& G3 f8 M5 [
        seedTab.create;
" y" j, ?* u) S
谢谢啊,还有两个问题需要请教' A$ b) P6 |& u  g, u( W+ q
0 K3 b" s8 I- g
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
5 T1 m; q0 l8 H     SizeOfDemand是一个1列4行的Table文件,内容是:
; v0 w5 o. J! t9 ]$ D         1
0 Y# d/ M) T8 e8 @& s5 ~  m         2& @+ s. @8 g$ T* \+ a" B( }
         2
. Y  @% i% `3 }+ S         1
& q* Y3 x- i  ~1 s% n! H. }' t4 Z/ y$ n
8 ]& l& T" r6 b4 f( K

! V* @/ S/ |* }) I$ L6 Z/ I; i2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); 9 G+ ^% t$ f% x: ~! o: @) b
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
- a6 |7 M1 E- `5 I- @; \# j4 \( D
$ g4 U: O6 w% D( O) I/ x6 E2 a! b6 o
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
& _# k, d7 U) ?$ p" q3 _% \Name in Plant Simulation English/German :Uniform/Gleich 5 s4 l9 H% O4 T. }& E. {

2 E* R0 o% z# R; ]( B为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
* `% s3 u( o0 `6 mDistribution:Uniform distribution% x9 E* p: P- e& q  F
Name in Plant Simulation English/German :Uniform/Gleich
% R& I! K/ x0 y) p6 W2 S
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-21 04:02 , Processed in 0.020926 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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