Skip to content

Reproducible Simulation Experiments
for System Dynamics Models

One Experiment file scales from a single Run to every scenario, Sample and Dataset, collected into one Output.

ExperimentDataset CDataset BDataset APrep Data.pyCalibrateBaselinePolicySensitivityReport.ROutput ExperimentDataset CDataset BDataset APrep Data.pyCalibrateScenariosSensitivityReport.ROutput
One Experiment, once per Dataset. Into one Output.
  • Reads XMILE models as .stmx and .itmx, translated for Python.
  • Drives the Experimenter engine and Stella Architect.
  • Runs on macOS 15 or later, on Apple silicon. Linux needs a source install. Windows is not available.
  • Runs Optimizations, Calibrations and Sensitivity sampling on both engines.

Process

Write

Experiments are created in the interface or with the agent toolkit.

model: ../Model.stmx
engine: architect

runs:
  baseline: {}
  policy-low:
     data:
      - file: data/Input-Policy-Low.csv
  policy-high:
    data:
      - file: data/Input-Policy-High.csv

Run

Experiments are run from the interface or from the command line.

$ experimenter validate policy-comparison.expt
$ experimenter run policy-comparison.expt

Output

Data is collated in a single Output.csv wide or long: one row per run and variable, one column for time, or per time step, ready for further processing.

sequence, dataset, level, group,     run,         variable,   2020,     2021,     2022,     2023,     2024
study,    Base,    1,     calibrate, fit,         Employment, 9.81e+07, 9.89e+07, 9.97e+07, 1.00e+08, 1.01e+08
study,    Base,    1,     calibrate, fit,         Output GDP, 1.42e+12, 1.46e+12, 1.50e+12, 1.55e+12, 1.59e+12
study,    Base,    1,     calibrate, fit,         Investment, 3.08e+11, 3.18e+11, 3.29e+11, 3.40e+11, 3.52e+11
study,    Base,    2,     scenario,  baseline,    Employment, 9.81e+07, 9.89e+07, 9.97e+07, 1.00e+08, 1.01e+08
study,    Base,    2,     scenario,  baseline,    Output GDP, 1.42e+12, 1.46e+12, 1.51e+12, 1.55e+12, 1.60e+12
study,    Base,    2,     scenario,  baseline,    Investment, 3.08e+11, 3.19e+11, 3.30e+11, 3.41e+11, 3.53e+11
study,    Base,    2,     scenario,  policy-low,  Employment, 9.81e+07, 9.87e+07, 9.93e+07, 9.99e+07, 1.00e+08
study,    Base,    2,     scenario,  policy-low,  Output GDP, 1.42e+12, 1.45e+12, 1.48e+12, 1.52e+12, 1.55e+12
study,    Base,    2,     scenario,  policy-low,  Investment, 3.08e+11, 3.14e+11, 3.20e+11, 3.27e+11, 3.33e+11
study,    Base,    2,     scenario,  policy-high, Employment, 9.81e+07, 9.92e+07, 1.00e+08, 1.01e+08, 1.02e+08
study,    Base,    2,     scenario,  policy-high, Output GDP, 1.42e+12, 1.48e+12, 1.54e+12, 1.60e+12, 1.67e+12
study,    Base,    2,     scenario,  policy-high, Investment, 3.08e+11, 3.25e+11, 3.43e+11, 3.62e+11, 3.82e+11

Agent Toolkit

The agent toolkit refers to the experimenter command line tool and the Experiment file format schema. An agent writes the Experiment, a plain-text file, validates it, runs it, and reads the JSON results. Agents are able to revise the experiment configuration until the Output meets the goal given to the agent.

GoalGapGoal − OutputExperimentValidateRunOutputBClose the Gap
Agent Toolkit. The agent revises and reruns the Experiment until its Output meets the Goal.

Simulation Engine Support

Experimenter supports managing two simulation engines: Stella from isee systems and the Experimenter engine. Both engines support runs, optimization, and sensitivity testing. Engines can be mixed within experiments and between runs as needed.

ExperimentStellaLicense RequiredPython EngineIncludedOutput
Simulation Engines. One Experiment, a choice of engine, one Output table.

Stella

ModesRuns, Optimizations and Sensitivities
RequiresA license for Stella Architect
PlatformsmacOS 15 or later, on Apple silicon. Linux needs a source install. Windows is not available.
ModelRuns the .stmx as is.

Experimenter Engine

ModesRuns, Optimizations and Sensitivities
RequiresNo Stella license
PlatformsmacOS 15 or later, on Apple silicon. Linux needs a source install. Windows is not available.
ModelTranslates the .stmx, functions, arrays, modules and macros