gtopt/config_file.hpp file

Lightweight INI config file reader for .gtopt.conf.

Reads the standard ~/.gtopt.conf INI file used by all gtopt scripts. The [gtopt] section provides default values for the C++ binary's command-line options. They are defaults only; precedence is CLI flag > --set > planning JSON (last -s wins) > .gtopt.conf > built-in default (see MainOptions::config_defaults).

Search order

  1. $GTOPT_CONFIG environment variable (exact path)
  2. ./.gtopt.conf (current working directory)
  3. ~/.gtopt.conf (home directory)

Format

[gtopt]
solver          = highs
algorithm       = barrier
threads         = 4
output-format   = parquet
output-compression = zstd
sddp-max-iterations = 200

Namespaces

namespace gtopt