Referencing an Output's Previous Value

There are some situations in which you may want to reference the previous (as opposed to the current) value of an element's output. For example, you may want to reference the amount of money in an account (represented by a Reservoir A stock element that integrates and conserves flows of materials.) one day ago, as opposed to at the current time. GoldSim allows you to reference an output's previous value by using a Previous Value element.

A Previous Value element An element that outputs the value of its input from the previous model update. outputs the value of its input from the previous update of the model. Usually, a model is only updated every timestep A discrete interval of time used in dynamic simulations., so that the previous update refers to the previous "scheduled" timestep specified in the Time settings of the Simulation Settings dialog.

In some cases, however, GoldSim actually updates the model between specified (scheduled) timesteps. In such a case, the previous value is not necessarily the previous scheduled timestep, and may return a value between the current scheduled timestep and the previous scheduled timestep.

There are basically three instances in which a Previous Value element can be useful: