get_con_name_repr
(function from pyomo.contrib.pyros.separation_problem_methods)
- pyomo.contrib.pyros.separation_problem_methods.get_con_name_repr(separation_model, con, with_obj_name=True)[source]
Get string representation of second-stage inequality constraint and the objective to which it has been mapped.
- Parameters:
separation_model (ConcreteModel) – Separation model.
con (ScalarConstraint or ConstraintData) – Constraint for which to get the representation.
with_obj_name (bool, optional) – Include name of separation model objective to which constraint is mapped. Applicable only to second-stage inequality constraints of the separation problem.
- Returns:
Constraint name representation.
- Return type: