设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4946|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
" k+ s6 o' P) k4 @        seedTab:table[integer,integer,string];
5 c' c4 _# A" Z( v) `do
. A6 E4 v) ^- Q/ m! k8 Z* X& R        seedTab.create;
1 ^. O& T& U; Q" V: y8 S$ r        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 27 l# ?/ q, q. d8 l
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
* u8 H' Y& N+ V5 J" u: }        seedTab.writeRow(1,3,1,1,"Lead time");
% \. S  E; {+ [0 K# B; l        & A+ }& Q6 _. |* |3 K
        setSeedTable(seedTab);
* b6 j7 `- J9 f* W7 J        eventController.end := str_to_time("3600:00:00:00");% T& ^7 Z0 B/ ?$ h5 N
end;
3 n! P" z: D  K* {
1 T' v9 P5 [1 {1 \
8 a, |% o- ~1 d" J& V1 n& [9 g2 l* b1 g* U" G1 N8 k* e
代码中1,1,0,1) c/ B! W( E1 g7 C" c
           1,2,1,0
" K+ S6 N3 L* O# S7 w0 H            1,3,1,1        ( A' L- H) K, _: V/ b! H! Y
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
3 O, X$ ]' e7 _6 e0 Xdo2 @! U4 O; K8 Y$ I
        seedTab.create;
. c; o; j$ k* U' B7 M        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2/ ]( b& j  @" a8 J* v
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
; ~- u2 w5 w3 ?+ ^4 j) X                seedTab.writeRow(1,3,1,1,"Lead time");& D; C! a' i( t0 F6 W  z
                print seedTab[3,2];
. \) l8 |6 _; Y" T8 B7 q& o6 L7 M8 d
-- ……. @6 l- @- A$ L5 T( g8 d
end;
( O5 `  f' M$ A& v; |
6 h, }$ w. ?* E( U% D<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);7 V. l8 o. _% c
这个说的也很清楚
7 V0 S+ D# {3 c/ B, N2 ^/ `' C. h7 G+ gwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 + y' |6 ~; z1 |* G5 ~, k7 h
你用下面代码输出就知道了: s2 c1 z9 X# g
do+ p& Y& x: g: B8 }# l
        seedTab.create;

6 o' r* T' D$ V谢谢啊,还有两个问题需要请教4 i6 G7 {- l( r$ R9 K" n
: s# e, k: O# T8 X2 n8 d
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
3 |* V4 g% N2 J* l     SizeOfDemand是一个1列4行的Table文件,内容是:
8 y9 ~% W  Y6 B( x. U         1  m" G8 d5 @, |2 d
         2
( l" m7 @8 h: {# ^. W8 ~2 h( }8 q         2
' i1 g- I8 \& _" C. @& A1 l& u; S         1* ?- N; @% V/ L. P, R2 `

0 Q0 f% o( y0 Z& ?" t# x+ L+ h6 V  ]6 z0 @6 ~
8 d1 w) S) R) B# `8 j  b
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); + Y! z0 ^2 X6 y* Y( q5 l6 u5 N( G
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思; s% {5 O( @# n- n: u0 N6 E
6 e6 M; D3 |/ P( E( k' f
# @9 G  D+ X' l+ s
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
! A* I! D+ h; Q  O5 B* r# QName in Plant Simulation English/German :Uniform/Gleich 2 t  N3 a/ A3 a

" ^3 l# W4 x8 {$ P5 v5 ]为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
* w. _' B/ ]$ u" Z( A* N+ EDistribution:Uniform distribution! e& X) A/ c* f. u- g, ?
Name in Plant Simulation English/German :Uniform/Gleich
" l1 R; P9 C* [, Q4 I7 l
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-2 03:38 , Processed in 0.020448 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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