设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7230|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is/ ?  W+ S) u& v; @
        seedTab:table[integer,integer,string];5 c1 P" x$ l8 U  _$ a
do
8 f3 T! h7 v5 l+ i2 M" N, k        seedTab.create;
, a" T" o  D  t! q, j        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
, K( G. K0 ?, t        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");, j+ K; J' n# T- v4 M- J& x% V
        seedTab.writeRow(1,3,1,1,"Lead time");: F! @* B! G; j: t' N
        9 n- B2 r* \) h. e! z1 j+ Y0 j
        setSeedTable(seedTab);
- j. D" F6 r6 U& ~        eventController.end := str_to_time("3600:00:00:00");
3 B# F( f# o% `/ T0 ^end;
: a1 V) G% \/ ?- ^0 z. V
* v; F- P* R+ S% G* m7 r- m4 j/ B. I/ v7 I& Q" s9 B' E- d
6 t. r5 ]0 b0 W0 p
代码中1,1,0,1
! R1 @2 X% i) f4 A! E9 q           1,2,1,0
- v7 r3 I. Y) j4 B. Q0 O) g            1,3,1,1        4 b2 h, f% u6 F
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
& _8 {( `8 R; Y2 b# c7 {8 b3 ?do2 Y# P4 C( r( m0 [' w6 z; k
        seedTab.create;
, ?  w' x% L  c& I) `  G) j        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 24 {5 u. j9 x6 @
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");: r$ G: g7 E: s& T/ b# d; ]
                seedTab.writeRow(1,3,1,1,"Lead time");8 g3 r0 R/ D4 T6 v1 t9 M
                print seedTab[3,2];+ \5 H- p7 P7 o& x
5 \9 f' x9 A2 M1 k
-- ……
/ m% C5 |! o4 fend;
; s& B* p% D( w2 K9 W* y! [, L9 o( w+ F+ s
<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
# B, z, _& L" v4 \+ ]. \这个说的也很清楚
" y9 N7 D/ f1 D) o* O, rwriteRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 ) y. I  p- U# \1 N; H0 x; Q, _  Y
你用下面代码输出就知道了3 @. G# K, E$ k  t: H- C3 F6 ^5 T
do/ F  x$ U$ P: i
        seedTab.create;
: [1 Q  e) b4 \; o' ?2 s
谢谢啊,还有两个问题需要请教- `! s/ G- c7 J8 d9 K( B3 V) q

$ g4 R* s0 Q* S5 t* E3 U; A1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
! Q0 y+ o3 A1 Q7 C( V3 ^     SizeOfDemand是一个1列4行的Table文件,内容是:2 o  n* l+ w6 e% P. x) D
         1" F' u* O; s* F7 f/ U* [
         2! O2 p- F0 P, g9 |% w/ \
         27 |/ N6 l1 f" m% o( u- [
         1* o0 A  _7 l+ `3 M2 a

; l1 u: \/ X. A9 J) G) ^; K- E- I- M1 Y4 R

4 ?. h, h1 L4 o/ ?) t( E2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
% h6 v3 M* z8 o' \( r  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思
3 k3 K9 s$ p- r6 L" s& a& w
; e  }. S# I6 z4 ?; s6 E6 c$ G& e  b5 N2 p4 h. I7 v) h
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution: i2 n) s2 `! }7 U- v& P% l6 U4 V
Name in Plant Simulation English/German :Uniform/Gleich
7 Q- U7 a7 O% S; A& [' x- O& C1 |. x0 `5 x+ g# d' [' o5 f
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57 " J+ w- D- p% _' U+ X& g, }. j, `
Distribution:Uniform distribution
( |& G& c  u1 gName in Plant Simulation English/German :Uniform/Gleich
$ H( N% I* f9 t3 _4 N1 R
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-6 14:58 , Processed in 0.020790 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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