设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6624|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
7 l* p% X7 t. A, T. D, E  R6 W  ^" e        seedTab:table[integer,integer,string];
  s, B: `' U# o/ R' Ido+ q# O0 b- P0 K% R- c2 y
        seedTab.create;, ~) V. B7 w: s% i9 _9 K
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
" N* K, h2 o4 ~3 M, T  q        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
5 ]) ~4 }3 m9 H) J        seedTab.writeRow(1,3,1,1,"Lead time");$ X; V) _( X2 S+ v6 Z
       
4 K5 ^- M" y* P( Z9 y6 B% k        setSeedTable(seedTab);
% J! o1 W! x! x- l* h        eventController.end := str_to_time("3600:00:00:00");
% O! g$ Q/ q; u3 P0 W6 `% T2 ~end;* j6 n/ ^0 b3 p8 N

2 k5 m; y5 m  Z' Y0 G7 g! M: X0 f7 u' T9 {& z
, |* R: j! K" P1 W) B6 B
代码中1,1,0,1
; K! n2 G& ~( X% W3 w  q           1,2,1,0
8 z, w# d4 g! t            1,3,1,1        $ s& x4 g! C$ _1 [
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了9 X- {3 y* B5 C# u. u7 a5 i2 I
do
1 ~5 k' K* \9 \7 H) m        seedTab.create;+ d7 v; ~" p* Y2 s1 U+ B: q6 D; `" q
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
$ d. o. F1 v; U3 F) S4 p% N1 N        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");. t9 |# w) H7 @7 E6 R' e+ \
                seedTab.writeRow(1,3,1,1,"Lead time");
  a, P3 \# H" r                print seedTab[3,2];
3 _  j, q, S% D8 f1 J
- i( E- E) Y) O' K-- ……
# G0 }& a8 s8 X! v+ T( _end;
. q" m" {" o9 y! z% }, b
" r' t3 n/ s$ L1 k* p<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
( |: S/ Y9 ]# |7 U/ j这个说的也很清楚
) h' z5 Y0 Y/ m6 d4 iwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 9 c, H1 ^+ B5 e) _: u4 s5 b
你用下面代码输出就知道了
. k& H7 w0 A" ~! ^2 Xdo
( s0 U! G' H9 D- f        seedTab.create;

# X; O# s4 m: M. S' [谢谢啊,还有两个问题需要请教
0 m6 F6 b1 @: R3 R! o
( M$ k7 t) q* r+ C6 p" h8 w2 E1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);5 v) _0 _: L) R" x/ L) p0 t+ P
     SizeOfDemand是一个1列4行的Table文件,内容是:
6 y& ^6 I/ Q4 l- ^" L8 Z! D. g! F8 J         1! h4 N  v2 b( C
         2
5 A5 P1 ]# A; ?: K+ I         25 w# t5 F# F7 N3 [/ \
         1' m/ a0 Z$ ~2 \' l3 ]3 A
: U' r7 V. a" E8 W& s  L9 V" r- e

/ F/ z4 L) a- h( u' E$ T8 O+ a! {/ R" p, w1 b) [
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); ) [" u/ Q. j  O; }$ Q5 e/ ^
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
- r' s# X7 i6 x* }
) v) t. a0 {! Q2 F1 r4 i% h0 }
) _( X) P7 R/ X: g/ G1 @' j0 G请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution4 W; N0 J( H" U$ s; l
Name in Plant Simulation English/German :Uniform/Gleich * i3 O9 Y) S& m
) f" G" z/ n0 u* n
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57   w# h) t  l  o, t1 s
Distribution:Uniform distribution
) d+ c' u4 {; Q$ T) J& PName in Plant Simulation English/German :Uniform/Gleich
+ ^  P5 \+ u5 B! p4 h2 y
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-1 14:24 , Processed in 0.018114 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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