get_argmax_sum_violations
(function from pyomo.contrib.pyros.separation_problem_methods)
- pyomo.contrib.pyros.separation_problem_methods.get_argmax_sum_violations(solver_call_results_map, ss_ineq_cons_to_evaluate)[source]
Get key of entry of solver_call_results_map which contains separation problem solution with maximal sum of second-stage inequality constraint violations over a specified sequence of second-stage inequality constraints.
- Parameters:
solver_call_results (ComponentMap) – Mapping from second-stage inequality constraints to corresponding separation solver call results.
ss_ineq_cons_to_evaluate (list of Constraints) – Second-stage inequality constraints to consider for evaluating maximal sum.
- Returns:
worst_ss_ineq_con – Second-stage inequality constraint corresponding to solver call results object containing solution with maximal sum of violations across all second-stage inequality constraints. If
found_violationattribute of all value entries of solver_call_results_map is False, then None is returned, as this means none of the second-stage inequality constraints were found to be violated.- Return type:
None or Constraint