gtopt::ElasticCostPolicy struct

Slack-pricing policy for the elastic Phase-1 clone.

Selects how elastic_filter_solve prices the per-link slack pair (sup pulls the state down, sdn lifts it up) on the clone's zeroed objective. Default-constructed instances reproduce the legacy behaviour byte-for-byte, so every existing call site compiles and behaves unchanged.

Public types

enum class Model: uint8_t { penalty_scaled = 0, plp_unit_rc_tilt = 1, unit = 2 }

Public variables

Model model
double rc_tilt_factor
PLP's 0.01 multiplier on the previous-basis reduced cost.
double scale_objective

Enum documentation

enum class gtopt::ElasticCostPolicy::Model: uint8_t

Enumerators
penalty_scaled

Legacy gtopt pricing: both slack directions cost penalty × dep_scale_phys (see compute_relaxation_specs).

plp_unit_rc_tilt

PLP AgrElastici pricing (plp-agrespd.f:496-815 + osicallsc.cpp:611-768): unit costs with a reduced-cost tilt toward the cheapest reservoir — sdn (raises the state; PLP "sp"): 1 + max(tilt, 0) sup (lowers the state; PLP "sn"): 1 − min(tilt, 0) with tilt = rc_tilt_factor × rc_prev_phys and rc_prev_phys = StateVariable::source_reduced_cost() × scale_objective / var_scale — the source column's reduced cost in the PREVIOUS phase's last solved basis, lifted to the LP-folded "physical" convention (cost_factor stays folded, same as every other rc consumer). Ignores the penalty argument and the phase discount. The (1 ± tilt) price is per PHYSICAL unit — multiplied by dep_scale_phys (= col_scale(dep)) at spec time, because PLP's LP is UNSCALED so its flat unit costs ARE physical prices; a per-RAW price would under-charge auto-scaled state columns by exactly col_scale and skew the repair toward them (the 2-yr-case 0.1-vs-1.0 cut-coefficient leak). Links with a null state_var (test fixtures) get tilt = 0, i.e. cost exactly 1.0 × col_scale(dep) — PLP's value when rc = 0 on an unscaled column.

unit

Flat unit costs, NO rc tilt: both slack directions cost exactly 1.0 per PHYSICAL unit (× dep_scale_phys, same rationale as plp_unit_rc_tilt) — the Füllner–Rebennack §17.2 Phase-1 objective eᵀy⁺ + eᵀy⁻ (elastic_filter_mode = farkas_recursive). Physical pricing makes the clone optimum V measure physical repair, so the §17.3 intercept σᵀv̂ + V composes in one unit system and σ_phys = σ_view / col_scale(dep) lands at ±1 on every active link. Ignores penalty and the phase discount.

Variable documentation

double gtopt::ElasticCostPolicy::scale_objective

Global objective scale used to lift the stored raw rc to the physical convention (rc_phys = rc_raw × scale_objective / var_scale). Callers pass li.scale_objective().