设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7282|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is; u1 h+ X- I/ ?( {7 A, g; @1 }$ B# n* c
        seedTab:table[integer,integer,string];
0 y) e& [+ e: U; Vdo
% H1 O% N. N/ V' [! c        seedTab.create;
: A/ V* H+ a7 X' S" n        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 21 e- Q/ q( {" D2 B- o
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");! f) l, Q4 Z1 @4 I: D; l2 _
        seedTab.writeRow(1,3,1,1,"Lead time");
0 L3 E5 g* X4 S6 ^8 d  L7 t        / G! e+ y1 H& y# `  s- k
        setSeedTable(seedTab);- ?/ G/ H  V4 u& S  ?
        eventController.end := str_to_time("3600:00:00:00");8 u8 ~2 F8 m5 R8 U
end;+ Z/ @- v2 u+ Q( B4 r: i: P. H
% b: l7 V- j5 y6 c0 N- f
$ i& t/ \' X. c, d& S( Q- }

! B: l$ n+ n# _7 B" T  G代码中1,1,0,1- f2 r" u* I4 a! Y# W  F
           1,2,1,0
# z, u) w4 Z9 I% {9 Q& u, L            1,3,1,1        
5 F( e1 J* s1 V3 d! v# _分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
0 I. d4 d( I7 \0 Q' rdo9 ^% P4 f4 a. a+ k  J9 }
        seedTab.create;0 Y9 D6 J# s6 a! F& \/ _% v
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
- V* r+ ~/ t1 I! v9 l' t8 i! O        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
( M) A) F# c/ M* {' E                seedTab.writeRow(1,3,1,1,"Lead time");* l6 F8 v4 [$ b+ A6 y8 W; z% F' z
                print seedTab[3,2];" @. j% a3 ^; K1 K! M/ J/ F
- c. O; f: C) ^
-- ……' P/ c5 e8 l) v0 Z+ E' y
end;) \* m# h+ P7 q
/ _. \# {0 ]) W9 x9 q9 f# i8 t/ {
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);' l2 |/ \- n  _! d2 w2 h: M1 p
这个说的也很清楚
, ^: \3 Z5 |2 g; h$ N9 G+ B1 MwriteRow(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 _# S7 n3 E) o: Y) V  `
你用下面代码输出就知道了1 B5 {" c; ]& a6 ?6 [2 S
do' B1 r' F! c& V. }& L. z
        seedTab.create;
- M' v, Q5 P! w+ u' G" l5 b
谢谢啊,还有两个问题需要请教
; k- q1 p1 M3 g2 F- H' L9 Z$ s) ~, @( @9 U. ]) l
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
) O- O  u% }! }2 C     SizeOfDemand是一个1列4行的Table文件,内容是:
+ k: P$ Y$ `$ [/ T0 b3 }* s1 {9 d         1
0 U$ y% K% w; l8 n& a9 G         2% b) K+ d) B. B# u; f( a- y
         2
. m& P. _. P. v% I7 X) X' R: _) E/ M+ B         1
4 F, N7 m  _; X7 f
4 l$ [# f4 K5 p5 y+ W# R/ ], j( n; P0 N7 u5 m* r2 y6 h
; E$ @2 X! S: b5 S/ _. |# y  E
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
, p8 O- J0 P  q4 h$ G  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
4 _/ G% P8 ~( f! w2 t
1 Z7 R- W. I9 D0 Y! I! A  \2 [' K6 C" z1 A. m0 ?1 a) h; m
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
2 o+ c) K0 `2 K4 l7 K  }Name in Plant Simulation English/German :Uniform/Gleich 8 G/ L% t! i% D
: m& M' F" M2 y; Z
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
1 _* f7 n0 e  O& I8 YDistribution:Uniform distribution
7 G; l" T; b# a7 r9 vName in Plant Simulation English/German :Uniform/Gleich

6 \1 f. \/ L8 z; V8 J, M谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-13 14:19 , Processed in 0.018490 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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