Saving and Restoring the Model Snapshot
Professional Edition you are able to save the full state
of a model (the snapshot) during runtime to a file, restore it at a
later time and continue running simulation from the same point.
This feature may be useful in several cases:
when a simulation takes very long time to complete, it may
make sense to save its state periodically so that you do not have to
start everything from scratch when e.g. the computer crashes.
warm-up period: if you plan to run several scenarios with
simulation that differ only after the model warms up, you may run the
model up to the end of its warm-up period only once, save the state,
and then reload it for every scenario.
distributed simulations: many parallel/distributed
frameworks require the ability to roll-back the model to some previous
state (checkpoint). This may be needed to synchronize the clocks of
concurrent simulations when one of them happens to “run too
- Any other case when you need to refer to a particular state
model without running the simulation from the initial state.
AnyLogic model snapshot implementation is based on Java