Experiment file
An Experiment (.expt) is one model plus every
Run, Optimization,
Sensitivity and Sequence
done to it. It is the only shape Experimenter writes. This page lists every
field. The generator builds the page from the same dataclasses as the
Experiment Schema, so the page cannot drift. All
examples use synthetic names.
Experimenter opens only .expt files and .zip bundles. It refuses a
one-mode file with a type: key. A document has no type: key.
This page lists keys. The settings that each screen of the app shows are on their own pages: Run tab settings, Optimization tab reference, Sensitivity tab reference, Sequence tab reference, Monitor reference and Outputs and Manifest reference.
The Experiment document
model: ../Model.stmx # path to the model, relative to this document
engine: architect # architect (real Stella) | experimenter
runs:
baseline: {} # a Run that stays native
optimizations: {}
sensitivities: {}
sequences: {}If a file omits engine:, Experimenter uses the saved default in
the Settings window. If there is none,
it uses the engine that it finds on the machine.
Experimenter refuses a key it does not know. A stray or misspelled key is a
validation error that names the key and where it sits, for example
unknown key(s): retires. The error applies to the document and to each of
these: a Run, an optimization, a sensitivity, a sequence, a sequence step, a
group, a hook, a dataset or axis entry, and sim_specs. Experimenter does not
ignore the key and run. Fix the spelling or delete the key. A retired key keeps
its own message.
A yes-or-no key takes true or false only. Experimenter reads the file as
YAML 1.2, where yes, no, on and off are text, not yes-or-no values.
Any value other than true or false is a validation error that names the
key, for example active: 'no' is not a boolean; write true or false.
experimenter validate reports that error and refuses the file. The run
command and the Validate button in the app do not check this yet. Write
true or false in every file, and run experimenter validate first.
The Experimenter engine runs a simulate Run with the Euler, RK2 or RK4 method, not Cycle Time. It runs a Sensitivity Run with a Limited runs (Latin Hypercube sampling), Limited runs (random sampling) or All combinations routine. It runs an Optimization Run with a Powell or Differential Evolution routine. It refuses any other Run, method, or routine at launch, with a reason. See Simulation Engines for the features that each engine runs. See Concept details for the rules that the glossary links to.
| Key | Type | Required | Meaning |
|---|---|---|---|
name | text | The Experiment’s own name. Names its folder under Output/ and fills the sequence context column of the collated file (Output.csv by default). Absent means the document’s own file name. | |
output_saved_runs | boolean | Which saved runs from the model’s isdb are folded into the collated file. Absent (the GUI’s ‘All’) folds every bound saved run; false (‘None’) folds none. A Table-name output scope folds unfiltered, because Experimenter does not read a Table’s variable list back from the model. The named-list form is retired: a list value is refused, not silently accepted. | |
model | text | yes | The model file (.stmx), relative to this document. Every Run executes on a throwaway copy. |
modules_dir | text | Folder holding the model’s .itmx modules, relative to this document. Every .itmx there is indexed; the model’s own | |
engine | text | architect (real Stella), professional or simulator (the other Stella editions), or experimenter (Euler/RK2/RK4 integration, Latin Hypercube/Multivariate/Grid for Sensitivity, Powell/Differential Evolution for Optimization, see Concepts, Engine, for its launch refusals). Falls back to the persisted Settings-window default, then to the first configured engine, when absent. | |
outputs | list of text | Display list. Does not scope a real run. | |
retries | integer | How many times a failed Run is retried. Default 2. | |
timeout | number | Seconds before a Run is killed and retried. Default 900. | |
workers | integer | How many Runs may run at the same time on an engine that allows it (The Experimenter engine). Absent means the Settings-window value, then one fewer than the number of physical CPU cores. A memory guard can lower the count when one Run would not fit 70% of physical memory that many times. An engine that does not allow it (Architect) runs one Run at a time, whatever this says. | |
calibration_timeout | number | Overrides timeout for optimize Runs specifically. | |
datasets | list of DatasetAxisEntry | The dataset axis. Absent means the single implicit dataset (this document’s own directory). | |
output_increment | boolean | Default false. | |
output_variables | text | Scopes every section’s collected output by default: a variable-list file or a model Table’s export name. | |
retention | enum: everything, outputs_only, outputs_and_final_models, final_chained_group | What every launch keeps. Absent means the Settings default, everything. | |
runs | map of name to RunEntry | Runs and Groups, keyed by a stable id (the map key IS the id and the display name). | |
optimizations | map of name to OptimizationEntry | Calibration scopes, keyed by a stable id. | |
sensitivities | map of name to SensitivityEntry | Sensitivity routines, keyed by name. A Run binds one through config.sensitivity. | |
sequences | map of name to SequenceEntry | Sequences, keyed by a stable id. A member’s stage: names a sibling id in runs: or optimizations:, one flat namespace across both. |
Runs (runs:)
Each runs: entry is one Run or one Group. The map
key is the stable id of the entry and its display name. All fields of a plain
Run are optional. {} is a valid native Run. A Script is a sequences: stage
or a dataset before:/after: entry, never a runs: entry
(Scripts). The Script table below gives its keys.
A plain Run
| Key | Type | Required | Meaning |
|---|---|---|---|
data | list of DataEntry | This Run’s import/export configuration. | |
config | Config | This Run’s Configuration edits. | |
depends_on | list of text | Sibling ids (this same runs: map) that must finish first. | |
mode | enum: simulate, optimize | simulate (default, -r) or optimize (-ro, a calibration step run standalone). | |
retries | integer | Overrides the file/group default for this Run. | |
timeout | number | Seconds before this Run is retried. null turns the watchdog off for this Run. | |
retention | enum: everything, outputs_only, outputs_and_final_models, final_chained_group | What this Run keeps. Absent inherits its group, then the file. | |
output_variables | text | A variable-list file (.txt/.csv) or a model Table’s export name, scoping this Run’s output. | |
engine | text | The engine this Run simulates on, overriding its group/file default. Stored even when it equals the resolved default: an explicit choice survives a later change to the default. | |
checks | list of Check | Acceptance checks on the output of this Run. The launch writes each result to batch.json beside the job status. | |
outputs | list of text | Display list for this Run. Does not scope a real run. Absent inherits the document value. | |
calibration_timeout | number | Seconds before an optimize Run is killed and retried, for this Run. Overrides timeout for optimize Runs. Absent inherits the document value. | |
datasets | list of DatasetAxisEntry | The dataset axis for this Run. Absent inherits the document’s datasets: list. | |
output_increment | boolean | Output increment for this Run. Absent inherits the document value. |
A Script (a Sequence stage or a dataset bookend)
| Key | Type | Required | Meaning |
|---|---|---|---|
script | text | yes | The command to run (bare ‘.py’/’.R’ gets the inferred python3/Rscript; anything else runs verbatim). |
name | text | Label shown in the Monitor and EXPERIMENTER_POSITION. | |
timeout | number | Seconds before the script is killed. Default 300. | |
continue_on_error | boolean | Default false (halt-on-failure). true lets a later item run after this script fails. | |
active | boolean | Default true. false skips this script entirely (sequence-active-column). | |
level | integer | Sequence outline depth. 0 starts from the Template. Ignored outside a sequences: entry. |
A Group (group:)
| Key | Type | Required | Meaning |
|---|---|---|---|
group | list of text | yes | Sibling ids of this SAME runs: map, in the group’s own order. A Script is never a member. |
retries | integer | Overrides the file default for every Run in this group. | |
timeout | number | Seconds, per Run in this group. | |
retention | enum: everything, outputs_only, outputs_and_final_models, final_chained_group | What the Runs of this group keep. Absent inherits the file value. | |
output_variables | text | A variable-list file or Table name, group scope. | |
sim_specs | mapping | Group-level simulation window (start/stop), distinct from a Run’s own config.sim_specs. | |
engine | text | The engine every Run in this group simulates on, overriding the file default. A Run below with its own engine: wins over this. | |
outputs | list of text | Display list for every Run in this group. Does not scope a real run. Absent inherits the document value. | |
calibration_timeout | number | Seconds before an optimize Run is killed and retried, for every Run in this group. Overrides timeout for optimize Runs. Absent inherits the document value. | |
datasets | list of DatasetAxisEntry | The dataset axis for every Run in this group. Absent inherits the document’s datasets: list. | |
output_increment | boolean | Output increment for every Run in this group. Absent inherits the document value. |
config: (Configuration edits)
config: holds the Configuration edits of a Run. Experimenter writes these
settings into the run copy at start, never into the Template. See
Imports & Exports for the import/export vocabulary of a
data: entry. See
Optimization Groups (Calibration) for the
payoff-window twin of sim_specs, used inside an optimize step.
| Key | Type | Required | Meaning |
|---|---|---|---|
sim_specs | mapping | Model-level simulation settings: start/stop/dt and the method/restore_on_start/save_interval/analyze_mode set (and more), plus time_units, interaction_mode and a nested loop block (scores, exhaustive_allowed, pause_after_rates). Unknown keys are refused and each value is type-checked. interaction_mode: Normal is written as absence. Accepted keys: analyze_mode, disable_simulation_events, dt, dt_reciprocal, ignore_module_errors, instantaneous_flows, interaction_mode, loop, method, pause_interval, pause_interval_inf, play_start, restore_on_start, run_prefix, save_interval, sim_duration, simulation_delay, start, stop, strict_units, time_units. | |
modules | list of ModuleEdit | Per-module run flags. | |
optimizer | integer or string | The optimizer this Run/step selects: an active_index or a spec name. | |
sensitivity | text | The named Sensitivity routine (sensitivities: key) this Run runs. | |
comparison_run | text | Global payoff comparison-run binding (a saved-run name). | |
payoff_comparison_runs | map of name to text | Per-payoff comparison-run overrides: {payoff name -> saved-run name}. | |
run_by_module | RunByModule | Adds or removes the sim_specs run-by-module element. |
run_by_module:
One of: enum: add, remove, mapping. Stella’s ‘simulate by selected modules’ switch (config_edits.RunByModule). A bare string, or a mapping when out_of_sector is non-default.
| Key | Type | Required | Meaning |
|---|---|---|---|
name | text | yes | The module’s name. |
run | boolean | yes | The module’s run flag (config_edits.ModuleEdit), used with a modules: run-by-selection configuration. |
data: entries
A file: value matches a model block by its full file name. The extension
is part of the name. Thus the values Data.xlsx and Data do not match a
block that reads Data.csv. The match ignores case and reads an underscore
as a space.
An entry that gives only the name before the extension is an error. Validation stops and names the entry. To correct it, write the file name of the block, or give a path to a file with that name.
| Key | Type | Required | Meaning |
|---|---|---|---|
file | text | yes | The CSV or .xlsx file. A path (with a separator) places an external file into the Run copy; a bare basename configures the model’s own matching block. |
type | enum: import, export | import (default) or export. | |
enabled | boolean | Whether the model’s import/export block fires. None leaves the model’s own setting untouched. | |
link | enum: dynamic, on_demand | dynamic or on_demand (Stella’s own Link kinds); both load on every headless run. | |
behavior | enum: overwrite, control, dimensions, timevarying | Import kind: overwrite, control, dimensions, or timevarying. | |
interpolate | enum: continuous, inside, extrapolated, discrete-backward, discrete-forward, raw | Timevarying imports only: continuous, inside, extrapolated, discrete-backward, discrete-forward, or raw. | |
orientation | enum: vertical, horizontal | vertical or horizontal (a timevarying import’s own CSV layout). | |
interval | enum: one_value, DT, current_time, use_settings | Exports only: one_value, DT, current_time, or use_settings (paired with scope: table). | |
precomputed | boolean | Exports only: Stella’s own precomputed-values export setting. | |
format | enum: numbers, strings | Exports only: numbers or strings. Under strings, the exported numbers print the way the model’s own Precision and Scale by settings (Model Settings) format them; Experimenter does not write those two attributes. | |
scope | text or text or list of text | Exports only: all, parameter_values, table (paired with table:), a list of variable names, or a variable-list file reference (a .txt, resolved relative to this document). | |
table | text | Exports only, required when scope: table, the model’s own Report/Table view name (its isee:export_name). | |
tag | text | Exports only: the Data Source Tag’s name, written as isee:tag in place of | |
worksheet | text | Excel files only: the sheet an import reads or an export writes. Written as the block’s worksheet attribute, with type Excel. A bare file name that matches several blocks on one workbook needs it to pick one. | |
role | enum: comparison | comparison marks the calibration comparison dataset; it wires no import/export block. | |
overrides | list of Override | Byte-faithful cell edits into this entry’s own CSV. Not valid on a workbook. |
checks: (acceptance checks)
A checks: list states what the output of a Run must show. Each check reads
one variable of the Run from its output file. It reads the final time point,
every time point (at: all) or one time value. Only the rows of the Run
itself count. A saved run that the output file folds in does not.
When a Batch, a dataset sweep or a Sequence ends, the launch writes each
result to batch.json. This is the same for a launch from the window. In a
Sequence each stage that runs the Run gets its own results. The entry of the
Run gets checks and checks_passed. A result
holds id, passed, observed, at and message. observed and at name
the first point that fails, else the last point read.
A failed check does not change the status of the job or the Batch.
experimenter results shows the results. A Run that did not end ok gets
passed: null on each check and checks_passed: null.
The exit code of experimenter run stays 0 when a check fails. With
--fail-on-checks it is 4 when every job succeeded and a check failed.
The launch writes the results in the same write that ends the Batch. Thus a
record that reads completed holds them.
| Key | Type | Required | Meaning |
|---|---|---|---|
id | text | yes | The name of the check, unique in its Run. batch.json gives the result under this name. |
variable | text | yes | The model variable that the check reads from the output file of the Run. |
at | string or number | The time points that the check reads: final or all, or one time value. The default is final. The test present takes no at. | |
test | enum: ==, !=, <, <=, >, >=, between, present | yes | How the observed value compares with value. |
value | number or array | A number, or [low, high] for between. The test present takes no value. | |
tolerance | number | An absolute tolerance for == and !=. The default is 0. |
overrides: (byte-faithful cell edits)
| Key | Type | Required | Meaning |
|---|---|---|---|
row | string or integer | yes | Row selector: a name matched against column 0, or a 0-based index. |
col | string or integer | yes | Column selector: a header name, or a 0-based index. |
value | any | yes | The scalar written. Never an equation. |
Optimizations (optimizations:)
Each optimizations: entry is one calibration scope (spec.CalibrationSequence).
It is an ordered list of optimize steps. The steps share one model copy, one
fit-carrier file set (files:), and one set of payoff and optimizer value
overrides. See
Optimization Groups (Calibration) for the
carry-forward mechanics that chain: controls. See
Outcome Optimization below for the second payoff
kind.
| Key | Type | Required | Meaning |
|---|---|---|---|
comparison | text | Default comparison CSV for every payoff in this scope, relative to this document. | |
comparison_run | text | Default saved comparison-run name, bound and written to the copy’s isdb once at scope start. | |
files | list of DataEntry | The shared import/export configuration every step in this scope uses (the fit-carrier declaration lives here). | |
payoffs | map of name to PayoffOverride | Per-payoff overrides, keyed by payoff name. | |
optimizations | map of name to OptimizerOverride | Per-optimizer value overrides, keyed by optimizer name. | |
retries | integer | Overrides the file default for every step in this scope. | |
timeout | number | Seconds, per step in this scope. | |
retention | enum: everything, outputs_only, outputs_and_final_models, final_chained_group | What the steps of this scope keep. Absent inherits the file value. | |
output_variables | text | A variable-list file or Table name, scope level. | |
window | mapping | Scope-level payoff time window (start/stop/dt), the group window of the legacy shape. Not a simulation window: sim_specs is not valid on an optimization scope. | |
engine | text | The engine every step in this scope runs on, overriding the file default. One section runs on one engine. | |
outputs | list of text | Display list for every step in this scope. Does not scope a real run. Absent inherits the document value. | |
calibration_timeout | number | Seconds before an optimize Run is killed and retried, for every step in this scope. Overrides timeout for optimize Runs. Absent inherits the document value. | |
datasets | list of DatasetAxisEntry | The dataset axis for every step in this scope. Absent inherits the document’s datasets: list. | |
output_increment | boolean | Output increment for every step in this scope. Absent inherits the document value. | |
runs | list of OptimizationStepEntry | The ordered optimize steps of this scope. |
An optimize step (runs:)
| Key | Type | Required | Meaning |
|---|---|---|---|
name | text | yes | The step’s label, selects the optimizer through config.optimizer. |
data | list of DataEntry | This step’s own import/export overrides, merged over the scope’s shared files: by resource identity. | |
config | Config | This Run’s Configuration edits. | |
output_variables | text | Overrides the group/file output scope for this step. | |
retries | integer | Overrides the group/file retry budget for this step. | |
timeout | number | Seconds before this step is retried. | |
retention | enum: everything, outputs_only, outputs_and_final_models, final_chained_group | What this step keeps. Absent inherits its scope, then the file. | |
chain | boolean | false (default) runs this step in its own folder from a fresh Template copy; true continues in the folder of the step above it. Not valid on the first step of a scope. |
payoffs: overrides
| Key | Type | Required | Meaning |
|---|---|---|---|
comparison | text | Overrides this payoff’s comparison CSV (relative to this document). | |
comparison_run | text | Overrides this payoff’s saved comparison-run name. | |
compare_type | enum: ls, mad | Spec-level default: ls or mad. | |
compare_tolerance | number or string | Spec-level comparison tolerance default. | |
recompute_weights | boolean | Stella’s ‘Automatically compute weights’ switch. Warns (never blocks) when combined with an authored element weight. | |
calibration | boolean | Payoff kind: true fits a comparison run (Calibration), false maximizes/minimizes a variable (Outcome). | |
compute_full_likelihood | boolean | Stella’s ‘Compute full likelihood (optimize over weights)’ switch, shown in place of recompute_weights only while at least one element’s weight is a variable name. Refused unless a variable-name weight is in effect. | |
simplified | boolean | The Stella checkbox ‘Use simplified payoff specification settings’. true: the payoff holds compare_type, compare_tolerance and compare_run. Every element gets them. false: the payoff holds none of them. Each element keeps its own. Absent: the model state. Calibration only. | |
elements | map of name to ElementOverride | Per-element overrides, keyed by variable name. |
A payoff’s elements: overrides
| Key | Type | Required | Meaning |
|---|---|---|---|
weight | number or string | A number, or a variable name for Stella’s dynamic-weight form. | |
tolerance | number or string | Comparison tolerance override. | |
time_range_type | enum: terminal_value, full_span, at_time, subset | The payoff element’s time horizon. | |
time_range_start | number or string | Required for at_time and subset; refused otherwise. | |
time_range_stop | number or string | Required for subset; refused for at_time. | |
compare_name | text | The data-side variable this element is compared against (a selection, not a rename). | |
compare_type | enum: ls, mad | ls or mad, written on the element’s own type attribute. |
optimizations: (per-optimizer overrides)
| Key | Type | Required | Meaning |
|---|---|---|---|
tolerance | number or string | Optimizer convergence tolerance override. | |
init_step | number or string | Initial Step override. | |
max_sims | number or string | Maximum simulations (XML maxiter) override. | |
additional_starts | number or string | Additional-starts count override. | |
k | number or string | Differential Evolution only. | |
generations | number or string | Differential Evolution only. | |
pop_size | number or string | Differential Evolution only. | |
report_interval | number or string | How often Stella reports optimizer progress; 0 means roughly 50 reports. | |
confidence_range | number or string | Compute Confidence Bounds (single-payoff only). The sign is the mode: 0 off, positive a payoff value change, negative a statistical percent. | |
method | enum: Powell, Grid, Discrete, Differential Evolution | The search algorithm. | |
recombine_type | enum: rand, best, target-to-rand, target-to-best, either-or | Differential Evolution’s Mutation Type. | |
payoff_action | enum: max, min | max or min, on the optimizer’s active payoff link. | |
payoff_inactive | boolean | Deactivates the optimizer’s payoff link. | |
payoff_name | text | Moves the optimizer’s active payoff link to a different payoff. | |
payoff_links | map of name to mapping | Differential Evolution’s multi-criteria payoff table: {payoff name -> its link settings}. Each entry sets one payoff link and creates it when the optimizer has none. Do not combine it with payoff_action, payoff_inactive or payoff_name. | |
additional_starts_path | text | The additional-starts From File path, model-relative with Stella’s own r.. prefix (e.g. r../Starts.csv). Written as typed. | |
use_additional_starts_file | boolean | The Additional Starts dialog’s From-File/Randomized toggle. true removes the additional-starts count in the same edit, matching Stella’s own save; false leaves the count to its own field. | |
parameters | map of name to ParameterOverride | Per-parameter overrides, keyed by variable name. | |
grid | GridOverride | Grid method advanced fields. Meaningful only when method is Grid. | |
discrete | DiscreteOverride | Discrete method advanced fields. Meaningful only when method is Discrete. | |
differential_evolution | DifferentialEvolutionOverride | Differential Evolution advanced fields. Meaningful only when method is Differential Evolution. | |
compare_against_sensitivity | text | The sensitivity spec’s name to compare this optimizer against (Optimize across all runs); absent means None. | |
want_worst_case | boolean | Maximize worst (lowest) payoff across the sensitivity runs, instead of the average. Accepted only while compare_against_sensitivity is set. |
A parameter override
| Key | Type | Required | Meaning |
|---|---|---|---|
min | number or string | Search lower bound override. | |
max | number or string | Search upper bound override. | |
scaling | number or string | Search-space scaling override. | |
increment | number or string | Grid/Discrete/Differential-Evolution step size override. |
grid: (Grid method advanced fields)
| Key | Type | Required | Meaning |
|---|---|---|---|
type | enum: Exhaustive, Bisecting, Sequential, Latin Hypercube | Grid Search Type. Exhaustive (Stella’s own default) is written as absence. | |
parameters | map of name to GridParameterOverride | Per-parameter Tolerance/Number of steps overrides, keyed by variable name. |
A Grid parameter override
| Key | Type | Required | Meaning |
|---|---|---|---|
tolerance | number or string | Grid per-parameter Tolerance override. 0.01 (Stella’s own default) is written as absence. | |
steps | number or string | Grid per-parameter Number of steps override. 11 (Stella’s own default) is written as absence. |
discrete: (Discrete method advanced fields)
| Key | Type | Required | Meaning |
|---|---|---|---|
maxpass | number or string | Discrete maximum passes override. 1000 (Stella’s own default) is written as absence. | |
refine | boolean | Discrete Refine override. false (Stella’s own default) is written as absence. | |
parameters | map of name to DiscreteParameterOverride | Per-parameter Deadzone overrides, keyed by variable name. |
A Discrete parameter override
| Key | Type | Required | Meaning |
|---|---|---|---|
deadzone | enum: Check only a single increment, Explore upward to the max, Explore downward to the min, Explore both directions, Exhaustive search on each pass | Discrete per-parameter exploration mode override. ‘Check only a single increment’ (Stella’s own default) is written as absence. |
differential_evolution: (Differential Evolution advanced fields)
| Key | Type | Required | Meaning |
|---|---|---|---|
seed | number or string | Differential Evolution seed override. 0 (Stella’s own default, random per run) is written as absence. | |
cr | number or string | Differential Evolution Crossover prob override, from 0 to 1. 0.2 (Stella’s own default) is written as absence. The Experimenter engine refuses a value outside the range. | |
f | number or string | Differential Evolution Scaling factor override, at least 0 and below 2. 0.6 (Stella’s own default) is written as absence. The Experimenter engine refuses a value outside the range. | |
crossover_type | enum: bin, exp | Differential Evolution Crossover Type override. bin (Stella’s own default) is written as absence. |
Outcome Optimization
Outcome Optimization is the second payoff kind. An optimizer maximizes or
minimizes a variable, and does not fit a comparison run. It uses the same
optimizations: shape as above. These are the keys:
calibration: false. This is the payoff-kind attribute of the model. Set it in the settings of the payoff element. It is not a YAML key here.payoff_action(maxormin).time_range_type,time_range_startandtime_range_stopof the payoff element, in theElementOverridetable above.
Experimenter reads no comparison or comparison_run for an Outcome payoff.
Sensitivities (sensitivities:)
Each sensitivities: entry is one named routine. A model can carry several
(<isee:sensi_specs_list> in Stella). A Run binds one through
config.sensitivity. See Sensitivity for the
Parameters-table workflow and for the behavior of output_variables in a
Sensitivity. A routine has no fallback capture, unlike a Run or an
Optimization.
| Key | Type | Required | Meaning |
|---|---|---|---|
method | enum: multivariate, sobol_sequence, latin_hypercube, grid, sequential, external | The sampling method. external is legal only beside path. | |
runs | number or string | Sample count. Omitted for grid and sequential, which take no run count. | |
seed | number or string | A fixed random seed for the whole routine. | |
clear_database | boolean | Marks this routine’s run copy for a fresh .isdb before the run. | |
parameters | map of name to SensiParameter | The Sensitivity Parameters table, keyed by variable name. | |
threshold | Threshold | Setup Criteria’s Grounded Sensitivity Criteria for one payoff. | |
using_optimization | text | Run this optimization spec on every sensitivity draw (Setup Criteria’s “Optimization to run”). Written before method on Stella’s own save. | |
path | text | From External Parameter File: a model-relative, r-prefixed path (for example r../ExtParams.csv). Sets the routine’s effective method to external and drops its own parameters on write. | |
saltelli | Saltelli | A Saltelli design for Sobol indices. The routine then runs base_samples times (parameters + 2) simulations. Experimenter engine only. |
A parameters: row
| Key | Type | Required | Meaning |
|---|---|---|---|
distribution | enum: normal, uniform, incremental, log_normal, adhoc, beta, exponential, gamma, logistic, pareto, triangular, weibull | yes | The sampling distribution. |
mean | number | normal / log_normal / logistic only. | |
std_dev | number | normal / log_normal only. | |
min | number | Every distribution but adhoc. Required for log_normal. | |
max | number | Every distribution but adhoc. Required for log_normal. | |
seed | integer | A fixed random seed, when the distribution samples. | |
num_samples | integer | How many samples this parameter contributes. | |
starting_value | number | incremental only. | |
ending_value | number | incremental only. | |
values | text | adhoc only: a comma-separated literal value list, carried verbatim. | |
alpha | number | beta only. | |
beta | number | beta only. | |
lambda | number | exponential only. | |
shape | number | gamma / pareto / weibull only. | |
scale | number | gamma / logistic / pareto / weibull only. | |
lower | number | triangular only. | |
mode | number | triangular only. | |
upper | number | triangular only. |
A threshold: block
A threshold: block holds the Grounded Sensitivity Criteria of one payoff.
Each key but remove matches one of the four Grounded Sensitivity Criteria
threshold rows in the Sensitivity tab reference.
| Key | Type | Required | Meaning |
|---|---|---|---|
payoff | text | yes | The payoff spec this Grounded Sensitivity Criteria threshold applies to. |
value | number or string | The Threshold field of Setup Criteria (isee:threshold val). A number, or a numeric string like multiplier. | |
recompute | boolean | Relative to base (isee:threshold recompute). Written as the literal true or false. | |
multiplier | number or string | Adjust factor (isee:threshold sensi_parm_mult). Present only while Adjust sensi parameters is checked. The empty string clears an existing sensi_parm_mult, which unchecks Adjust sensi parameters. Omitting the key leaves the attribute in the model as it is. | |
remove | boolean | Deletes the whole isee:threshold element of this payoff and ignores every other field on this block. It is the file form of unchecking the box of this payoff in the Setup Criteria dialog of Stella. |
A saltelli: block
A saltelli: block makes the routine draw a Saltelli design, for Sobol first-
and total-order indices. It runs on the Experimenter engine only. Stella has
no Saltelli design, so validation refuses the routine on a Stella Run.
With k parameters, the routine runs base_samples x (k+2)
simulations. The design is a Sobol sequence. It has no random state, so the
same routine gives the same design on every machine and takes no seed.
The routine needs 2 to 500 parameters, each uniform or normal. The block
replaces method, runs and path, so none of them may sit beside it.
sensitivities:
Sobol main:
saltelli:
base_samples: 1024
parameters:
growth rate: {distribution: uniform, min: 0.01, max: 0.05}
adjustment time: {distribution: normal, mean: 4, std_dev: 1, min: 1, max: 8}| Key | Type | Required | Meaning |
|---|---|---|---|
base_samples | integer | yes | The base sample count: a power of 2 from 2 to 1048576. With k parameters the routine runs base_samples x (k+2) simulations. The design is a Sobol sequence, so it takes no seed. |
Sequences (sequences:)
Each sequences: entry is an ordered list of members. The stage: key of a
member names a sibling id in the runs: or optimizations: section of this
document. Both sections share one flat namespace, so an id in both is a
validation error. level: places the member in the outline of the lane. Level
0, or an absent key, starts from the Template. A deeper level starts from the
folder that the enclosing (shallower) member left. See
Sequence Tab for the outline mechanics. See
Process: Sequence for a Practical Output for
a worked example.
A sequences: entry can also add dataset groups: {stages: [...], groups: [...]} instead of a bare stage list. The base group is the configured inputs
of this document. It is always present and implicit, and you never list it.
Each added group is a hand-written {name, base} folder, or a {list: <path>}
reference to a text file with one path per line. The reference expands to one
group per usable line, and Experimenter reads it again on every load.
A group can also change single cells of an import file, with no folder and no
copy of the file. Add a data: list to the group. Each item names one import
file by its bare name. It lists the overrides: cells to change.
The group layers those cells over every stage that runs in the group. If a stage and the group set the same cell, the group wins. A stage keeps its own file path and its other settings.
A group with a data: item needs no base. It then reads the same files as
the base group. The cells apply at every stage. A Run stage after an
Optimization stage writes the cell again over a fitted value. This happens when
the cell names a fitted parameter.
The key data: is valid only on a Sequence group. On a top-level datasets:
entry it is an error.
sequences:
history:
stages: [{stage: ext}]
groups:
- name: endogenous-off
data:
- file: Parameters.csv
overrides:
- {row: Endogenous switch, col: 1, value: 0}A sequence entry (mapping form)
A bare stage list has no room for these keys. An entry that needs any of them takes the mapping form. Experimenter writes the mapping form on save whenever one of them is set.
| Key | Type | Required | Meaning |
|---|---|---|---|
stages | list of stage member or Script | yes | The ordered members. |
groups | list of dataset group or list entry | The dataset groups added to the base group. | |
include_base | boolean | Default true. false removes the implicit base group from the sweep. Its row, name, and folder stay, and only its run is left out. Any value other than true or false is a validation error. If every added group is also inactive, Experimenter refuses the Run with “nothing is active”. Mapping form only. | |
enabled | boolean | Default true. false leaves this Sequence out of Run Enabled Sequences. Any value other than true or false is a validation error that names the key and says “write true or false”. Experimenter writes the key only when it is false. Mapping form only. | |
output_folder | text | The output folder name of this Sequence. Absent inherits the Output File Location preference. Overrides it for this Sequence only. An absolute path wins outright. A relative name resolves under the model folder. | |
output_name | text | The name of the collated file of this Sequence. Absent inherits the Output File Name preference. | |
engine | text | The engine for every stage of this Sequence. It overrides the engine of each member’s own Run or Group. Absent, each stage runs on the engine of its own section, then the document’s engine. On a Sequence, run --engine acts as this key for that launch. | |
outputs | list of text | Display list for this Sequence. Absent inherits the document value. | |
retries | integer | How many times a failed job is retried, for each stage whose own section sets none. | |
timeout | number | Seconds before a job is killed and retried, for each stage whose own section sets none. | |
calibration_timeout | number | Seconds before an optimize job is killed and retried, for each stage whose own section sets none. | |
datasets | list of dataset group | The dataset lanes of this Sequence, the same lanes as groups. Set datasets or groups, not both. | |
output_increment | boolean | Output increment for this Sequence. Absent inherits the document value. | |
output_variables | text | A variable-list file or the export name of a model Table. It scopes collected output. | |
retention | text | What the Sequence keeps once its last stage ends: everything, outputs_only, outputs_and_final_models or final_chained_group. It applies to each stage whose own stage entry and section set none. A stage entry can set its own retention. |
A stage resolves each key in this order: its own Run, then its own Group, then
this Sequence, then the document. The exception is engine. For engine, the
Sequence value comes first.
A stage member
| Key | Type | Required | Meaning |
|---|---|---|---|
stage | text | yes | A sibling id in this document’s runs: or optimizations: section (one flat namespace across both). |
level | integer | Sequence outline depth. 0, or an absent key, starts from the Template. | |
active | boolean | Default true. false skips this member entirely. | |
export | boolean | Default true. false still runs this member; only collation is skipped. | |
retention | enum: everything, outputs_only, outputs_and_final_models, final_chained_group | What this stage keeps when the Sequence ends. Absent inherits its Run or group, then the Sequence. |
A dataset group
| Key | Type | Required | Meaning |
|---|---|---|---|
name | text | yes | The dataset’s label, names the Run-folder subtree it writes into. |
base | text | The directory (relative to this document) this dataset’s data: files resolve from. A Sequence lane that sets data: needs none. | |
active | boolean | Default true. false deactivates this dataset (no Run, no output folder). | |
data | list of LaneDataItem | Cell overrides this lane layers over every stage. Valid only on a Sequence lane (a groups: entry or a sequences: | |
before | list of Script | Runs once before this dataset’s lane starts. A top-level datasets: entry only. On a Sequence groups: entry it is an error. | |
after | list of Script | Runs once after this dataset’s lane finishes. A top-level datasets: entry only. On a Sequence groups: entry it is an error. |
A group data: item
| Key | Type | Required | Meaning |
|---|---|---|---|
file | text | yes | A bare file name, with no path separator. It names an import of the model or of a stage. |
overrides | list of Override | yes | Cell edits for this file, layered over the entries of each stage. The lane wins a cell the stage also sets, and a workbook takes none. |
A dataset group from a list file
| Key | Type | Required | Meaning |
|---|---|---|---|
list | text | A plain-text file, relative to this document: one dataset path per line, blank and ‘#’-prefixed lines skipped. Each remaining line resolves relative to the list file’s own folder (not this document’s) when not already absolute, and expands to one dataset group per line. Each load reads the file fresh, so a wrapping script’s regenerated list is picked up on the next open or run. A listed path need not exist yet at load time; it is checked like any other group’s base once the sequence is validated. | |
active | boolean | Default true. false deactivates every group this list expands to, in one step. |
Output options
All keys are optional. They go on the top-level document, on a
runs: or optimizations: entry, or (output_variables and
retention) on an individual Run or step. Experimenter resolves them in
the order Run or step, then owning group, then document. retention can also
go on a Sequence and on a stage. A stage resolves it in the order stage, then
its Run or group, then the Sequence, then the document, then the default
everything. everything keeps every file. outputs_only keeps the top
collated file and batch.json. outputs_and_final_models also keeps the model
folder of each job. final_chained_group also keeps the last stage of each
chain. A failed job keeps its folder. A file that holds the old key output_csv_only does not open:
the message names the key and names retention as its replacement. Experimenter writes
the export itself. A file list becomes a fresh Table that Experimenter injects
into the run copy. A Table name reuses that Table. Experimenter leaves the
export blocks of the model alone, and they fire alongside. See
Outputs & Manifest for the mechanism.
The Experiment Schema
Experimenter ships a JSON Schema for this format,
docs/experiment.schema.json. The generator builds it from the same
dataclasses as this page (experimenter/docs/experiment_schema.py). For inline
validation while you type, point the YAML-language extension of your editor at
the schema. Add a # yaml-language-server: $schema=<path-to-file> comment at
the top of the .expt file. The schema ships inside Experimenter.app and
alongside this documentation site.