Currently, the DEVSSimulator performs each replication
as a terminating one, which implies resetting warm-up
status, simtime and model after each replication. In
addition, steady-state simulation may be supported (see
Law & Kelton, chapter 8).
For such a simulation, only a warm-up is defined for
the first replication. After that, replication changes
only imply a reset of statistics (triggered by
REP_START/REP_END events). Model and simulator status
are thus not affected by such a replication change.
It appears that the main work for allowing such
'steady-state' replications is located in the
(DEVS)Simulator code, which currently handles resetting
of simtime, warm-up and model state. In addition,
statistics may reset on replication end events,
something which does not occur at present.
The attachments provide a first proposal for the
resulting state transitions for Simulator and
statistics objects.
Finally, it is recommended to add a utility function
'getReplicationSimTime' which returns the amount of
time run for the current replication. This eases the
collection of intermediate statistics data. For a
steady-state sim, with warm-up 100 and replication
length 1000, such a function would return 500 at
simtime=2600.
Steady state state transitions
Logged In: YES
user_id=387577
Niels,
I agree on the topic. This will be added to the next
release. Work is in progress.
Peter