mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 02:18:51 -06:00
Implement RelaxationComponent
This commit is contained in:
@@ -274,6 +274,13 @@ class GurobiSolver(InternalSolver):
|
||||
else:
|
||||
raise Exception("Unknown sense: %s" % sense)
|
||||
|
||||
def get_constraint_slacks(self):
|
||||
return {c.ConstrName: c.Slack for c in self.model.getConstrs()}
|
||||
|
||||
def relax(self):
|
||||
self.model = self.model.relax()
|
||||
self._update_vars()
|
||||
|
||||
def set_branching_priorities(self, priorities):
|
||||
self._raise_if_callback()
|
||||
logger.warning("set_branching_priorities not implemented")
|
||||
|
||||
Reference in New Issue
Block a user