设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6856|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is, \. X" m' @: a$ D
        seedTab:table[integer,integer,string];
2 V- i- m+ D% r' k% L. V- Cdo, P* q! ^  [7 k% _# c
        seedTab.create;- ^' j' P0 A3 _% a8 k0 T" A, E* J$ f
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2  x4 r2 w: `- G
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");! [1 A3 Q6 p* {
        seedTab.writeRow(1,3,1,1,"Lead time");
% Z& d$ c  {# X0 S: k       
; c- w2 R# W# p$ C0 ~( j        setSeedTable(seedTab);
, K! k6 B  z* g* T6 o) A" N        eventController.end := str_to_time("3600:00:00:00");
* e$ t; l' [! `7 m2 ^0 Mend;% b0 E3 M2 C& ?/ a) w

/ g" W% c( B5 h6 w
4 }- `) U: P" k5 y4 O) q! h8 L; U( V( b" U6 m; d# P! {
代码中1,1,0,1
  S" f: l2 ?' ^9 t2 e1 a. \           1,2,1,03 o; n1 X$ T5 t1 v' B; f
            1,3,1,1        " ~) |4 _, e4 U7 E) S
分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
. i- t/ s: `3 z4 V' Gdo: A# f; S" B/ u* b
        seedTab.create;" |/ _  t( k7 v+ V/ ?6 |
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2$ p; f( O; k) u) g0 P& ~3 u
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
* s( c& v9 m6 H% |7 k& y$ m                seedTab.writeRow(1,3,1,1,"Lead time");1 @& r) t' @4 h8 p/ E" ]2 ~. |2 B
                print seedTab[3,2];
5 W( F+ w- v' \4 C* A; e: J# t% e* F/ h4 i6 u9 q
-- ……$ l5 J) y  Y; I6 G  T
end;
/ I8 S# F) ]2 T3 n/ X+ h
* s/ o1 o; y- S<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
& J' R( W/ P5 B# f/ b. J' c- y, E; y0 G这个说的也很清楚
  r" {+ V2 m7 C$ l) Q- 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
: v, o- v. ~! {& l# z你用下面代码输出就知道了
) x& S! K/ @* j6 n6 Z2 B8 `: e, M, G* mdo
  z1 i, k  Z% I8 V& t        seedTab.create;

% ]0 j# d9 T& l$ E3 o. N: y. b  R5 Y+ S谢谢啊,还有两个问题需要请教
, D; W% e3 x; \0 \  ~! K* A
9 e* I3 ?3 B. n* I" `0 E. B2 J' t0 H1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
/ e3 b- U  `4 A# T     SizeOfDemand是一个1列4行的Table文件,内容是:
- N% [" {: }3 D9 p8 ]         15 F/ u* \0 E" N! Y9 n
         2
- U$ E# I* A& |1 @         2
# J' n5 V  P; W2 Y* H% u& T$ Y& i         12 h9 L/ \9 w! w4 E, N5 W
, a% ?4 n5 T$ j# Z
7 u; O4 y9 A3 R% D3 G- Z
( U' b: F2 Y8 Y* N
2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
# L, }' ]/ t9 v8 O9 p* h  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思: o9 {5 U* d. R2 r
( }7 m" G# j* L% _
, T" c/ E, S/ D1 y' P2 h) G+ y; Q
请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
2 r9 ?& E0 R# b' v0 T# |6 bName in Plant Simulation English/German :Uniform/Gleich
# h5 @1 o3 I0 V1 R* s
/ U: f6 ^$ h* g为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
  ]$ d2 E+ w( M$ }2 jDistribution:Uniform distribution+ Z0 S9 }& e! G$ b1 x! J7 Z
Name in Plant Simulation English/German :Uniform/Gleich
9 C) l3 v5 B" Q# A2 Q; g1 o6 M
谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-6 11:16 , Processed in 0.023432 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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