设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6662|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is) B) o5 Z5 x, [  l
        seedTab:table[integer,integer,string];7 Q) L7 N5 y+ \. L2 f
do
' S( S: e2 D/ @        seedTab.create;& x& k! ?- ^# ~9 H8 H2 q
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
' S, s4 ~9 g5 a* S3 r# z) _( s        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");9 j7 s, k0 n8 W& y
        seedTab.writeRow(1,3,1,1,"Lead time");0 N% P$ n! L1 x8 b
        ( F! [* Z! h% ~$ f- |6 q
        setSeedTable(seedTab);
% _- \  i' t; b7 O+ u* ^        eventController.end := str_to_time("3600:00:00:00");: e% J8 ^! B/ o' F0 n; r1 n
end;; w7 `4 Y8 g( P/ z( p7 o% `
% [# T  S9 R1 y& @1 {
5 b4 t. `6 B$ Z0 k! V5 [
  i+ C) ^  V3 v+ v! @; P
代码中1,1,0,1; A( \* L! h$ @/ P. ]7 t$ U; ?) b7 E
           1,2,1,0
. d: l/ k5 p8 A4 e; s8 i; R            1,3,1,1        $ U$ l9 T/ e+ `! Q& D
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了& L( t% X5 A+ Z# I
do
; ^; N" T  @2 V: y# [8 E. V        seedTab.create;
! p. p9 N& A6 g9 x. Q  p        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 22 h2 u/ }: W" [7 T$ a# W3 u) b( u) @2 d( `
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
1 y8 F$ N0 \4 y' m# v                seedTab.writeRow(1,3,1,1,"Lead time");# s" t1 [$ G+ g  `1 V
                print seedTab[3,2];2 B! c4 V- }: p% `% q! Z

  T0 f4 Q8 v! v: ~: i: I, ^-- ……
2 s  m! V* w7 p3 P9 iend;2 T8 \$ M# q% X: N2 h

. }8 ]$ e* H+ b* Z* L4 i+ l7 j<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);$ [8 l  G/ d% f1 |% z+ h& Y" q
这个说的也很清楚
9 h8 c. Z, g. T+ bwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 7 ]- @1 d. ~; e3 `* ]5 z( g
你用下面代码输出就知道了
1 A: d* L, }5 Q8 F/ E+ pdo/ U/ S( ]' E& M3 ]5 _+ r
        seedTab.create;
# f$ v. D' H  t
谢谢啊,还有两个问题需要请教
0 M9 G5 {5 I# r1 J8 g+ @5 \; s* N1 C9 O6 q3 U0 ~# C& ]& e; n9 r
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
, k$ C5 w# U+ U. p/ i. V     SizeOfDemand是一个1列4行的Table文件,内容是:6 h8 F7 ~% ^3 ]( k/ r
         12 k" J! i8 h% \2 h$ W! c7 R
         2
  {! d7 `' ]# C1 P, z         2
- k( G6 C; ]& G" [. R. O         1
% n- i$ E$ [+ X) y( q! H* p( {7 z( A8 K, B2 b+ k1 c6 q. w

1 b" _8 l, c/ h1 P8 W7 s$ S% Y
2 w8 b! p- y  |5 K; q2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
5 b. V. J/ e  l8 k4 V" {  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
9 g0 F* S) U' V- t+ m4 \% U# N5 W7 n: S
3 L) J8 A: ~3 O+ Q1 Y. L
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution$ X; N1 j$ z: B; y/ t" ^1 P3 ]
Name in Plant Simulation English/German :Uniform/Gleich
' @/ s: S* p/ v8 }# C/ f4 K. V5 S( M& z* v
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
1 n$ J1 Q( }( I+ V& ADistribution:Uniform distribution
& A5 |4 E, s1 t( ]# s, p; qName in Plant Simulation English/German :Uniform/Gleich

# i5 Q% |# \# v  |5 l谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-7 13:22 , Processed in 0.024278 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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