设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6073|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
6 M5 z5 |8 l: ]5 s$ U        seedTab:table[integer,integer,string];
3 d+ n  L7 d5 y9 z6 e+ Ido8 y. b. a, d6 \" H
        seedTab.create;
7 X" \& A) ?  D: W! G        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2: T4 G. j! p3 r) e0 {, ]
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
% N" Q/ Y% f$ X; l9 O        seedTab.writeRow(1,3,1,1,"Lead time");
$ M. O+ L2 U8 |  V       
% n! f7 W$ M2 R0 f5 P* E        setSeedTable(seedTab);
" \2 I% Z1 H3 M4 o& a$ v        eventController.end := str_to_time("3600:00:00:00");
+ f: z0 G; Y4 |' Eend;+ D" w* [) F. n/ r- s

5 B3 X" q: t  C0 b5 a
: n8 U  H* p6 g
( |, c  u9 m& x+ E% f4 z代码中1,1,0,16 i3 A( |: u$ X$ V
           1,2,1,0
! W0 D, P" d; v' [9 n0 ~- B2 j            1,3,1,1        
# f. `. ?2 C8 N% Y* q% K, w# c分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
; G5 q& w9 H, b6 y8 ndo8 Y9 c" Z  W9 ?3 e7 W" Y  T8 t) g
        seedTab.create;
& s' ^% H8 O1 f! M3 l( ]3 v2 T        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2: T  M" i1 r. M% R$ b
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
0 Z4 C2 |. v2 B  A* G/ H+ O1 G  `                seedTab.writeRow(1,3,1,1,"Lead time");- `# o( B, @. a7 G2 s0 ~2 ?0 F1 }- p
                print seedTab[3,2];* y4 M+ Q( I  ]1 o6 e& d! @

$ Z  }2 x: Y* r  T-- ……. g8 w7 U/ ^; t  C6 b0 E
end;
1 ?* g8 F0 J3 c8 C( d. S& h  F" N# ~8 H6 l% q5 C9 |
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);4 Z# b& \; Z$ i$ w0 q( s% ~
这个说的也很清楚
" y1 a. V; D6 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 0 _- o8 ^" v% e# G4 u
你用下面代码输出就知道了  N! \+ d. `" ^4 S$ j( i* w
do1 q9 g  b" W% L: i" S
        seedTab.create;
! U7 g' K8 X3 f  u. d4 P* B' \
谢谢啊,还有两个问题需要请教# |8 O  k+ Q  `) C* w

! Q( w6 e0 f8 n  v1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
; B3 A: T" N  l: R     SizeOfDemand是一个1列4行的Table文件,内容是:
: K/ a2 U- B9 z( U" `3 Y         1
+ B0 s  j6 I& _! |         2
! C3 R1 }5 @! E% ~; O7 {& k         2
8 I: N4 @! j7 ]! d5 I$ d2 G+ ?         1* G. ~) {) f# a3 n1 U/ e- e

" O9 d- Y' t# y. \1 G6 ~8 ?- T5 p9 x3 s' O6 J! H$ D0 U8 Y: o
! U* l) l* g! n4 ^5 V, m; `( N2 S
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
3 V. ~9 _' I$ E" C) [) `  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
+ H3 ~4 R- M. P( `0 K
$ F! {8 V5 M5 E" S
, a" E  N5 f3 B! d' F% `  ]请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution& B! g) C1 U: K6 W7 y
Name in Plant Simulation English/German :Uniform/Gleich / ~  M6 `0 a9 V% g0 R# w

  T* H) b& j. d' A; l为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
0 d6 ^- N$ U8 B' L/ K# u& D9 z1 jDistribution:Uniform distribution
6 Y7 w' L7 \; O& [7 `* {$ L- fName in Plant Simulation English/German :Uniform/Gleich
+ `7 ]: M$ n3 D  q3 l# r' G
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-17 04:33 , Processed in 0.019727 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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