mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Remove unused methods
This commit is contained in:
@@ -341,10 +341,6 @@ class GurobiSolver(InternalSolver):
|
|||||||
c = self.model.getConstrByName(cid)
|
c = self.model.getConstrByName(cid)
|
||||||
return c.Sense
|
return c.Sense
|
||||||
|
|
||||||
def set_constraint_rhs(self, cid, rhs):
|
|
||||||
c = self.model.getConstrByName(cid)
|
|
||||||
c.RHS = rhs
|
|
||||||
|
|
||||||
def relax(self) -> None:
|
def relax(self) -> None:
|
||||||
self.model = self.model.relax()
|
self.model = self.model.relax()
|
||||||
self._update_vars()
|
self._update_vars()
|
||||||
|
|||||||
@@ -188,10 +188,6 @@ class InternalSolver(ABC):
|
|||||||
def get_constraint_sense(self, cid: str) -> str:
|
def get_constraint_sense(self, cid: str) -> str:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
|
||||||
def set_constraint_rhs(self, cid: str, rhs: float) -> None:
|
|
||||||
pass
|
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def get_value(self, var_name: str, index: VarIndex) -> Optional[float]:
|
def get_value(self, var_name: str, index: VarIndex) -> Optional[float]:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -307,9 +307,6 @@ class BasePyomoSolver(InternalSolver):
|
|||||||
def is_constraint_satisfied(self, cobj: Constraint) -> bool:
|
def is_constraint_satisfied(self, cobj: Constraint) -> bool:
|
||||||
raise Exception("Not implemented")
|
raise Exception("Not implemented")
|
||||||
|
|
||||||
def set_constraint_rhs(self, cid: str, rhs: float) -> None:
|
|
||||||
raise Exception("Not implemented")
|
|
||||||
|
|
||||||
def is_infeasible(self) -> bool:
|
def is_infeasible(self) -> bool:
|
||||||
return self._termination_condition == TerminationCondition.infeasible
|
return self._termination_condition == TerminationCondition.infeasible
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user