gtopt::Iteration struct

Per-iteration control flags for the SDDP solver.

Unlike Phase and Scenario, Iteration is keyed by Index index rather than a Uid. The solver matches the current 0-based iteration number against this index to find per-iteration overrides.

Public static variables

static constexpr std::string_view class_name
Class name constant used for serialisation/deserialisation.

Public functions

auto should_update_lp() const -> constexpr auto noexcept

Public variables

Index index
0-based iteration index used as lookup key
OptBool update_lp

Function documentation

constexpr auto gtopt::Iteration::should_update_lp() const noexcept

Returns Whether update_lp should be dispatched for this iteration

Variable documentation

OptBool gtopt::Iteration::update_lp

Whether to dispatch update_lp for this iteration. When absent (nullopt), update_lp is dispatched (default = true).