(function from pyomo.contrib.pyros.separation_problem_methods)
pyomo.contrib.pyros.separation_problem_methods
Evaluate the inequality constraint function violations of the current separation model solution, and store the results in a given SeparationResult object. Also, determine whether the separation solution violates the inequality constraint whose body is the model’s active objective.
separation_data (SeparationProblemData) – Object containing the separation model.
ss_ineq_con_to_maximize (ConstraintData) – Second-stage inequality constraint to which the current solution is mapped.
ss_ineq_cons_to_evaluate (list of Constraint) – Second-stage inequality constraints whose expressions are to be evaluated at the current separation problem solution. Exactly one of these constraints should be mapped to an active Objective in the separation model.
violating_param_realization (list of float) – Uncertain parameter realization corresponding to maximum constraint violation.
scaled_violations (ComponentMap) – Mapping from second-stage inequality constraints to be evaluated to their violations by the separation problem solution.
constraint_violated (bool) – True if second-stage inequality constraint mapped to active separation model Objective is violated (beyond tolerance), False otherwise
ValueError – If ss_ineq_cons_to_evaluate does not contain exactly 1 entry which can be mapped to an active Objective of model_data.separation_model.
model_data.separation_model