mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -06:00
Remove unused methods
This commit is contained in:
@@ -341,10 +341,6 @@ class GurobiSolver(InternalSolver):
|
||||
c = self.model.getConstrByName(cid)
|
||||
return c.Sense
|
||||
|
||||
def set_constraint_rhs(self, cid, rhs):
|
||||
c = self.model.getConstrByName(cid)
|
||||
c.RHS = rhs
|
||||
|
||||
def relax(self) -> None:
|
||||
self.model = self.model.relax()
|
||||
self._update_vars()
|
||||
|
||||
@@ -188,10 +188,6 @@ class InternalSolver(ABC):
|
||||
def get_constraint_sense(self, cid: str) -> str:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def set_constraint_rhs(self, cid: str, rhs: float) -> None:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
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:
|
||||
raise Exception("Not implemented")
|
||||
|
||||
def set_constraint_rhs(self, cid: str, rhs: float) -> None:
|
||||
raise Exception("Not implemented")
|
||||
|
||||
def is_infeasible(self) -> bool:
|
||||
return self._termination_condition == TerminationCondition.infeasible
|
||||
|
||||
|
||||
Reference in New Issue
Block a user