Set the resume switch for simulation. If n is 0 (zero) or missing the switch is turned off. The resume switch causes the model to resume simulation at the end of the Based On run. The RESUME command must be followed by the BASED command if n is 1. The optional t argument specifies the time to resume at. If this is blank or missing the simulation will resume at the end of the previous simulation.
Resuming from the end of a run does not require you to know what that time is: leave t out. SIMULATE>RESUME|1 followed by SIMULATE>BASED|oldrun resumes at the last time oldrun saved.
Set FINAL TIME past the resume time before you simulate, or the resumed run has nowhere to go. A resumed run starts where the old one stopped but keeps the model's own FINAL TIME, so if that is at or before the resume time the new run covers almost no time at all. Use a changes file or SIMULATE>SETVAL|FINAL TIME=... to extend it.
Resuming at a time - with t given - needs every stock value at that time, and fails in two cases.
First, if the model uses a function that keeps an internal pipeline or history. These states are written to the dataset only for the end of the run, so resuming with t omitted does work. The functions are DELAY FIXED, DELAY MATERIAL, DELAY INFORMATION, DELAY N, DELAY BATCH, DELAY CONVEYOR, DELAY PROFILE, SMOOTH N, QUEUE FIFO, QUEUE FIFO ATTRIB, NET PRESENT VALUE, DEPRECIATE BY SCHEDULE, DEPRECIATE STRAIGHTLINE and INTERNAL RATE OF RETURN. DELAY1, DELAY3, DELAY3I, SMOOTH and SMOOTHI are built from ordinary stocks and do not have this restriction.
Second, if the run was made with a Save List that does not include every Level in the model.
If t names a time the run did not save - a coarse SAVEPER, for instance - Vensim resumes from the nearest saved time and issues a warning. A t outside the range of times the run saved fails.
The order of the commands that set up a run matters. See Sequencing simulation setup commands.