Remove unused methods

This commit is contained in:
2021-01-21 14:27:28 -06:00
parent 868675ecf2
commit a42c5ebdc3
3 changed files with 0 additions and 11 deletions

View File

@@ -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()

View File

@@ -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]:
"""

View File

@@ -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