future_cost.hpp file
Future Cost Function (FCF) element — the cost-to-go / α
Defines the FutureCost structure — a first-class element that owns the end-of-horizon cost-to-go (the future-cost function, FCF: α / varphi_s) and the boundary cuts that linearise it. It is the ONE method-neutral place where the FCF boundary cuts are configured: both monolithic_method and sddp_method (and cascade, which runs SDDP) read only the resolved FutureCost element — never sddp_options / monolithic_options — for:
- the boundary cuts (
cuts_file: rowsiteration,scene,rhs,<state...>; each row isα ≥ rhs − Σ wvᵣ·Vfinᵣ, the per-reservoir-water_valueslopes on the terminal storage state variables), how they are loaded (mode,sharing,iteration_limit,missing_cut_var_mode,valuation,single_cut_equality), - the α /
varphi_sdecision variable(s) (one per source scene under multicut, priced1/N), whose optimal value is the realised cost-to-go (scale_alpha), - the α-rebase (
mean_shift): shifting the cut intercepts so α' ≈ 0 when the reservoirs hit theirefinend-of-horizon targets, with the removed constant added back as an objective constantc̄. When more water than target is saved, α' < 0 (a future-cost credit); when less, α' > 0, - the user-overridable FCF (
use_user_alpha/user_alpha_uid).
A boundary cut always involves α. Any other generic linear constraint on the terminal state belongs in a UserConstraint (AMPL/PAMPL), not here.
The legacy keys sddp_options.boundary_* / missing_cut_var_mode (SDDP / cascade only), monolithic_options.boundary_* (monolithic only) and simulation.boundary_cuts_file / boundary_cuts_valuation (any method) are deprecated aliases: resolve_future_cost_aliases translates them into this element once, after all JSON files and --set overrides merge.
Both methods build/output this element through the standard FutureCostLP::add_to_lp / add_to_output lifecycle, so α, the rebase constant c̄, and the un-rebased value α + c̄ are saved to the solution like any other element's outputs.
JSON Example
{ "uid": 1, "name": "fcf", "cuts_file": "boundary_cuts.csv", "scale_alpha": 100000, "mean_shift": true, "sharing": "multicut", "iteration_limit": 10 }
Namespaces
- namespace gtopt
Classes
- struct gtopt::FutureCost
- The future cost function (cost-to-go) as a first-class element.