Skip to content
Experiment file

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.

KeyTypeRequiredMeaning
nametextThe 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_runsbooleanWhich 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.
modeltextyesThe model file (.stmx), relative to this document. Every Run executes on a throwaway copy.
modules_dirtextFolder holding the model’s .itmx modules, relative to this document. Every .itmx there is indexed; the model’s own references are ignored.
enginetextarchitect (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.
outputslist of textDisplay list. Does not scope a real run.
retriesintegerHow many times a failed Run is retried. Default 2.
timeoutnumberSeconds before a Run is killed and retried. Default 900.
workersintegerHow 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_timeoutnumberOverrides timeout for optimize Runs specifically.
datasetslist of DatasetAxisEntryThe dataset axis. Absent means the single implicit dataset (this document’s own directory).
output_incrementbooleanDefault false.
output_variablestextScopes every section’s collected output by default: a variable-list file or a model Table’s export name.
retentionenum: everything, outputs_only, outputs_and_final_models, final_chained_groupWhat every launch keeps. Absent means the Settings default, everything.
runsmap of name to RunEntryRuns and Groups, keyed by a stable id (the map key IS the id and the display name).
optimizationsmap of name to OptimizationEntryCalibration scopes, keyed by a stable id.
sensitivitiesmap of name to SensitivityEntrySensitivity routines, keyed by name. A Run binds one through config.sensitivity.
sequencesmap of name to SequenceEntrySequences, 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

KeyTypeRequiredMeaning
datalist of DataEntryThis Run’s import/export configuration.
configConfigThis Run’s Configuration edits.
depends_onlist of textSibling ids (this same runs: map) that must finish first.
modeenum: simulate, optimizesimulate (default, -r) or optimize (-ro, a calibration step run standalone).
retriesintegerOverrides the file/group default for this Run.
timeoutnumberSeconds before this Run is retried. null turns the watchdog off for this Run.
retentionenum: everything, outputs_only, outputs_and_final_models, final_chained_groupWhat this Run keeps. Absent inherits its group, then the file.
output_variablestextA variable-list file (.txt/.csv) or a model Table’s export name, scoping this Run’s output.
enginetextThe 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.
checkslist of CheckAcceptance checks on the output of this Run. The launch writes each result to batch.json beside the job status.
outputslist of textDisplay list for this Run. Does not scope a real run. Absent inherits the document value.
calibration_timeoutnumberSeconds before an optimize Run is killed and retried, for this Run. Overrides timeout for optimize Runs. Absent inherits the document value.
datasetslist of DatasetAxisEntryThe dataset axis for this Run. Absent inherits the document’s datasets: list.
output_incrementbooleanOutput increment for this Run. Absent inherits the document value.

A Script (a Sequence stage or a dataset bookend)

KeyTypeRequiredMeaning
scripttextyesThe command to run (bare ‘.py’/’.R’ gets the inferred python3/Rscript; anything else runs verbatim).
nametextLabel shown in the Monitor and EXPERIMENTER_POSITION.
timeoutnumberSeconds before the script is killed. Default 300.
continue_on_errorbooleanDefault false (halt-on-failure). true lets a later item run after this script fails.
activebooleanDefault true. false skips this script entirely (sequence-active-column).
levelintegerSequence outline depth. 0 starts from the Template. Ignored outside a sequences: entry.

A Group (group:)

KeyTypeRequiredMeaning
grouplist of textyesSibling ids of this SAME runs: map, in the group’s own order. A Script is never a member.
retriesintegerOverrides the file default for every Run in this group.
timeoutnumberSeconds, per Run in this group.
retentionenum: everything, outputs_only, outputs_and_final_models, final_chained_groupWhat the Runs of this group keep. Absent inherits the file value.
output_variablestextA variable-list file or Table name, group scope.
sim_specsmappingGroup-level simulation window (start/stop), distinct from a Run’s own config.sim_specs.
enginetextThe engine every Run in this group simulates on, overriding the file default. A Run below with its own engine: wins over this.
outputslist of textDisplay list for every Run in this group. Does not scope a real run. Absent inherits the document value.
calibration_timeoutnumberSeconds before an optimize Run is killed and retried, for every Run in this group. Overrides timeout for optimize Runs. Absent inherits the document value.
datasetslist of DatasetAxisEntryThe dataset axis for every Run in this group. Absent inherits the document’s datasets: list.
output_incrementbooleanOutput 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.

KeyTypeRequiredMeaning
sim_specsmappingModel-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.
moduleslist of ModuleEditPer-module run flags.
optimizerinteger or stringThe optimizer this Run/step selects: an active_index or a spec name.
sensitivitytextThe named Sensitivity routine (sensitivities: key) this Run runs.
comparison_runtextGlobal payoff comparison-run binding (a saved-run name).
payoff_comparison_runsmap of name to textPer-payoff comparison-run overrides: {payoff name -> saved-run name}.
run_by_moduleRunByModuleAdds 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.

KeyTypeRequiredMeaning
nametextyesThe module’s name.
runbooleanyesThe 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.

KeyTypeRequiredMeaning
filetextyesThe 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.
typeenum: import, exportimport (default) or export.
enabledbooleanWhether the model’s import/export block fires. None leaves the model’s own setting untouched.
linkenum: dynamic, on_demanddynamic or on_demand (Stella’s own Link kinds); both load on every headless run.
behaviorenum: overwrite, control, dimensions, timevaryingImport kind: overwrite, control, dimensions, or timevarying.
interpolateenum: continuous, inside, extrapolated, discrete-backward, discrete-forward, rawTimevarying imports only: continuous, inside, extrapolated, discrete-backward, discrete-forward, or raw.
orientationenum: vertical, horizontalvertical or horizontal (a timevarying import’s own CSV layout).
intervalenum: one_value, DT, current_time, use_settingsExports only: one_value, DT, current_time, or use_settings (paired with scope: table).
precomputedbooleanExports only: Stella’s own precomputed-values export setting.
formatenum: numbers, stringsExports 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.
scopetext or text or list of textExports 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).
tabletextExports only, required when scope: table, the model’s own Report/Table view name (its isee:export_name).
tagtextExports only: the Data Source Tag’s name, written as isee:tag in place of . Exclusive with scope: an entry setting both refuses.
worksheettextExcel 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.
roleenum: comparisoncomparison marks the calibration comparison dataset; it wires no import/export block.
overrideslist of OverrideByte-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.

