Title | P5 - Process Modeling in Sim Py |
---|---|
Course | Modeling and Experimental Design |
Institution | California State University Sacramento |
Pages | 10 |
File Size | 388 KB |
File Type | |
Total Downloads | 54 |
Total Views | 143 |
from professor victor chen...
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
iemnnlitssiim Duration of a simulation env run I
o Ito d nonneg
burnsthroughtime
for hw exec until nomorefutureevents
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
def
c no yield
is not a pf
samplefuf importsimpy em simpyEnvironment
def
It print starttime yield em timeout121 print endtime
envprocess 1 111 em run
simulated 2 see notreal time
! se ! next 1generatorinstance ! ! ! ! generators functions ! executes first encounter ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
! ! ! ! ! ! ! ! random returnvalue ! ! ! is in aloop firsttimegeniscaned o is r yield ! ! ! ! ! ! ! ! create n instances of W! generatorinstances ! ! aged ! or abioii nreturntheerroranyways ! getsnextvaluefromthefunctioncan ! ! ! !
! ! ! ! ! ! pe ! ! ! ! pt ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! cedar ! NW ! !
! ! ! ! ! ! ! ! ! ! ! ! ! one ! µ! g! ! !
s
1
H
tU Pfi
pf2 Pf 2
wai
tohappen
interrupts p
se occurs
secreated meansevent willhappen infuture now pf's can interact Sharedevents
interrupts
snaredfirst NAMEtriggered
to make a se happen
only h4 do
returns
instan
TIF
se success
sop...