gtopt/risk_measure.hpp file

Risk measure option (expected cost / mean-CVaR).

model_options.risk_measure = "cvar" replaces the expected total cost of a (scene, phase) LP by the mean-CVaR blend

F + (1 − λ) Σ_s p_s O_s + λ · ( P η + 1/(1 − α) Σ_s p_s u_s )
u_s ≥ O_s − η,  u_s ≥ 0,  η free

(Rockafellar–Uryasev 2000), with

  • F the scenario-independent (first-stage) cost: the capacity annuities (capacost) and every column built outside the per-scenario loop;
  • O_s the discounted operating cost of scenario s, read off the objective coefficients the elements already wrote (c_j = p_s · d_j → d_j = c_j / p_s) plus the scenario's share of the objective constant;
  • P = Σ_s p_s the probability mass of the cell (1 for the single scene of a monolithic run).

Because F is the same in every scenario, CVaR(F + O) = F + CVaR(O) (translation equivariance), so the capacity columns keep their coefficients. The dual μ_s ≥ 0 of row s satisfies Σ_s μ_s = λ P and μ_s ≤ λ p_s / (1 − α); the risk-adjusted probability of scenario s is π_s = (1 − λ) p_s + μ_s (Σ_s π_s = P), and every per-scenario dual gtopt reports (÷ p_s) carries the factor ζ_s = π_s / p_s.

Default expected builds nothing (byte-identical LP). Monolithic only: the end-of-horizon CVaR couples the scenarios of a scene, which the SDDP / cascade decomposition cannot represent (see docs/formulation/mathematical-formulation.md, "Risk-averse objective").

Namespaces

namespace gtopt