Skip to content
Build and run an Experiment

Build and run an Experiment

Build two Runs, save the Experiment, and read one Output.csv. Names are examples.

To see a Run work first, follow the tutorial Run your first Experiment. This guide builds your own.

Before you start, have a model .stmx file. For a simulate Run, the Experimenter engine engine needs no Stella. See Engine.

1. Open your model

  1. Start Experimenter. On the Run tab, click New Run.
  2. Set Model to your .stmx file.

Every job executes on a throwaway copy of this model. The original is not changed by a job.

The Run tab with the Order pane on the left and the File Configuration table in the middle. Callout 1 marks Add under Order. Callout 2 marks Add under File Configuration. Callout 4 marks Run.

2. Add the Runs

  1. In Order, click Add (callout 1), choose Add run, and double-click the new row to rename it baseline. Leave its files empty. A Run with no files runs the model as shipped.
  2. Add a second Run the same way, high-policy, for the scenario you compare.

The order in the pane is the execution order. Drag a Run to move it.

3. Give a Run its inputs

  1. Select high-policy.
  2. Click Add under File Configuration (callout 2) and enter data/Input-Policy.csv. A file with a path replaces the model’s import of the same file name.

baseline keeps no files, so it uses the model’s own inputs. To capture only some variables, set Output variables on the Output Settings tab. Without it, Experimenter captures every variable. For the file rules, see Imports & Exports.

4. Save

Press ⌘S. An untitled Experiment asks for a location. Saving writes one .expt file that you can reopen later. See The editor shell.

5. Run

  1. Select one Run, several Runs, or a group. With nothing selected, Run stays off and the status line says so.
  2. Click Run (callout 4).

Experimenter copies the model for each Run and streams progress to the Monitor. If Stella exits cleanly but writes nothing, Experimenter retries the job.

The Monitor tab before a launch. Callout 2 marks Run. Callout 5 marks Open Output, which stays off until a job ends.

6. Open the result

When the Runs finish, click Open Output in the Monitor (callout 5). The file is a wide table by default. It has one row per job and variable, and one column per time step. Output layout in Settings switches to a long table. It opens in R or a spreadsheet. It sits under Output/ in the model folder, beside the Batch record, batch.json. See Outputs & Manifest for the columns.

See also