Remove EnforceOverrides

master
Alinson S. Xavier 4 years ago
parent 17d4bc6ab9
commit 8e61b7be5f
No known key found for this signature in database
GPG Key ID: DCA0DAD4D2F58624

@ -5,20 +5,18 @@
from typing import Any, List, TYPE_CHECKING, Tuple, Dict, Hashable, Optional from typing import Any, List, TYPE_CHECKING, Tuple, Dict, Hashable, Optional
import numpy as np import numpy as np
from overrides import EnforceOverrides from p_tqdm import p_umap
from miplearn.features import Sample from miplearn.features import Sample
from miplearn.instance.base import Instance from miplearn.instance.base import Instance
from miplearn.types import LearningSolveStats from miplearn.types import LearningSolveStats
from p_tqdm import p_umap
if TYPE_CHECKING: if TYPE_CHECKING:
from miplearn.solvers.learning import LearningSolver from miplearn.solvers.learning import LearningSolver
# noinspection PyMethodMayBeStatic # noinspection PyMethodMayBeStatic
class Component(EnforceOverrides): class Component:
""" """
A Component is an object which adds functionality to a LearningSolver. A Component is an object which adds functionality to a LearningSolver.

@ -6,8 +6,6 @@ import logging
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from typing import Any, List, Optional, Hashable, TYPE_CHECKING from typing import Any, List, Optional, Hashable, TYPE_CHECKING
from overrides import EnforceOverrides
from miplearn.features import Sample from miplearn.features import Sample
from miplearn.types import VariableName, Category from miplearn.types import VariableName, Category
@ -18,7 +16,7 @@ if TYPE_CHECKING:
# noinspection PyMethodMayBeStatic # noinspection PyMethodMayBeStatic
class Instance(ABC, EnforceOverrides): class Instance(ABC):
""" """
Abstract class holding all the data necessary to generate a concrete model of the Abstract class holding all the data necessary to generate a concrete model of the
proble. proble.

@ -7,8 +7,6 @@ from abc import ABC, abstractmethod
from dataclasses import dataclass from dataclasses import dataclass
from typing import Any, Dict, List, Optional from typing import Any, Dict, List, Optional
from overrides import EnforceOverrides
from miplearn.features import Constraint, VariableFeatures, ConstraintFeatures from miplearn.features import Constraint, VariableFeatures, ConstraintFeatures
from miplearn.instance.base import Instance from miplearn.instance.base import Instance
from miplearn.types import ( from miplearn.types import (
@ -47,7 +45,7 @@ class MIPSolveStats:
mip_warm_start_value: Optional[float] = None mip_warm_start_value: Optional[float] = None
class InternalSolver(ABC, EnforceOverrides): class InternalSolver(ABC):
""" """
Abstract class representing the MIP solver used internally by LearningSolver. Abstract class representing the MIP solver used internally by LearningSolver.
""" """

@ -9,7 +9,7 @@ with open("README.md", "r") as fh:
setup( setup(
name="miplearn", name="miplearn",
version="0.2.0.dev3", version="0.2.0.dev5",
author="Alinson S. Xavier", author="Alinson S. Xavier",
author_email="axavier@anl.gov", author_email="axavier@anl.gov",
description="Extensible framework for Learning-Enhanced Mixed-Integer Optimization", description="Extensible framework for Learning-Enhanced Mixed-Integer Optimization",

Loading…
Cancel
Save