Remove unused methods

master
Alinson S. Xavier 5 years ago
parent 868675ecf2
commit a42c5ebdc3

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

Loading…
Cancel
Save