decision_variable.hpp file
Decision Variable (continuous or integer) referenced by UserConstraints.
Defines the DecisionVariable structure — a per-(scenario, stage, block) free continuous LP column that user constraints can reference via the AMPL-style accessor decision_variable("X").value. Mirrors the PLEXOS Decision Variable class (class_id 72) used in the CEN PCP daily bundle for reserve-allocation knobs (BESS_*_LW/RS, CPF_*, …) and generic free parameters.
JSON Example
{ "uid": 1, "name": "bess_angamos_lw", "lower_bound": -1000, "upper_bound": 1000, "cost": 0 }
The optional cost adds the column to the LP objective. How it folds in depends on cost_type; the default is "raw" (face value, NO probability/discount/duration weighting), matching the PLEXOS penalty DecisionVariables. When unset, the lower bound defaults to 0 (non-negative — never a free unbounded-below column, which breaks GPU first-order solvers) and the upper bound to +LP_INFINITY; an α-rebased column (obj_constant set) instead defaults free below.
Namespaces
- namespace gtopt
Classes
- struct gtopt::DecisionVariable
- A free continuous LP column with optional bounds and cost.