gtopt::FutureCost struct

The future cost function (cost-to-go) as a first-class element.

Public static variables

static LPClassName class_name

Public variables

OptActive active
OptName cuts_file
OptName description
Optional free-text provenance.
OptInt iteration_limit
OptBool mean_shift
std::optional<MissingCutVarMode> missing_cut_var_mode
std::optional<BoundaryCutsMode> mode
Name name
OptReal scale_alpha
std::optional<BoundaryCutSharingMode> sharing
OptBool single_cut_equality
Uid uid
OptBool use_user_alpha
OptUid user_alpha_uid
std::optional<BoundaryCutsValuation> valuation

Variable documentation

OptName gtopt::FutureCost::cuts_file

Boundary-cut file that linearises the FCF: rows iteration,scene,rhs,<state...> with rhs the FCF intercept and each reservoir coefficient -water_value ($/CMD) on that reservoir's terminal-volume state variable. A relative path resolves against options.input_directory (identically for every method). Deprecated aliases: sddp_options.boundary_cuts_file, monolithic_options.boundary_cuts_file, simulation.boundary_cuts_file.

OptInt gtopt::FutureCost::iteration_limit

Keep only the cuts of the last N iterations of the SOURCE run that produced cuts_file (distinct values of the CSV iteration column — PLP's IPDNumIte). 0 / unset = load every cut. Named after PLEXOS' FCFIterationLimit. Deprecated aliases: {sddp,monolithic}_options.boundary_max_iterations.

OptBool gtopt::FutureCost::mean_shift

Rebase the α at the reservoirs' efin end-of-horizon targets so α' is centred on ~0 when the targets are met (α' < 0 when more water is saved, > 0 when less). Default true. The removed constant is the per-scene c̄ added back as an objective constant. Deprecated alias: sddp_options.boundary_cuts_mean_shift.

std::optional<MissingCutVarMode> gtopt::FutureCost::missing_cut_var_mode

How a cut row naming a state variable that is not in the model is handled: skip_coeff (default — drop that coefficient, keep the cut) or skip_cut (drop the whole cut when the missing coefficient is non-zero). Only governs the loading of cuts_file. Deprecated alias: sddp_options.missing_cut_var_mode.

std::optional<BoundaryCutsMode> gtopt::FutureCost::mode

Boundary-cut load mode: noload, separated (per-scene, default), combined (broadcast all cuts to all scenes) or phi_expectation (PLP-literal NVarPhi plane-hydrology φ_j columns). Typed enum. Deprecated aliases: {sddp,monolithic}_options.boundary_cuts_mode.

OptReal gtopt::FutureCost::scale_alpha

Numerical scale applied to the α / varphi_s columns (the LP conditioning factor on the cost-to-go variable). When unset the LP auto-derives it from the cut coefficients (boundary_cut_scale_alpha); an explicit value overrides. Monolithic reads only this field. Under SDDP, sddp_options.scale_alpha remains the SDDP algorithm's α scale for every phase (it is NOT an alias); when this field is set it wins.

std::optional<BoundaryCutSharingMode> gtopt::FutureCost::sharing

Cross-scene cut sharing: per_scene (each scene keeps its own cut), shared (broadcast every cut onto every scene's terminal α), or multicut (N dedicated varphi_s, one per source scene, priced 1/N). Typed enum (no magic strings). When unset it is derived from mode (combined → shared, otherwise per_scene). Deprecated aliases: {sddp,monolithic}_options.boundary_cut_sharing_mode.

OptBool gtopt::FutureCost::single_cut_equality

When a SINGLE boundary cut is loaded for a scene, install it as the equality α + Σ wvᵣ·efinᵣ = FCF with α freed (set_col_low_raw(-inf)) — the continuous PLEXOS-style terminal value: α is pinned to FCF − Σ wvᵣ·efinᵣ so every reservoir's terminal storage is priced at wvᵣ on BOTH sides of the target. Default (unset) = true = the current behaviour. Set false to keep the slack-able ≥ Benders lower-bound form (α never freed: it keeps its column floor — the cut-derived box floor, raised by sddp_options.alpha_min when set) even for a single cut — e.g. for a faithful comparison against a user-authored ≥ FCF cut. Without alpha_min the ≥ row on a minimised α binds at the optimum, so the two forms coincide. With MANY cuts the ≥ max-envelope form is ALWAYS used regardless of this flag (the value function is the max of its supporting cuts).

OptBool gtopt::FutureCost::use_user_alpha

User-overridable FCF (piece 5 step 2a). When true, the FCF cost-to-go α is NOT the built-in varphi_s column priced 1/N; instead the modeller authors a global state/link DecisionVariable (the user α, with cost = 1.0, cost_type = "raw") plus global UserConstraint cut row(s) over it, and points user_alpha_uid at that variable. The built-in α column is then registered INERT (pinned lowb = uppb = 0, cost = 0) so it neither prices nor floors anything — the user's recourse fully replaces the boundary-cut FCF. Mutually exclusive with cuts_file (or any of its deprecated aliases): supplying both is a runtime error. Default unset ⇒ false (the byte-for-byte legacy boundary-cut path).

OptUid gtopt::FutureCost::user_alpha_uid

UID of the user-authored α DecisionVariable (piece 5 step 2a). Required when use_user_alpha is true: identifies the global state/link column that holds the cost-to-go so add_to_output can emit it as FutureCost/alpha and the forward-pass UB estimator can subtract its realised value. Typed Uid (not a name) so it resolves through the state-variable registry without a string lookup.

std::optional<BoundaryCutsValuation> gtopt::FutureCost::valuation

Valuation basis of the cut RHS / coefficients: end_of_horizon (default, no discounting) or present_value (apply the last stage's effective discount factor on load). Typed enum. Deprecated alias: simulation.boundary_cuts_valuation.