turn_nonadjustable_var_bounds_to_constraints
(function from pyomo.contrib.pyros.util
)
- pyomo.contrib.pyros.util.turn_nonadjustable_var_bounds_to_constraints(model_data)[source]
Reformulate uncertain bounds for the nonadjustable (i.e. effective first-stage) variables of the working model to constraints.
Only uncertain declared bounds are reformulated to constraints, as these are the only bounds we need to reformulate to properly construct the subproblems. Consequently, all constraints added to the working model in this method are considered second-stage constraints.
- Parameters:
model_data (model data object) – Main model data object.