设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6906|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is* D. c" l6 E+ a$ m2 h! @6 \
        seedTab:table[integer,integer,string];
* d. y* Q4 J4 u" e+ q1 E7 X) v2 ]do! M3 c6 w6 s9 J: i& L' a, v: S# h
        seedTab.create;
6 \6 I# U. Y7 j7 P/ T; S        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
" C& d. D, o# F$ q5 V) Y7 E3 x        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");( Z7 j6 d6 ~  B- |5 |8 E! T( L
        seedTab.writeRow(1,3,1,1,"Lead time");! T: |  S- f  X" J6 e
       
7 t0 Q) D4 o0 j4 c, }$ R* }        setSeedTable(seedTab);* S, j3 ~; S0 N: n- n" c% I
        eventController.end := str_to_time("3600:00:00:00");
+ }% P  Z1 d+ ^end;* g$ k( w% A8 H: r2 _) d- C
5 P6 y1 p# w7 |

6 `5 h7 E) x! h+ h. K  O0 _; u* _3 V& H" s# B' R
代码中1,1,0,18 S$ `2 c- U8 H2 I& b* p
           1,2,1,0: I+ C$ N5 p  m0 E/ }4 [
            1,3,1,1          p+ N; i/ ]- `! \* i
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
1 V' @6 N9 G% Q' C. {do
# \9 e9 h) B, k7 G' ~2 i' J6 \        seedTab.create;; P; d  D" g2 F# {% `
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
% J; X. r6 f* \/ l        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
4 B- |) g$ V4 G# F! s                seedTab.writeRow(1,3,1,1,"Lead time");  m* ?2 \$ A% X7 q1 U0 U
                print seedTab[3,2];
, R1 k+ y( {! @) F9 P; m' l! W
# z7 S+ P! p% D# @-- ……" W' @0 n# C. \  w  f
end;
7 @3 ?/ Z1 C  O3 k
/ u3 q1 w4 z$ K/ E6 n5 P9 _' o<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);6 y( X4 }  w6 P/ o+ W: V* ]
这个说的也很清楚
& U& Q9 g; l' awriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57
" f6 {: y. O, i: M# t1 T, ~& x你用下面代码输出就知道了
( g8 D3 ^( P& N% ido
3 V; y8 Z5 y  ?# D& Q        seedTab.create;
1 ~' ^. Y8 J4 f5 U, Z! i" i& H
谢谢啊,还有两个问题需要请教
: i4 o5 f( y. w$ V5 i6 C- K; w$ E2 N. p; a: j% s
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);; m* P5 P7 h* U8 t1 }" \* y! R& k
     SizeOfDemand是一个1列4行的Table文件,内容是:% Q( b( c' V5 N, Z- A& A
         15 T- F. T. [% D. c, O" O
         2
, b6 I1 h* M; ?. }8 W         2+ l1 j3 b& u" J( D& M& o" w+ s
         19 ^3 ?- C% f! x$ F8 `- i

- l2 m% |/ x2 }
3 d5 t' N# ?4 l9 n& u& B' @9 ~. i" j, S
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
# L8 _8 l: d4 ~* z, R/ b  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思( f/ Q' r, X' p/ m- t

" c8 R" L3 M. a# m+ U; ]+ v  n" h0 }; ~
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution2 W  C" Z9 p" X6 Z  ^
Name in Plant Simulation English/German :Uniform/Gleich 5 v7 d9 w7 _6 W8 Q4 e
) y1 m2 i, {! Z: l& V
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 . Y9 o) z2 ^# G3 b8 e7 F/ N& D
Distribution:Uniform distribution
. o" _' e: E3 \- b5 b  dName in Plant Simulation English/German :Uniform/Gleich
# }. T" P9 f8 P4 K
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-13 14:36 , Processed in 0.020785 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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