设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6717|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is* l; b6 ~3 k- F+ `* N# n
        seedTab:table[integer,integer,string];
" O: z9 n/ C2 G2 C! edo
$ @7 n9 M5 o/ q# ^- e        seedTab.create;; A% s# s6 f9 ?1 e5 f5 X
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2$ v; C0 w; a2 O3 k0 G5 E1 X* h+ c
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");+ w* R3 @9 n1 N5 {0 [' s8 X* a: g
        seedTab.writeRow(1,3,1,1,"Lead time");, C' k; h1 H1 p) C- Z" `
       
# l1 J( Q* n& |& K, m7 H        setSeedTable(seedTab);8 L4 I2 n5 h/ ^& [( v0 b
        eventController.end := str_to_time("3600:00:00:00");3 B% t8 V7 T& f0 |4 \
end;  W0 E9 B( P% t$ @

7 o. W; ]3 u9 j* Q3 x' c6 K$ z9 G8 A! F
5 K' v/ c; ^0 n: ?
代码中1,1,0,1
2 n4 _" C& L4 _6 d4 f           1,2,1,00 ?7 X& }' O  f) i/ O0 R, b- Q
            1,3,1,1        1 @( F/ j2 ]: ?! G
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
! u" l4 L7 K5 A: \/ e& H7 xdo. c  p0 {) ~! @3 q) }
        seedTab.create;. v- l6 l% D7 C1 C4 M
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2* F/ x6 {# i; D
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
) d( W; h. H7 Q8 Z% i                seedTab.writeRow(1,3,1,1,"Lead time");( H5 e1 f4 U* x. H! {7 W: n8 H
                print seedTab[3,2];
# W  @& `4 _+ f5 E9 X# \  u( s  z/ o! y& ?: }, B
-- ……2 k/ W  }. e3 v* m3 z
end;$ r0 W* ~5 z+ K  C# V0 ?

; b3 N, U. C/ E( b5 M<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
; U0 a+ G2 R. w1 E& n这个说的也很清楚
, Q% K, Z3 Z" M5 h& D% LwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 " v1 J# [6 X; y, U
你用下面代码输出就知道了7 n: D& U2 v% j2 l) z8 p, h
do+ G; e! s4 k! E; P2 n
        seedTab.create;
& w, {/ h) [  U+ t8 i
谢谢啊,还有两个问题需要请教
: M7 V" H& W/ r% Y+ Y
" M7 s/ K6 N- b' I1 i9 C; m1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
: `% \/ F: Y; j7 V! E" O$ w9 A     SizeOfDemand是一个1列4行的Table文件,内容是:% f5 ?1 o, k9 a) E0 z, V0 \- r4 F
         1
* G6 I+ j/ t3 o; v         2
( c, T  {9 P  M% i) f% o         2
' {3 D6 f% H& h: a         1; H4 D$ `7 D- U

) x& r, |' c* l. ?7 r; o7 _
) ]& K  n7 o/ C+ k% l9 [  K  g- o  ?6 L% }" N0 i5 R
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); ) k8 L+ k2 @0 Z& V6 Z3 N) Q+ J) t, P
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思$ b' r+ w' x5 L& V  _4 ^% V

8 q, f$ O0 y/ `1 K: L5 i
2 ]; C4 c% P2 A9 c9 r6 Q) X1 H请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
2 M( z+ v( G6 R  g7 a' wName in Plant Simulation English/German :Uniform/Gleich
* a3 L9 g( Y! c7 N$ E6 I# h  Y; @; `# [0 ^3 C7 q* E' {/ P; ~
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
4 H* n1 H' S: i, HDistribution:Uniform distribution
" J6 t! ^0 e6 C0 o% v* |; X4 D* bName in Plant Simulation English/German :Uniform/Gleich

/ x6 g$ r5 y$ {谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-14 22:51 , Processed in 0.014888 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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