设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6223|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is9 E$ p, T. c1 y
        seedTab:table[integer,integer,string];
$ ]1 F4 j' K, D2 m5 E9 Xdo5 E) d4 u7 S9 g8 P! z# N
        seedTab.create;
* y& J: L' ~2 W2 C( m$ u) B        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
' j6 c$ v2 J' I, w% A5 W1 l        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");% f$ P8 j+ G' @; |" k) }0 L' ~
        seedTab.writeRow(1,3,1,1,"Lead time");& Y7 p' P2 R7 p: P! X/ [
       
7 x+ S3 S( T% O1 w        setSeedTable(seedTab);
$ b4 I) a% [( N( ?8 V* i) M6 j- m        eventController.end := str_to_time("3600:00:00:00");
! C8 ]3 u1 K# M! S: Q3 f# ?" U/ wend;& B  w6 b. J' Q4 @5 d. {
# \# G' N# A" N4 [+ t9 r3 s
! ~- X5 P% S8 u, ]! i# l7 Q  i

6 u( A* C6 G# l& |代码中1,1,0,1
+ _- y1 S+ h$ u; Y           1,2,1,0
$ @% T$ t/ @" V            1,3,1,1        , a4 J% U6 S6 A' ~! I' Q
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
5 N0 ]' i7 V: E! s' q! Ldo
5 D  o$ t  R. e        seedTab.create;
5 X- I  j, G9 B# L' `" F        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 29 }8 G4 m3 e. ^5 c% s2 P0 t6 v
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
9 d0 J- T9 |! \9 |- y) n                seedTab.writeRow(1,3,1,1,"Lead time");
% z5 `, e$ C& v1 Q* D! a. f. ^                print seedTab[3,2];) O* d5 o6 ^, p1 [5 ?3 D
9 }) |, Q0 L2 {+ H
-- ……
& I, V, }: Y! X- u! r4 k* Kend;. p' e6 k- G2 X) Z" K% C5 t4 s
6 A: V! Y5 A7 i. `
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);1 I3 o" a. C7 {  ~
这个说的也很清楚 ' _/ t! ~6 j8 N# \* h6 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
& y0 m$ C, ^% Z9 Z# u3 A你用下面代码输出就知道了. C& q0 s' {% d& ^$ I/ g
do8 G1 x( t& @& U
        seedTab.create;

' c% Y* r5 H; Q谢谢啊,还有两个问题需要请教
  [! M1 g0 X" t2 e& t) v4 g/ T+ n3 @8 S
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
& i; H% e! y& \4 [     SizeOfDemand是一个1列4行的Table文件,内容是:1 A- o1 D- }2 ]1 K/ G
         1
, e( T; a5 {) Q# ]         2
% U. s4 w9 D" {8 Q( w* j         2( o4 Y$ s/ T7 O# ]" ]
         1
8 f. V8 g; z& f- P' D8 f7 f3 B4 H: I2 P) G6 ?6 n: N( Z
# u! h& j$ A) o  y4 _

0 L* t2 K5 v: k8 f2 \- F2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
  {0 T8 x. t) D) T) C  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思( e, v0 g% N# E4 {# |
! w( R; U0 S. E

# g/ S& L$ o! b4 l( Z$ ^请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution! O9 C6 N6 }: U$ O7 _0 C
Name in Plant Simulation English/German :Uniform/Gleich
) S# H; b4 V# ?5 d
, I8 ~: u$ l  G* _为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 . u6 n7 ~& E( }3 @
Distribution:Uniform distribution
$ |$ R* N. a3 `: A0 `; [6 \Name in Plant Simulation English/German :Uniform/Gleich

  p7 Z+ d7 {1 ?( v6 |& N! {谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-9 00:17 , Processed in 0.023363 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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