设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6189|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is5 O' S. F1 X1 N2 K- W+ O
        seedTab:table[integer,integer,string];
  |- a: }1 @1 Q5 A* k" pdo
5 y& }' [- P  O% V        seedTab.create;
1 y. j7 t# U  ?* H3 T/ W        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2/ |1 t3 e3 ?$ U1 T% V
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
( q5 y, {4 D& A) `5 Z- n        seedTab.writeRow(1,3,1,1,"Lead time");' k4 D) Y# T) [- l
        + s! p8 J) R6 O. g2 H
        setSeedTable(seedTab);8 E6 R6 J# ?6 t4 p1 t9 w3 f; ?
        eventController.end := str_to_time("3600:00:00:00");
3 Q4 b. y& A  z* x; tend;) P, M0 e( w5 `
6 r! h. s" _' a1 q# d% D! _1 p6 ^0 H

) O2 g9 D0 V  F+ H" q3 L
" [. B3 v6 x5 ]) y6 u5 v代码中1,1,0,1
. Y6 {! H2 E0 I7 C6 V           1,2,1,08 ], s9 y9 g6 s% g! d$ @" B
            1,3,1,1        
- I! ^/ t0 ^5 b! u7 G- {分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了: w1 t8 r7 R  ~* Q7 g. T0 w
do
0 J/ G7 S7 g2 N+ {3 C/ M9 \        seedTab.create;# N; L$ a7 V6 u( g' a0 ]
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2# }1 o7 M4 O- ~9 h* @% G6 ^
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
9 {* v7 r. |* t( e3 T                seedTab.writeRow(1,3,1,1,"Lead time");0 V" n7 e) L: i" Y
                print seedTab[3,2];
! o4 }3 z! s! m3 F" A* S
5 ^* r" E- f! {2 ?, A-- ……7 u5 k/ f. X6 x" K- M2 o: d
end;
) Z  F% V1 A- E0 u; e, ?6 W" T3 X
) z, G# K, p9 X. c+ o6 L5 ?1 r<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);5 l' q3 ]6 u2 I: K7 t8 I
这个说的也很清楚 1 B/ P, S. l  Z" Q! N
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
# n1 U1 u2 w, v  m, Q你用下面代码输出就知道了0 p( O7 Q, ?, o8 w$ P0 x  X
do
" h9 h4 z6 j( K+ G        seedTab.create;
2 g, {* l+ T4 w- s+ P
谢谢啊,还有两个问题需要请教) Z! s! v0 X. e4 o* R

( ~# g# ^( p, E' T. W) E% H% u1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
. O$ T' g1 n+ N9 n9 d     SizeOfDemand是一个1列4行的Table文件,内容是:' U8 o9 ^% G& v' Q. w8 h+ s
         1
& J! N6 w4 `* h; v9 y( [+ X: e         2  p6 @5 K* K# T
         2( J* q/ H, H: c+ G# r* Z& c6 v. m
         1
4 r: U+ t4 A8 \$ E3 E3 P7 e5 f/ @7 c# V: M; n0 g

3 i& d: `0 h" J, ^' B
7 S( D5 Y8 V$ v: D7 C2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
/ k) M0 @* j- E; g2 v3 G, s  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思+ V7 E" y& B0 p

2 e5 m. j% [! l& F
9 U9 n0 x: d. l7 p% k9 W请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution) W0 i4 h8 q$ ?& V4 G# a* s
Name in Plant Simulation English/German :Uniform/Gleich
/ v# _- f2 l$ \0 Y4 z8 s
5 m: Y. }) Z- d4 e为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 : N( Y6 u4 o, i
Distribution:Uniform distribution
) C  D2 ~5 Z# G9 j7 B; VName in Plant Simulation English/German :Uniform/Gleich

. p# b/ D& D" P* f3 ?% f谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-4-3 15:13 , Processed in 0.030579 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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