设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6736|回复: 4

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

  [复制链接]
发表于 2016-4-7 10:34:43 | 显示全部楼层 |阅读模式
is5 a9 o6 |$ P& M3 y) [) M# c
        seedTab:table[integer,integer,string];0 r( t/ C0 A/ ?& I
do
4 N4 B; h% e$ N# d3 v        seedTab.create;& m, R. }" q2 Y2 ?* P* h
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2& B% A4 U# N% b- Y& j, ?
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");0 i: ~$ d# e  \' R" E& A0 ?5 M
        seedTab.writeRow(1,3,1,1,"Lead time");
- b- B, O3 v' i, x0 ^       
8 }+ J  o6 q. m        setSeedTable(seedTab);1 y# N/ N* ~9 L; l$ G: z
        eventController.end := str_to_time("3600:00:00:00");7 L) d, M1 m2 [! C
end;4 ]  P: ^0 S3 u4 S$ M7 H

2 U/ W* f) |& D/ g2 K; O( g2 G& x
1 R; }% d' l! j# `
代码中1,1,0,19 C2 O8 }! G7 p: A
           1,2,1,0
3 m) U9 r3 v1 j  G. G0 j            1,3,1,1        
0 O  |( S. |1 _  N' d分别代表什么意思??  谢谢
发表于 2016-4-7 13:57:13 | 显示全部楼层
你用下面代码输出就知道了
8 R$ ]% m, j3 ~/ Kdo- x7 e4 [5 V$ F5 d9 _2 Z
        seedTab.create;
+ q& H3 {' y. H4 _: K- o1 j- \        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
* T. j) I: B: b3 e' P        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");+ x+ J" [; Y, v$ C" y
                seedTab.writeRow(1,3,1,1,"Lead time");
" o. q3 f8 A' {3 O+ Y5 a, f8 t9 S                print seedTab[3,2];9 \1 G7 L: S# j8 ~8 Q

/ a* C6 w4 B1 O! C- K' L) a1 ^-- ……
6 M4 y$ ~4 J6 g+ \- send;0 G" [! I! g* m8 Z

( [# K# S7 t/ C( L* j<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);: A5 O* z; k. c  a1 s- n1 K
这个说的也很清楚
; H. S: _" d* V9 [writeRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始  依次按排写入 0,1,"Size of demand"
 楼主| 发表于 2016-4-7 17:01:38 | 显示全部楼层
Amethysp 发表于 2016-4-7 13:57 6 _( D. R# B9 n. d+ p/ X
你用下面代码输出就知道了% q# I0 \' l" Z8 |3 F/ ^
do
) g; }% R4 O- t! g        seedTab.create;

" y3 p% F( r0 `3 Y$ F3 L& u谢谢啊,还有两个问题需要请教
. @  l& Y- i9 e
, g) e7 W0 O: t( s& J( I1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
/ T4 r, V& c" x1 w8 i! y% L# U! h+ Z     SizeOfDemand是一个1列4行的Table文件,内容是:' f* a( h3 q  [) G4 @
         1, ^: f& I0 \: d
         24 ^+ B/ \) s& A5 ~3 `9 M
         2
3 p! T$ E& H# d9 m8 S  P( i         1* B, |$ d$ ~8 x1 W% y9 n, R7 i" }+ m
" |7 `5 ]' F: n: @% H3 C) l

* k# M  J- M9 g0 }2 I- v# k
: L  S  k+ D  z1 c# f3 \, Y2.  Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400); ! K) Z3 ~0 B" ~0 y# y. X$ y
  这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思) H8 i, t4 a+ X7 n& {

/ d! P4 [: B, h" a- f4 E4 R7 j. C
: C( ]9 q* r: U请赐教   谢谢
发表于 2016-4-7 18:57:45 | 显示全部楼层
Distribution:Uniform distribution
1 s; `- \; [6 b$ y. G" j0 |Name in Plant Simulation English/German :Uniform/Gleich
9 ^" e9 {8 D, z) J: K7 W" {7 c  W2 r: P- E* N
为何不用自带的help 自己搜?前面一个也可以搜到的。
 楼主| 发表于 2016-4-7 19:01:57 | 显示全部楼层
Amethysp 发表于 2016-4-7 18:57
0 f) f- B2 l3 t/ s0 x8 gDistribution:Uniform distribution+ r% c/ i* A- ^9 U( Z# V8 }
Name in Plant Simulation English/German :Uniform/Gleich

" w9 q- c3 T! X" V谢谢  !
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-17 17:02 , Processed in 0.018867 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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