设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5020|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is( i8 |0 f  o5 D! X' M5 D
        seedTab:table[integer,integer,string];
( m; i. W3 M: {, P; m. bdo
. A5 T+ o3 [" |        seedTab.create;
7 o6 O: x' @: }        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
/ a5 M3 _5 s2 y6 k' p# U, D8 Z$ N. W        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");+ Y9 C) ^0 y1 g+ D! w( R
        seedTab.writeRow(1,3,1,1,"Lead time");$ Q' c3 F' y- v0 K) g
        2 v( j: F2 l/ O
        setSeedTable(seedTab);
3 B" m  P) n! h; z        eventController.end := str_to_time("3600:00:00:00");) j: J  f% G9 B9 D! ?6 B
end;
3 ~& a+ r! H$ h( V
$ g! V0 i" M+ e: S, Y) Q3 i
) o" o9 L4 M7 Q) u4 ~) ~7 H: O
  w" [" j$ P: H7 Y% l* z; W2 J9 t( I代码中1,1,0,1
; M) h, S8 M  \* p; w           1,2,1,0
! H9 m6 z) H' f3 A+ D            1,3,1,1        
, P1 P3 t' ?+ S" y5 u0 t, F, g分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
2 B7 T7 _0 G- F& C9 }do8 N! e1 j" ?% y3 L+ p! n' @
        seedTab.create;
5 \" W: o% [% a0 ?+ }* p0 F- f        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
$ w: V7 z$ Q) m* u$ }9 U        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
, V$ K( v( A% d5 G. ?% F# @( m( u                seedTab.writeRow(1,3,1,1,"Lead time");/ @# ?* A% N3 o% w; ]4 T) q3 p
                print seedTab[3,2];; N5 Q8 P- A( D$ `2 m- ~
) o. w5 V! P: F" l" c3 c
-- ……+ m6 q6 y' U: ?1 e5 Z5 T
end;# \! ]3 m* ^9 E9 L

6 A! z; C' D* c5 K8 {5 _0 Y; _<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
6 u  y% ^* M( N这个说的也很清楚
- s' i- a+ X3 L8 x8 zwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 , z1 f2 {3 s  g4 Y) I6 g
你用下面代码输出就知道了1 @! F) ?4 p0 F2 V$ n! s# _+ \, [
do+ n6 m3 y5 l2 M+ [8 E: q
        seedTab.create;

  g3 m- y! z3 F9 d9 c4 u% `' b谢谢啊,还有两个问题需要请教+ R/ D4 t7 p, D# s# L) W( p
7 I/ C0 G! T% z5 U: l
1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);& G# w' Y3 D  @9 P
     SizeOfDemand是一个1列4行的Table文件,内容是:
1 s% N: k" n: S  T         18 B' b! N3 e7 Q+ C2 e( L4 Y
         2
& M# l! {& E1 U/ p$ G         2- q" e# \9 X* F' F" t
         1
* h$ h, _5 Q9 l9 j/ u2 ^/ T* I  q" w9 V& N
! q4 Q+ L- |( ^: y

, g$ t' F( z& ^& F4 j: y& h! o2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
% @% J1 W% g! I9 g  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思; c' n' B6 M2 g- q4 M" F
$ J; A0 {, n4 q8 @7 D3 _

6 E/ }. i8 M* r* b请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
) M  ^, b' e% n: P# L& V. P4 nName in Plant Simulation English/German :Uniform/Gleich % r. e) e+ [7 c- Q6 G/ n* b3 ?1 J
" v2 S6 z7 b7 e5 i
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
7 L9 m# w& B+ I6 N& }: X% \6 ?Distribution:Uniform distribution& l, X# e2 D& s% I: S
Name in Plant Simulation English/German :Uniform/Gleich

$ g# i  c4 D2 @) I# |2 x+ [% ]% V' Y谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-21 10:46 , Processed in 0.014817 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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