diff options
author | Andrea Censi <AndreaCensi@users.noreply.github.com> | 2023-05-26 17:41:21 +0200 |
---|---|---|
committer | Andrea Censi <AndreaCensi@users.noreply.github.com> | 2023-05-26 17:41:21 +0200 |
commit | c9c025618571db61d431924934eef6d01a30182a (patch) | |
tree | 4c1931472cdad12648a52eb95d0da2e7762bfbff /src/act4e_mcdp_solution | |
parent | init (diff) | |
download | act4e-mcdp-c9c025618571db61d431924934eef6d01a30182a.tar.gz act4e-mcdp-c9c025618571db61d431924934eef6d01a30182a.zip |
misc
Diffstat (limited to 'src/act4e_mcdp_solution')
-rw-r--r-- | src/act4e_mcdp_solution/__init__.py | 10 | ||||
-rw-r--r-- | src/act4e_mcdp_solution/py.typed | 0 | ||||
-rw-r--r-- | src/act4e_mcdp_solution/solution.py | 13 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/act4e_mcdp_solution/__init__.py b/src/act4e_mcdp_solution/__init__.py new file mode 100644 index 0000000..c3fe37e --- /dev/null +++ b/src/act4e_mcdp_solution/__init__.py @@ -0,0 +1,10 @@ +import coloredlogs + +coloredlogs.install(level="DEBUG") + +import logging + +logger = logging.getLogger(__name__) +logger.setLevel(logging.DEBUG) + +from .solution import * diff --git a/src/act4e_mcdp_solution/py.typed b/src/act4e_mcdp_solution/py.typed new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/act4e_mcdp_solution/py.typed diff --git a/src/act4e_mcdp_solution/solution.py b/src/act4e_mcdp_solution/solution.py new file mode 100644 index 0000000..0a207d0 --- /dev/null +++ b/src/act4e_mcdp_solution/solution.py @@ -0,0 +1,13 @@ +from typing import Any, Mapping + +from act4e_mcdp import NamedDP, SolverInterface, UpperSet, LowerSet + +__all__ = ["MySolution"] + + +class MySolution(SolverInterface): + def solve_FixFunMinRes(self, model: NamedDP, query: Mapping[str, Any]) -> UpperSet[Mapping[str, Any]]: + return UpperSet([]) + + def solve_FixResMaxFun(self, model: NamedDP, query: Mapping[str, Any]) -> LowerSet[Mapping[str, Any]]: + return LowerSet([]) |