设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3686|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
. c( m( e7 w( s, F        seedTab:table[integer,integer,string];7 e) {3 ~) S1 [) L) g
do# ^: X5 i6 y; _, F* T' u
        seedTab.create;
" Y) _; |* H# K+ a; [! Y" U  _        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 25 Z: Z. n& L! z  {& E# l
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
; M# M3 Y$ A0 ?7 x0 h' W3 }        seedTab.writeRow(1,3,1,1,"Lead time");
. }4 I4 D$ c+ R) ^        ' F1 x/ c0 S+ P1 v7 j7 G
        setSeedTable(seedTab);
7 N' o  _; L& k! F* |" ^        eventController.end := str_to_time("3600:00:00:00");
, J) r+ L0 m* Mend;. D! l* e' e3 I: w2 z
( H9 \2 o$ r9 y2 B. v' n, n+ i2 f6 t+ A
3 E; Q5 A, }2 a  U$ d2 |

/ F5 M8 G( k! z1 k) Q+ a代码中1,1,0,1
( c/ [  L3 Y" ~  m, z) c           1,2,1,0
1 H- V3 L9 {" D( M$ U; n            1,3,1,1        % ]" {' k- d' N, k
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
  L% p2 }( F: p6 C! d  S$ b! ndo) T* C4 C' c" q# `! j( f
        seedTab.create;* m5 \$ d" x( F* h- K
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 20 a. B2 c; v! o& @% {2 x0 _
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");" X& p& Q. A; Q3 A( `& n
                seedTab.writeRow(1,3,1,1,"Lead time");1 n7 K3 @/ M' @; C4 {5 o
                print seedTab[3,2];
* K5 }" }9 e2 k& ]) \. o0 A9 w1 T# ?  f' r) e# O: y
-- ……' l) T3 h+ ]# [1 J* q5 I
end;9 I( f3 Y+ ^0 E9 a* T" X

! Q, g& x9 [' ?" _( ~% j6 ?<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
  g) v$ Z) D+ p, q这个说的也很清楚
' Z7 u, D) l9 \+ `% S& B0 B; 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 $ C4 G7 P- d& f. O0 R
你用下面代码输出就知道了
6 H/ C3 H' h! V9 q8 {do
6 e0 X- x* {) V7 [: z1 v        seedTab.create;

; N( k! j* e3 L2 k谢谢啊,还有两个问题需要请教
/ J5 ~, _, B6 i& \1 C- ]$ O5 ]- ?
2 }3 \: S& t( w& W+ M' f/ _1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);# `4 f) K" f& _7 K6 T
     SizeOfDemand是一个1列4行的Table文件,内容是:
3 E2 p# Q  T9 L; ]5 N+ c2 s* O0 A         1: {$ _, B! n" z" ?7 Y
         25 ~# y5 j9 w' v2 C; |# q
         2
/ A) B, R* X: }9 z         11 S0 z+ b3 c: x' _1 _& E( C

- K2 I9 r% C2 y, [: @! h0 s. k  C) u3 A. r/ e# O6 P
  _: T7 J: w6 D: G( H: R2 k
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
* O/ O4 \. w8 ?  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思: Z0 p0 z4 {, O1 r' o& ?! V9 I8 B

( G" R/ f5 K- K( u; R3 L* A% q( G
8 m! w4 i) t9 l2 H请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution5 w8 Z% @. x7 e4 K6 x& ^7 d" K
Name in Plant Simulation English/German :Uniform/Gleich
; Z- p7 U" I* C9 r# V' s, o7 ?; y3 h( a  N* `: @$ T& D7 T* C  m
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 & g# _6 S# n& ~2 S
Distribution:Uniform distribution
+ z  d2 A' ?! T% u. Z; V% ~' gName in Plant Simulation English/German :Uniform/Gleich
0 M" q* n# v! d; t$ Y! a
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-6-6 11:23 , Processed in 0.018487 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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