summaryrefslogtreecommitdiffstats
path: root/src/act4e_mcdp_solution
diff options
context:
space:
mode:
Diffstat (limited to 'src/act4e_mcdp_solution')
-rw-r--r--src/act4e_mcdp_solution/__init__.py10
-rw-r--r--src/act4e_mcdp_solution/py.typed0
-rw-r--r--src/act4e_mcdp_solution/solution.py13
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([])