gtopt::RuleBoundState struct

Per-(scenario, stage) cached state for elements whose update_lp evaluates a RightBoundRule axis to refresh a column bound.

Shared by FlowRightLP and VolumeRightLP — both elements drive update_lp from a single right_bound_rule and need exactly:

  • current_bound — last evaluated rule output (axis -> bound) to skip redundant set_col_lowb/uppb calls.
  • reservoir_cache — cached column indices for reservoir-axis rules; default-constructed for axes that do not consume reservoir state.

The struct is intentionally aggregate-trivial so that IndexHolder2<ScenarioUid, StageUid, RuleBoundState> benefits from trivial copy/move during collection rebuilds.

Public variables

Real current_bound
ReservoirRefCache reservoir_cache