设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7101|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
8 b- o+ P* v/ |$ X        seedTab:table[integer,integer,string];& U9 \; r% }% z  R8 P+ F. U$ A
do
; A4 c" |; G; K3 e: p# Q' m        seedTab.create;+ X& t3 z, ^6 |5 y) L' I
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 26 N5 H: E' L2 s" n% y
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");1 M5 U3 W: u0 {5 o" [2 A
        seedTab.writeRow(1,3,1,1,"Lead time");
1 \) v7 g9 u! n$ Y; ~, a        / ?. d* I: G9 U: C
        setSeedTable(seedTab);7 p+ ?, w3 _' G
        eventController.end := str_to_time("3600:00:00:00");
9 `. d9 _  D7 D. u9 `  [# Uend;) x% n4 h5 v, e% K9 m2 }8 i

% G$ R! m, `  q
* k/ R. R3 l$ x
6 |, U% R4 i4 @( d& p1 |代码中1,1,0,1) D3 k8 r0 I: a3 B
           1,2,1,09 P# ]9 m' |: _* l: A$ f; i! F- C
            1,3,1,1        
+ p* j1 k$ t) J5 [分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
) I3 G( r1 Z  [0 i$ Cdo
3 Z* T" S2 Z$ l/ c- O0 A        seedTab.create;
/ V" x7 D+ c$ Q* e2 h% N2 |        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2- a7 {9 ^3 }  _" \
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
9 q5 u' w* T4 A, h/ z! Q                seedTab.writeRow(1,3,1,1,"Lead time");
1 ]' a- z5 K) H: q                print seedTab[3,2];
' v) B* G4 s9 [
- y: z. s5 b  z- ?-- ……" g4 s6 s- o* u$ I, x: j$ E
end;
, ?7 ?/ W) t: L1 q' c0 j, L% q# \
! e- R  C. ?. s% i2 @0 [<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
8 X/ T; d$ x. Q' V$ O" |4 g4 H2 g9 I这个说的也很清楚 2 B1 D& q6 g9 J5 J: Y
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
- e! u, g- ~+ p* t) L' j你用下面代码输出就知道了! W( Y2 L9 V6 M& F1 j
do
1 m0 N4 S. N/ B- S/ n; J* l        seedTab.create;

1 g* N( `0 C' u6 b) \谢谢啊,还有两个问题需要请教
1 v4 Q* N# c! m$ ?5 Q4 R. p' O, S+ |
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);# j4 L' j% ~( i( R6 U
     SizeOfDemand是一个1列4行的Table文件,内容是:0 @0 V1 X4 x  a. S# ]
         1
) S3 E- a7 S# u' e- @$ H         21 ~" L5 f1 x& ^0 g: E
         2
6 Q0 O& C) ~( n; R; H         1
3 v4 {2 F. C; m+ P7 Y3 J! o1 B9 H( d
) I3 G1 q0 X1 F" s+ J3 `8 i" Z4 c: E4 M+ Y# n
/ p* u9 a5 I- x* b& V) z5 [( G
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
; l+ I5 v1 X) M- U  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思, `' K; B5 B+ L! H
6 P6 e9 d3 h& J" M5 {0 X

$ }& X4 l  ^; _) _请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution) C" ^8 q( l7 y/ t5 ?
Name in Plant Simulation English/German :Uniform/Gleich
0 O; E  p& i0 K2 ^$ N" x, X- M3 X8 z
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
' q8 G; b' n. G1 O: v7 rDistribution:Uniform distribution# J* g5 y3 T" v
Name in Plant Simulation English/German :Uniform/Gleich

2 l1 A+ I, W( e+ `& A谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-9 19:28 , Processed in 0.018646 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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