From c9c025618571db61d431924934eef6d01a30182a Mon Sep 17 00:00:00 2001 From: Andrea Censi Date: Fri, 26 May 2023 17:41:21 +0200 Subject: misc --- src/act4e_mcdp_solution/__init__.py | 10 ++++++++++ src/act4e_mcdp_solution/py.typed | 0 src/act4e_mcdp_solution/solution.py | 13 +++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 src/act4e_mcdp_solution/__init__.py create mode 100644 src/act4e_mcdp_solution/py.typed create mode 100644 src/act4e_mcdp_solution/solution.py (limited to 'src/act4e_mcdp_solution') 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 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([]) -- cgit v1.2.1