设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7203|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
* m/ ^+ P- e4 v/ M% ~/ K        seedTab:table[integer,integer,string];' C  F  p0 e/ {" A+ b
do2 Q9 h+ ]: U3 G
        seedTab.create;( _, n* l+ [9 g9 s8 {5 d8 p
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2; d  v2 q3 f" U3 W& E
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");! ^( c% ^; V% n) Y. e9 y; P" L2 j
        seedTab.writeRow(1,3,1,1,"Lead time");
9 h8 i& \7 y. q6 [, w        % }/ s* ^: p6 |. O4 B% Y
        setSeedTable(seedTab);
* J) ?" U  |6 ?. d        eventController.end := str_to_time("3600:00:00:00");
+ a, {9 r2 Z! A% e, ^$ a, Yend;
4 H' m9 w! ~& M( E, g, r( S: Y! N/ Q+ @& i0 y7 y! U
, A" S$ V/ {2 b" F5 w

; x7 N9 p) J$ Y/ T代码中1,1,0,1
! O0 X# m( \$ j# m8 k* P5 A           1,2,1,0
8 E5 `9 O0 R9 e% i            1,3,1,1        
! K" A: O. g$ L9 s1 {分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
1 D. y* }- w  A& w! Q/ I9 V1 wdo
4 n3 O  A- Y& O% M9 C        seedTab.create;
; ^, ~* z# G( R8 D# a+ M- q$ V4 _4 X        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
% q& h- k- k# X$ s* ?  E- {: P1 R        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
' ]; W$ W  k. k; O  ^& [: d                seedTab.writeRow(1,3,1,1,"Lead time");
9 P& G& @5 ?+ A, |- D                print seedTab[3,2];
( `: u% l& x- \* v; u
3 k8 d; z6 Q# q% T-- ……
$ Z6 C+ C0 m7 {; J! p/ {7 Hend;
6 U- g( U% c5 L: n3 m: w: r# O$ f2 G7 J* N' E: S2 x0 l2 i* K
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
$ {: X- k0 Q* p9 S6 Y) ?0 r这个说的也很清楚
. e  z; d" R& K6 k6 _9 g, {7 zwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57
3 s7 W8 z/ V! X你用下面代码输出就知道了
* E+ Z7 s1 j6 A4 b  Ddo
5 C. X4 Y9 N2 j' o/ {6 r        seedTab.create;
$ m( r7 M4 i$ U
谢谢啊,还有两个问题需要请教
2 J# a1 B$ q- n, ?
- K. J, {& y# x+ _1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);) i3 y6 I% }% @
     SizeOfDemand是一个1列4行的Table文件,内容是:
" Q' q; P5 w, f* K8 R2 f2 Q0 z/ H         1
+ {& v. v' @$ R. U% O6 F& J         2
! f* Z" L3 E1 d* O         2
9 F' h8 C8 L; X9 \# d$ N+ B; V         1) c1 ~) p1 m, [: q( f, t; ]& i

; I4 z! ~# u* b; c5 s$ ]4 |$ b3 x0 n- J" ]5 R' v6 ]7 \5 i4 w
' ?9 P5 X, o0 h3 X3 \- N8 A, k
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); $ o$ _% G5 t. d; \4 o
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思8 O5 h9 S6 U) w' g& }: r/ `

+ z( ~' g, A1 ~/ i( k: _+ Q5 X7 R$ E+ R# V# O" H( P
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
3 [/ S4 T3 _0 K* c+ ZName in Plant Simulation English/German :Uniform/Gleich - M1 h8 m- u- U% ^) g- u1 ~$ N  n
; }. P- @2 O5 D, s
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
" {2 G$ A6 t0 N  a8 IDistribution:Uniform distribution
( G; g. I+ U- A  WName in Plant Simulation English/German :Uniform/Gleich
# b8 Z  f# p  ~3 c" {5 ^+ Y% q
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-1 09:36 , Processed in 0.031734 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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