设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7129|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is% {9 [( m) l% L! b
        seedTab:table[integer,integer,string];
  c; T6 @# ~! W# D; s: D- `- [6 _do2 ]* a+ _( Q" `6 G
        seedTab.create;) ^+ I  x0 B, S- `8 R5 u, J: _
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2+ ?: M' o' W; r
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");) z2 G, R2 f& R! w8 j
        seedTab.writeRow(1,3,1,1,"Lead time");
7 A0 i% J8 v6 _) I       
- L. e! f8 Z, U! e' R- B# H5 J        setSeedTable(seedTab);* s4 t' k) \# V0 j3 p# n: [
        eventController.end := str_to_time("3600:00:00:00");2 n, g, L9 [, K- `  C
end;# Y) ]$ k0 t8 {/ o$ r
' \) S4 R0 d9 b* y8 ]$ e8 u

9 U$ u' n; a- u# ]7 F! X; K: s3 P( f* x/ @0 ?, Z' L* w
代码中1,1,0,1& A) J6 W$ |$ o! c9 P) z: |7 V2 Q
           1,2,1,0
+ S. p! ^& ~' ?. C) u            1,3,1,1        : D7 }# O  m( h6 y% ^
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了5 J8 M5 [8 m. F2 I9 k0 A& z/ x& D
do
- [3 R0 z2 \" ?; u" |6 B7 y        seedTab.create;$ H1 I# _$ O" |1 ?5 d4 p2 |# T, F6 G
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2: u1 B3 P3 s' B2 F! f# Y: H
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");5 A+ N4 L) b' |, R: g- C7 q( Z/ r
                seedTab.writeRow(1,3,1,1,"Lead time");
+ u* }) o4 w$ D( ^' V2 n/ y' z8 M                print seedTab[3,2];4 c: p  G0 ~* d4 Q& `
9 _4 i& ^6 ^7 _: `. {
-- ……- E% L$ i' a; M3 t# `( V- ]
end;6 [# J/ n! `. E0 z4 j1 j, ?

& g# Z. g) h: C$ R: q<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
" J# g, L2 w, d- [" D这个说的也很清楚
# Y$ t$ b' V* Q. \8 BwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57
0 N1 \' q- F. q; ?& X* ~" a4 b7 o你用下面代码输出就知道了
' m( x/ R1 @7 L* g7 {do! P3 R; r4 X" L' @( d/ _
        seedTab.create;
/ y- K( c1 j! a; E- n4 E' f
谢谢啊,还有两个问题需要请教
/ O, R5 k3 c' \7 r: F% E' F+ ^6 a& y! x# l! ]+ J
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);+ ?9 Z2 R* ^, ^( _/ k5 d
     SizeOfDemand是一个1列4行的Table文件,内容是:
' p! {' r' P2 A% R, `: f9 a# V6 E         1# E8 x/ V5 t/ q  X; d
         20 X' V( b. }. {  ~/ ~
         2
. t& M8 y; E! e+ X% ~7 p         16 Y( A$ ~! O$ j4 B
& a  u9 K# I+ q; q
. x1 ~3 u( @' g) N2 S+ X6 L: X

; A/ g8 D/ E: p! J2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); - ]/ o" C1 l" M2 i
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
( k1 W9 h2 g# i4 l. [7 P. i* Y+ U& W" q" m
  d' W- j) l5 ?4 z1 S$ }) K
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution" V2 S# o+ v- r8 D$ Y5 g+ p" ^
Name in Plant Simulation English/German :Uniform/Gleich
. B; J+ c& T2 u( l7 }9 r  D0 }
: Z% r1 R: V3 X' @/ Z为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
' I% e( ^6 ^4 U5 L- S. G& ?Distribution:Uniform distribution: F3 ^4 Y) D3 x  v3 @
Name in Plant Simulation English/German :Uniform/Gleich
; @) t% o: e  Q5 h5 P8 }; B) M6 p
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-8-16 23:38 , Processed in 0.021213 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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