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. CLI flags always take precedence over config values.

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