设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7006|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
* I) i& C. Y& C$ o7 w% y# V% m9 u# A        seedTab:table[integer,integer,string];
5 f! Y3 ?/ k3 w7 N0 Odo. z2 {* E. S' D7 B& l4 Q
        seedTab.create;  S9 F) l, c- D* h5 A7 j3 o
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
9 d! J- f/ r; k2 @  y        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");1 Q3 N/ h9 C% q* e7 o
        seedTab.writeRow(1,3,1,1,"Lead time");  ]5 \, V$ \' R3 A( ^1 t
       
8 h' ~+ E2 [4 d) w        setSeedTable(seedTab);. b1 b- m) `9 r+ F% S
        eventController.end := str_to_time("3600:00:00:00");
7 S. p8 P; N# z$ f" jend;
9 I3 l/ }7 c5 y" w- q+ b' M, n8 S7 t0 \

* M0 O6 d9 m. |0 U) W- p  h5 a' Y! W& h6 d# G: S+ `% y
代码中1,1,0,16 Z5 y' Z9 _% Q  l# z' ^
           1,2,1,0
# D, i5 X* o, A. J. v            1,3,1,1        
) R$ P6 ?1 _; y( b1 ]0 A/ |& m分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了$ K  F! d7 _! ?: w& l7 A
do
( c4 |8 y% K3 A  n, D$ C& H        seedTab.create;9 c0 n" w' k: b8 n9 x( f
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 29 {( ?) u; ~8 t& [+ M2 _
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
* a- I# j; c6 R; n; f3 o( P$ Q) y: W                seedTab.writeRow(1,3,1,1,"Lead time");( }( Q! f4 Q5 U$ u, X
                print seedTab[3,2];0 l' w; i% O* b3 c7 x
2 x4 b, A/ i0 @; a4 [
-- ……
; v! b/ `5 [; f, x+ f1 fend;' M) y* m: E$ u! K

; o4 {$ f# y% A6 Y4 x: z. H<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
; ]- |3 f: s1 A这个说的也很清楚 ' \8 X) O' I+ q  z0 d
writeRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 ; |2 l4 O( |) M
你用下面代码输出就知道了
1 ?# A  I) a5 ~+ \do+ a5 C. p6 b( s3 |' ~. Q  n" v
        seedTab.create;
& K5 G9 Y  z4 T; I! ~7 d7 t
谢谢啊,还有两个问题需要请教
0 L! Q5 o0 H/ P" S/ i( K
7 ?' x: g, H! v/ y5 x; q, B+ X1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);! x' Y" V) H6 v9 A9 G! j
     SizeOfDemand是一个1列4行的Table文件,内容是:
) S- A; ]( I" @, h& M         1
" V" f% H4 I* x; K2 \9 N         2
; P7 v1 b5 A1 X" e. d9 d. I8 J# q         2
' ~# I; u8 u% E4 Y' C) D         13 z( U. e5 l7 H" j) S7 N" L% d
  {5 q% J/ r) ]( s5 A
, t/ |0 N3 N! f% n, n! P  J) m

; K$ ^0 z6 y8 F0 r2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
6 `; @6 F/ A) n8 {+ w/ ^4 j  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思3 N6 b4 N2 \( l7 R
, U9 W& w, L* Y2 u, c, T) }( G

, [4 K4 I' ]( `请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
" [* z9 N$ g4 I( j3 G, m: n4 i; AName in Plant Simulation English/German :Uniform/Gleich ; q/ n: g. O# r% {( ^2 w6 T4 d

4 B! [. b+ B$ A4 u7 n7 Q# f为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 - ]$ Q& W9 F# E
Distribution:Uniform distribution
* [# K' B. M3 y' F/ uName in Plant Simulation English/German :Uniform/Gleich

$ E' C3 ~- J( v8 C谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-25 22:34 , Processed in 0.018332 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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