设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5185|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
  Q4 E9 N) p* u$ K  n        seedTab:table[integer,integer,string];
4 K3 O) T9 ^2 s+ @% |4 q, mdo* `" p% ?% X9 R; r
        seedTab.create;
; [# z9 M) e9 E/ h        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 21 G9 @1 _6 ~* i- O7 j
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");3 F( w  R/ h6 _7 D5 b  K8 r
        seedTab.writeRow(1,3,1,1,"Lead time");4 m# X1 O1 M+ ~. U  W
       
/ Z  @/ d0 `$ f- L9 O        setSeedTable(seedTab);" f5 u) h$ U( z7 l& b, ^# l* ]
        eventController.end := str_to_time("3600:00:00:00");
5 o6 a+ D1 U: a7 `+ A# }+ _end;9 ~7 q! l1 A, w5 C; \
6 n% j8 A$ }6 u( n3 t

4 u  z, V6 L. i9 Z9 L# m7 m2 p+ K5 O- s' f* h# {- [
代码中1,1,0,1
2 A2 Z8 m1 |! l" e. _1 s% {           1,2,1,0+ a2 K! R+ |" j: {) j! \
            1,3,1,1        ) S3 j) t2 U# ^) }+ I
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
+ v6 I4 l2 M4 `( Z& F- vdo
- V8 d- r+ I' l3 {1 J. {- C8 j) \- y, H        seedTab.create;7 q( S- \7 K$ ?/ `* L, [9 m
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
4 O9 Z; t% H: U& v3 c8 V        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
- R% f2 n- e$ y. S, A                seedTab.writeRow(1,3,1,1,"Lead time");
& F& T( n5 E  `, o) q$ X# f                print seedTab[3,2];9 r, N+ \/ V- r4 j8 ~
; J+ u3 L3 x4 ~6 o# y8 Z2 r
-- ……( A* o# F: s2 n9 `- @' B
end;2 ?  o6 n0 ?4 y- K1 d
* d& q1 d! x# t  g' i
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);- `3 z% \1 h( n. {! A! q% R
这个说的也很清楚
" m/ O' L. I0 n1 dwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57
" H" [% @4 y5 q! N你用下面代码输出就知道了
. b$ G6 @8 |+ C4 O' Wdo
0 ]0 L1 P; I: D7 W6 A% S        seedTab.create;

  e5 y. q  ?7 H: ~5 t& w: V谢谢啊,还有两个问题需要请教( a' [! X$ }+ C

: E& `1 s9 W" x1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);3 `9 Z2 r. Z2 ^8 q$ i5 n
     SizeOfDemand是一个1列4行的Table文件,内容是:
# c/ A( r/ x( c, }$ m8 E         1- M* ~/ C+ @! w) _( W
         2
4 r. t5 u1 Y1 n* Q3 ^. H5 l         2' D! p0 y5 R" ?& F# N
         16 r2 m4 M, z  J1 I
7 E0 Y2 ]$ {5 y

1 y6 l: r" Q: K! m& H5 u
( V- Z* A8 p! L. ]' V- C2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
! c+ Z7 M5 d3 i2 y5 x1 K6 ]  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
% R: l4 w$ }% T6 x& p8 j
% _: m! V5 `6 p7 u2 t
  h2 A& N; F/ p5 y: t5 b请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution) b1 x, d6 O& ?/ M% q/ R! G1 j3 H7 G
Name in Plant Simulation English/German :Uniform/Gleich
; l$ p1 t+ }* i, ^& w) x" o1 [4 M" m& o* {$ X
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
3 o: v. I0 p1 q7 z* F- uDistribution:Uniform distribution
  y0 ]9 p& z6 r& QName in Plant Simulation English/German :Uniform/Gleich

/ C5 D' @' H$ }3 z谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-18 15:46 , Processed in 0.024559 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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