Step 3: Running the Model and Viewing a Simple Result

We can now run the model by pressing F5. After the simulation completes, right-click on the Bank_Account element and then left-click on Time History Result… in the context menu to view a time history plot of the result:

A screenshot of a cell phone

Description automatically generated

What are we looking at here?  This is actually a plot of the amount of money in the bank account as a function of time.  It starts with an initial value of $1000, and increases to just over $1100 after 2 years.  The line appears to be linear, but it is actually the early portion of an exponential curve.  If the interest rate was significantly higher, or the simulation was longer, the curve would be more obviously exponential.

Before thinking about this result plot further, it’s important to first discuss how GoldSim moves the simulation through time.  GoldSim "updates" the model as follows:

   The model is updated (all the elements in the model are recalculated) at the timesteps specified by the user.  In this case, this means that element values are recalculated at 0 day, 1 day, 2 day, …, 730 days.  Values for time history plots are recorded at these user specified timesteps. 

   You can see the actual values used to create the plot by viewing a table of the time history.  To do this, press Table button at the top of the time history chart display.  The following will then be displayed:

   GoldSim also updates the model upon the occurrence of certain kinds of "events".  We currently don't have any such events in our model, but will add some later (in particular, some deposits and withdrawals). Events such as these could happen in the middle of a timestep (e.g., at 3.5 days).  In this case, GoldSim would actually insert a new timestep at the point the event occurred (although this point would not be visible in the saved result histories).

Related Topics…