mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-07 18:08:51 -06:00
Add types to internal solvers
This commit is contained in:
@@ -164,12 +164,3 @@ class Instance(ABC):
|
||||
data = json.dumps(self.__dict__, indent=2).encode("utf-8")
|
||||
with gzip.GzipFile(filename, "w") as f:
|
||||
f.write(data)
|
||||
|
||||
|
||||
class PyomoInstance(Instance, ABC):
|
||||
@abstractmethod
|
||||
def to_model(self) -> pe.ConcreteModel:
|
||||
"""
|
||||
Returns the concrete Pyomo model corresponding to this instance.
|
||||
"""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user