设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7001|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
  S0 ?: _9 g4 _        seedTab:table[integer,integer,string];
" c( i4 c3 t, O, p7 @7 x- Bdo
9 l6 u: m  [' D5 b* H8 P        seedTab.create;
. u8 p5 ]# t8 y4 T2 }5 w  }        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2% M% u& f0 u6 i$ ?8 C. |
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");4 x6 w3 N# M% S* \( A7 i
        seedTab.writeRow(1,3,1,1,"Lead time");8 w* y+ ]# |. [8 U0 p( Y
        9 O7 H; @0 k! z4 b2 o
        setSeedTable(seedTab);
( o# D) Q  O' L) W6 S        eventController.end := str_to_time("3600:00:00:00");: T- S& ~, l) Q8 ?) c  U
end;
& q. \5 C* |/ R& F4 c4 q
8 @1 K9 l- ~- H) z& V
  T4 x/ C2 P( S# |/ x. l
) y) N/ T* y) l  P! S# T( h代码中1,1,0,1" `1 p, ^3 n2 w! H7 r/ e& R4 `
           1,2,1,03 b+ L) U) _- |1 l
            1,3,1,1        ! P" z9 _6 p& ?& b: n* r' @- Y
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
/ A/ l4 l5 a) M+ Jdo
/ ?2 Q1 `+ V, [- X! Z        seedTab.create;
. D: @: ]* ^) I$ r' V/ r        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
/ \& [% P$ t5 D( F, ?6 O0 Q; ^+ p        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");/ o( F- s- I! D# x" E" D2 F9 L
                seedTab.writeRow(1,3,1,1,"Lead time");" U- x  c9 L; ~4 l! C- j4 E
                print seedTab[3,2];
7 v2 u. ]! ~5 k+ U3 r5 s8 I+ L0 t' m$ _+ x
-- ……
$ b# }+ H- Z$ C3 l/ T1 y8 O# t0 hend;& g/ l6 v9 E3 \# G

; `( ?+ k# u6 w3 J1 y6 w<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
" ^5 w, `4 z$ W$ Q这个说的也很清楚
2 |! c+ L5 g. s! kwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 6 ]8 h$ w" }4 B' d6 E) F7 j
你用下面代码输出就知道了2 `# J' d+ o( w1 t% j2 l
do' g6 U* H" v4 w( x" o
        seedTab.create;
3 k# S7 T6 K$ ^! E# n4 ~+ a& s1 n0 U
谢谢啊,还有两个问题需要请教4 C# ^" Y- E9 T* Z/ q+ ^6 x

  x' E' e7 X! E" n1 {1 l2 s7 y1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);1 U: D! W8 g7 A% U$ a
     SizeOfDemand是一个1列4行的Table文件,内容是:! S2 y0 u1 H0 c! ~
         14 E8 Y7 O- t& @6 ~" P2 A( _2 g
         28 n4 f, f( A1 Q) h) U
         2; M3 ?. s4 S% h6 Z4 m5 a
         1  w' v3 a2 R- d. e0 P. J6 Z

# N8 T+ t1 [( h8 [
) K/ r- V) V( R5 s
1 \5 ~7 T6 M, ?) D! _2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); / I4 H& {) }* Y# K- i( r
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
2 f/ ?9 @1 Q) D3 D, W) y: V/ n
" u  w3 \* J3 w/ }8 f: }& V. y) X% X: r  C. W. x$ d2 d; G
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution  }3 ^; x6 d4 z5 a. K' d. N
Name in Plant Simulation English/German :Uniform/Gleich
0 y* W9 f) ]3 `8 m# b2 P
0 g3 d: R+ m" K9 k( w: q  t为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
. r# }' z; t% t% ^( ^4 {% cDistribution:Uniform distribution& Z  {+ ?8 _6 Q. L2 V. d  U
Name in Plant Simulation English/German :Uniform/Gleich
3 F+ ^- ~9 L* `$ u
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-25 01:38 , Processed in 0.016531 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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