KeyTypeRequiredMeaning
idtextyesThe name of the check, unique in its Run. batch.json gives the result under this name.
variabletextyesThe model variable that the check reads from the output file of the Run.
atstring or numberThe time points that the check reads: final or all, or one time value. The default is final. The test present takes no at.
testenum: ==, !=, <, <=, >, >=, between, presentyesHow the observed value compares with value.
valuenumber or arrayA number, or [low, high] for between. The test present takes no value.
tolerancenumberAn absolute tolerance for == and !=. The default is 0.

overrides: (byte-faithful cell edits)

KeyTypeRequiredMeaning
rowstring or integeryesRow selector: a name matched against column 0, or a 0-based index.
colstring or integeryesColumn selector: a header name, or a 0-based index.
valueanyyesThe 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.

KeyTypeRequiredMeaning
comparisontextDefault comparison CSV for every payoff in this scope, relative to this document.
comparison_runtextDefault saved comparison-run name, bound and written to the copy’s isdb once at scope start.
fileslist of DataEntryThe shared import/export configuration every step in this scope uses (the fit-carrier declaration lives here).
payoffsmap of name to PayoffOverridePer-payoff overrides, keyed by payoff name.
optimizationsmap of name to OptimizerOverridePer-optimizer value overrides, keyed by optimizer name.
retriesintegerOverrides the file default for every step in this scope.
timeoutnumberSeconds, per step in this scope.
retentionenum: everything, outputs_only, outputs_and_final_models, final_chained_groupWhat the steps of this scope keep. Absent inherits the file value.
output_variablestextA variable-list file or Table name, scope level.
windowmappingScope-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.
enginetextThe engine every step in this scope runs on, overriding the file default. One section runs on one engine.
outputslist of textDisplay list for every step in this scope. Does not scope a real run. Absent inherits the document value.
calibration_timeoutnumberSeconds before an optimize Run is killed and retried, for every step in this scope. Overrides timeout for optimize Runs. Absent inherits the document value.
datasetslist of DatasetAxisEntryThe dataset axis for every step in this scope. Absent inherits the document’s datasets: list.
output_incrementbooleanOutput increment for every step in this scope. Absent inherits the document value.
runslist of OptimizationStepEntryThe ordered optimize steps of this scope.

