back_off_constraint_with_calculated_cut_violation
(function from pyomo.gdp.plugins.cuttingplane
)
- pyomo.gdp.plugins.cuttingplane.back_off_constraint_with_calculated_cut_violation(cut, transBlock_rHull, bigm_to_hull_map, opt, stream_solver, TOL)[source]
Calculates the maximum violation of cut subject to the relaxed hull constraints. Increases this violation by TOL (to account for optimality tolerance in solving the problem), and, if it finds that cut can be violated up to this tolerance, makes it more conservative such that it no longer can.
- Parameters:
cut (The cut to be made more conservative, a Constraint)
transBlock_rHull (the relaxed hull model's transformation Block)
bigm_to_hull_map (Dictionary mapping ids of bigM variables to the) – corresponding variables on the relaxed hull instance
opt (SolverFactory object for solving the maximum violation problem)
stream_solver (Whether or not to set tee=True while solving the maximum) – violation problem.
TOL (An absolute tolerance to be added to the calculated cut violation,) – to account for optimality tolerance in the maximum violation problem solve.