非常感谢zhdew的耐心指导。9 t# x2 ^( G4 @. z5 N2 H7 d
的确我是想,当达到capacity,不再产生load,直到有空余空间再产生。6 x8 S: j* s! x
; D6 M y% ?) T) D$ l3 G我按照这个方法做了(2.1和2.2都试了),但运行结果和我以前设traffic limit完全相同,那个Space里的load数 仍然大于所设的limit。也就是说load在下一个流程没有空余空间的情况下也在产生,等在队列space里,有空间就挤进去,这样后面这些load的到达就不是伯努利过程了。
, H* d7 C4 b7 d* A
7 E8 w: T) V- w4 |看用户手册上说,“Created loads start in the predefined queue “Space.” You specify which process they go to
& I+ e/ v r6 c8 N T. M6 qfirst. A created load does not actually enter the system until it can get on the traffic count of the first process. A traffic count that has reached its limit on the first process does not prevent the create action from occurring. The loads are created but wait to enter the first process. Using the create action incorrectly can accidentally create a huge number of loads in the model.
( m7 T, x4 \' I6 R9 U9 D, @! W1 K: [
For example:5 y# [; C: w, v. K5 w
-------------------------7 G1 N* x! E% P* Z
begin CreateMe arriving5 P8 A- I+ J% Q! q
create 1 load of load type Lnew to CreateMe
3 T( r7 ^: O% dsend to Pnext0 J0 _6 C* e& p8 A* V, F) ?
end( y* m* P7 u: X1 c. a4 u
---------------------------
, E1 y1 Y. r* @The create action in the process above is incorrect because there is no time delay between the time the first load enters the process and the time it creates another load and sends it to the same process. An infinite number of loads are created at the same clock time unit. The model enters an infinite loop until the machine runs out of memory.7 [8 y, e6 ~/ o* Y5 R2 ~, @& Z+ U
) ~, {$ I* K+ M$ R感觉一个create 好像总在产生load,停不下来? |