设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6535|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is
9 z, J& `3 H2 n; l        seedTab:table[integer,integer,string];
# E9 M, M, ?0 H! Z* m: r  ~do
4 d2 V8 Z( L. ]& E        seedTab.create;
( T. R4 W0 m! W  B+ N: m        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2$ V8 K4 J+ ~; V+ K
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");/ v% A. C4 |) {! H2 y3 x
        seedTab.writeRow(1,3,1,1,"Lead time");: @3 Z& M% y9 _# v- O
        0 A, D1 `% \+ J6 ?( b: L( L
        setSeedTable(seedTab);
! {. @3 v' Y+ j: h/ L* E  r6 F! m        eventController.end := str_to_time("3600:00:00:00");
" C* k$ p; ^! hend;, m8 ~+ I6 G$ M! _* F9 b, u

* R6 `3 q7 i5 t7 J# M" I8 a- p
6 ?% v# J% {; ?- P3 E
  x' F2 S) E" [0 Y" W9 s7 O代码中1,1,0,1
7 P6 d  Q) V. ]  ~+ }/ z           1,2,1,0
  x6 m( H5 w& \$ X- i$ _+ L( {            1,3,1,1        
6 G' t3 Q( S# |/ i3 e" X分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了$ v# M! Q7 G8 F9 |; _' h
do
+ v* x; E! S- q0 ?        seedTab.create;
, e* m) r% n7 G7 V        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
7 v9 `3 F8 X9 j+ e! T        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
- e  Z/ Z( \7 f: s2 y* [" O; W% k                seedTab.writeRow(1,3,1,1,"Lead time");: w# t1 o3 x. u/ K1 }% ]! V# ~
                print seedTab[3,2];
* F- _' P) ?  |/ O3 w. s2 C6 U3 `! E* D6 [
-- ……3 o+ v6 a- z, i( N: W. I
end;+ C2 c7 L& b- x$ K# P
( P% y7 k: d1 I: J% K8 U
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
; D+ v1 F/ j2 T2 V这个说的也很清楚
* l3 I) k& H" g8 O8 xwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 ; T+ X/ c% Q: w+ O
你用下面代码输出就知道了
  M8 T- c& F. ~0 z& Rdo
7 a" [9 y' ]: i3 N- q0 M        seedTab.create;

& f. K* p: d+ d* D' A谢谢啊,还有两个问题需要请教
* Y9 i) Y) \1 B8 n7 H; V) G- V* }
$ H7 G2 r* p9 D1 L! S1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);) j7 p) |, ^8 t& X: Y( w
     SizeOfDemand是一个1列4行的Table文件,内容是:1 H0 ^- }- G2 n
         1  j$ _; F5 B, t- ~
         2
- ~" ?* D  c9 _0 ?5 o1 Y( m3 Y         2
$ k  G" e4 b& `7 ^! p         1: P3 A+ \; j) I5 a
' q/ [8 q; g9 p# E9 n2 d

  {- A$ ]( X, ?! `* p6 \+ A
! X+ l* y: p& x; _% A& x2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); ; Y# M! M7 [4 |' S+ i/ x0 M# t3 ?
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思0 T8 v! r( \9 @: U" b3 _3 ?
1 Q' m3 j0 T3 i6 b8 S/ J: B  x

0 y# D1 V  a" `4 {+ d3 A4 c请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
' X& W" W: ~8 Y% kName in Plant Simulation English/German :Uniform/Gleich : \' F* P- j' z% h4 `
0 ~$ |: |3 T7 \0 B2 M' \
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
% o  u2 @  @" K$ o. b- LDistribution:Uniform distribution9 n, ]$ p# ?' n9 K  A) e1 @: j
Name in Plant Simulation English/German :Uniform/Gleich
; {; ?2 z, A/ b" |3 K" K
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-5-18 10:58 , Processed in 0.016172 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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