turn_adjustable_var_bounds_to_constraints

(function from pyomo.contrib.pyros.util)

pyomo.contrib.pyros.util.turn_adjustable_var_bounds_to_constraints(model_data)[source]

Reformulate domain and declared bounds for the adjustable (i.e., effective second-stage and effective state) variables of the working model to explicit constraints.

The domain and declared bounds for every adjustable variable are unconditionally reformulated to constraints, as this is required for appropriate construction of the subproblems later. Since these constraints depend on adjustable variables, they are taken to be (effective) second-stage constraints.

Bounds that have been assigned a separation priority of None are reformulated to first-stage constraints, and are subsequently enforced subject to only the nominal uncertain parameter realization.

Parameters:

model_data (model data object) – Main model data object.