An optimize step (runs:)

KeyTypeRequiredMeaning
nametextyesThe step’s label, selects the optimizer through config.optimizer.
datalist of DataEntryThis step’s own import/export overrides, merged over the scope’s shared files: by resource identity.
configConfigThis Run’s Configuration edits.
output_variablestextOverrides the group/file output scope for this step.
retriesintegerOverrides the group/file retry budget for this step.
timeoutnumberSeconds before this step is retried.
retentionenum: everything, outputs_only, outputs_and_final_models, final_chained_groupWhat this step keeps. Absent inherits its scope, then the file.
chainbooleanfalse (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

KeyTypeRequiredMeaning
comparisontextOverrides this payoff’s comparison CSV (relative to this document).
comparison_runtextOverrides this payoff’s saved comparison-run name.
compare_typeenum: ls, madSpec-level default: ls or mad.
compare_tolerancenumber or stringSpec-level comparison tolerance default.
recompute_weightsbooleanStella’s ‘Automatically compute weights’ switch. Warns (never blocks) when combined with an authored element weight.
calibrationbooleanPayoff kind: true fits a comparison run (Calibration), false maximizes/minimizes a variable (Outcome).
compute_full_likelihoodbooleanStella’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.
simplifiedbooleanThe 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.
elementsmap of name to ElementOverridePer-element overrides, keyed by variable name.

A payoff’s elements: overrides

KeyTypeRequiredMeaning
weightnumber or stringA number, or a variable name for Stella’s dynamic-weight form.
tolerancenumber or stringComparison tolerance override.
time_range_typeenum: terminal_value, full_span, at_time, subsetThe payoff element’s time horizon.
time_range_startnumber or stringRequired for at_time and subset; refused otherwise.
time_range_stopnumber or stringRequired for subset; refused for at_time.
compare_nametextThe data-side variable this element is compared against (a selection, not a rename).
compare_typeenum: ls, madls or mad, written on the element’s own type attribute.

optimizations: (per-optimizer overrides)

KeyTypeRequiredMeaning
tolerancenumber or stringOptimizer convergence tolerance override.
init_stepnumber or stringInitial Step override.
max_simsnumber or stringMaximum simulations (XML maxiter) override.
additional_startsnumber or stringAdditional-starts count override.
knumber or stringDifferential Evolution only.
generationsnumber or stringDifferential Evolution only.
pop_sizenumber or stringDifferential Evolution only.
report_intervalnumber or stringHow often Stella reports optimizer progress; 0 means roughly 50 reports.
confidence_rangenumber or stringCompute Confidence Bounds (single-payoff only). The sign is the mode: 0 off, positive a payoff value change, negative a statistical percent.
methodenum: Powell, Grid, Discrete, Differential EvolutionThe search algorithm.
recombine_typeenum: rand, best, target-to-rand, target-to-best, either-orDifferential Evolution’s Mutation Type.
payoff_actionenum: max, minmax or min, on the optimizer’s active payoff link.
payoff_inactivebooleanDeactivates the optimizer’s payoff link.
payoff_nametextMoves the optimizer’s active payoff link to a different payoff.
payoff_linksmap of name to mappingDifferential 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_pathtextThe additional-starts From File path, model-relative with Stella’s own r.. prefix (e.g. r../Starts.csv). Written as typed.
use_additional_starts_filebooleanThe 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.
parametersmap of name to ParameterOverridePer-parameter overrides, keyed by variable name.
gridGridOverrideGrid method advanced fields. Meaningful only when method is Grid.
discreteDiscreteOverrideDiscrete method advanced fields. Meaningful only when method is Discrete.
differential_evolutionDifferentialEvolutionOverrideDifferential Evolution advanced fields. Meaningful only when method is Differential Evolution.
compare_against_sensitivitytextThe sensitivity spec’s name to compare this optimizer against (Optimize across all runs); absent means None.
want_worst_casebooleanMaximize worst (lowest) payoff across the sensitivity runs, instead of the average. Accepted only while compare_against_sensitivity is set.

A parameter override

KeyTypeRequiredMeaning
minnumber or stringSearch lower bound override.
maxnumber or stringSearch upper bound override.
scalingnumber or stringSearch-space scaling override.
incrementnumber or stringGrid/Discrete/Differential-Evolution step size override.

grid: (Grid method advanced fields)

KeyTypeRequiredMeaning
typeenum: Exhaustive, Bisecting, Sequential, Latin HypercubeGrid Search Type. Exhaustive (Stella’s own default) is written as absence.
parametersmap of name to GridParameterOverridePer-parameter Tolerance/Number of steps overrides, keyed by variable name.

A Grid parameter override

KeyTypeRequiredMeaning
tolerancenumber or stringGrid per-parameter Tolerance override. 0.01 (Stella’s own default) is written as absence.
stepsnumber or stringGrid per-parameter Number of steps override. 11 (Stella’s own default) is written as absence.

discrete: (Discrete method advanced fields)

KeyTypeRequiredMeaning
maxpassnumber or stringDiscrete maximum passes override. 1000 (Stella’s own default) is written as absence.
refinebooleanDiscrete Refine override. false (Stella’s own default) is written as absence.
parametersmap of name to DiscreteParameterOverridePer-parameter Deadzone overrides, keyed by variable name.

A Discrete parameter override

KeyTypeRequiredMeaning
deadzoneenum: Check only a single increment, Explore upward to the max, Explore downward to the min, Explore both directions, Exhaustive search on each passDiscrete per-parameter exploration mode override. ‘Check only a single increment’ (Stella’s own default) is written as absence.

differential_evolution: (Differential Evolution advanced fields)

KeyTypeRequiredMeaning
seednumber or stringDifferential Evolution seed override. 0 (Stella’s own default, random per run) is written as absence.
crnumber or stringDifferential 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.
fnumber or stringDifferential 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_typeenum: bin, expDifferential 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 (max or min).
  • time_range_type, time_range_start and time_range_stop of the payoff element, in the ElementOverride table 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.

KeyTypeRequiredMeaning
methodenum: multivariate, sobol_sequence, latin_hypercube, grid, sequential, externalThe sampling method. external is legal only beside path.
runsnumber or stringSample count. Omitted for grid and sequential, which take no run count.
seednumber or stringA fixed random seed for the whole routine.
clear_databasebooleanMarks this routine’s run copy for a fresh .isdb before the run.
parametersmap of name to SensiParameterThe Sensitivity Parameters table, keyed by variable name.
thresholdThresholdSetup Criteria’s Grounded Sensitivity Criteria for one payoff.
using_optimizationtextRun this optimization spec on every sensitivity draw (Setup Criteria’s “Optimization to run”). Written before method on Stella’s own save.
pathtextFrom 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.
saltelliSaltelliA Saltelli design for Sobol indices. The routine then runs base_samples times (parameters + 2) simulations. Experimenter engine only.

A parameters: row

KeyTypeRequiredMeaning
distributionenum: normal, uniform, incremental, log_normal, adhoc, beta, exponential, gamma, logistic, pareto, triangular, weibullyesThe sampling distribution.
meannumbernormal / log_normal / logistic only.
std_devnumbernormal / log_normal only.
minnumberEvery distribution but adhoc. Required for log_normal.
maxnumberEvery distribution but adhoc. Required for log_normal.
seedintegerA fixed random seed, when the distribution samples.
num_samplesintegerHow many samples this parameter contributes.
starting_valuenumberincremental only.
ending_valuenumberincremental only.
valuestextadhoc only: a comma-separated literal value list, carried verbatim.
alphanumberbeta only.
betanumberbeta only.
lambdanumberexponential only.
shapenumbergamma / pareto / weibull only.
scalenumbergamma / logistic / pareto / weibull only.
lowernumbertriangular only.
modenumbertriangular only.
uppernumbertriangular 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.

KeyTypeRequiredMeaning
payofftextyesThe payoff spec this Grounded Sensitivity Criteria threshold applies to.
valuenumber or stringThe Threshold field of Setup Criteria (isee:threshold val). A number, or a numeric string like multiplier.
recomputebooleanRelative to base (isee:threshold recompute). Written as the literal true or false.
multipliernumber or stringAdjust 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.
removebooleanDeletes 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}
KeyTypeRequiredMeaning
base_samplesintegeryesThe 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.

