mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 02:18:51 -06:00
Add first model feature (constraint RHS)
This commit is contained in:
@@ -335,6 +335,10 @@ class GurobiSolver(InternalSolver):
|
||||
self.model.update()
|
||||
return [c.ConstrName for c in self.model.getConstrs()]
|
||||
|
||||
def get_constraint_rhs(self, cid: str) -> float:
|
||||
assert self.model is not None
|
||||
return self.model.getConstrByName(cid).rhs
|
||||
|
||||
def extract_constraint(self, cid):
|
||||
self._raise_if_callback()
|
||||
constr = self.model.getConstrByName(cid)
|
||||
|
||||
Reference in New Issue
Block a user