mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 02:18:51 -06:00
23 lines
577 B
Python
23 lines
577 B
Python
# MIPLearn, an extensible framework for Learning-Enhanced Mixed-Integer Optimization
|
|
# Copyright (C) 2019-2020 Argonne National Laboratory. All rights reserved.
|
|
# Written by Alinson S. Xavier <axavier@anl.gov>
|
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
class Component(ABC):
|
|
@abstractmethod
|
|
def fit(self, solver):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def before_solve(self, solver, instance, model):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def after_solve(self, solver, instance, model):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def merge(self, other):
|
|
pass |