KeyTypeRequiredMeaning
stageslist of stage member or ScriptyesThe ordered members.
groupslist of dataset group or list entryThe dataset groups added to the base group.
include_basebooleanDefault 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.
enabledbooleanDefault 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_foldertextThe 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_nametextThe name of the collated file of this Sequence. Absent inherits the Output File Name preference.
enginetextThe 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.
outputslist of textDisplay list for this Sequence. Absent inherits the document value.
retriesintegerHow many times a failed job is retried, for each stage whose own section sets none.
timeoutnumberSeconds before a job is killed and retried, for each stage whose own section sets none.
calibration_timeoutnumberSeconds before an optimize job is killed and retried, for each stage whose own section sets none.
datasetslist of dataset groupThe dataset lanes of this Sequence, the same lanes as groups. Set datasets or groups, not both.
output_incrementbooleanOutput increment for this Sequence. Absent inherits the document value.
output_variablestextA variable-list file or the export name of a model Table. It scopes collected output.
retentiontextWhat 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

KeyTypeRequiredMeaning
stagetextyesA sibling id in this document’s runs: or optimizations: section (one flat namespace across both).
levelintegerSequence outline depth. 0, or an absent key, starts from the Template.
activebooleanDefault true. false skips this member entirely.
exportbooleanDefault true. false still runs this member; only collation is skipped.
retentionenum: everything, outputs_only, outputs_and_final_models, final_chained_groupWhat this stage keeps when the Sequence ends. Absent inherits its Run or group, then the Sequence.

A dataset group

KeyTypeRequiredMeaning
nametextyesThe dataset’s label, names the Run-folder subtree it writes into.
basetextThe directory (relative to this document) this dataset’s data: files resolve from. A Sequence lane that sets data: needs none.
activebooleanDefault true. false deactivates this dataset (no Run, no output folder).
datalist of LaneDataItemCell overrides this lane layers over every stage. Valid only on a Sequence lane (a groups: entry or a sequences: datasets: entry). A lane with no base then reads the files of the base group.
beforelist of ScriptRuns once before this dataset’s lane starts. A top-level datasets: entry only. On a Sequence groups: entry it is an error.
afterlist of ScriptRuns 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

KeyTypeRequiredMeaning
filetextyesA bare file name, with no path separator. It names an import of the model or of a stage.
overrideslist of OverrideyesCell 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

KeyTypeRequiredMeaning
listtextA 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.
activebooleanDefault 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.