ElasticCostPolicy struct
#include <gtopt/benders_cut.hpp>
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 |
| plp_unit_rc_tilt |
PLP |
| unit |
Flat unit costs, NO rc tilt: both slack directions cost exactly 1.0 per PHYSICAL unit ( |
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().