A Simple Arrayed Model

A small arrayed SD DSL model from start to finish
Keywords

system dynamics, systemdynamics, sd dsl, arrays, bptk, bptk-py, python, business simulation

A Simple Arrayed Model

The examples on this page share one model, set up here:

Lets have a look on a concrete example, how a multidimensional SD Model can look like.

Consider an investment depot with two accounts:

  • bank account
  • depot account

Both accounts will have different deposit rates and different interest rates each year. We want to investigate the value development of the bank account, the depot account and the whole investment depot.

Lets set up the model:

As always we define a scenario manager and scenarios:

And plot the results. Each cell is asked for by its own name, account[bank]: the array itself, account, has no values beside its cells, and asking for it logs an error that names them.

As always we can compare different scenarios with each other by plotting them simultaneously: