IterationHistoryCsvWriter

Wide-format CSV of the full iteration history.

Column order:

  1. Fixed metric columns: iteration, oracle_calls, replications, est_obj, pen_obj

  2. One column per decision variable, in OptimizationProblemSpec.inputs declaration order

  3. One column per solverSpecificState key, alphabetical (union of keys seen across all snapshots; missing values render as blank cells)

Suitable for loading directly into pandas, R, or Excel. The format does not change across runs of the same problem so cross-run scripts can rely on a stable header shape.

Substrate-level API — usable by any UI shell.

Functions

Link copied to clipboard

Build the CSV content as a String — pure function so callers can inspect rows without filesystem access.

Link copied to clipboard

Encode and write to path. Best-effort — returns true on success, false if the write threw.