summaryrefslogtreecommitdiffstats
path: root/src/act4e_mcdp_solution/solution.py
blob: 4704807bedd47470446e3535fd3f271d56703c76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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]]:
        # returns the empty upper set - marking it as infeasible
        return UpperSet([])

    def solve_FixResMaxFun(self, model: NamedDP, query: Mapping[str, Any]) -> LowerSet[Mapping[str, Any]]:
        # returns the empty upper set - marking it as infeasible
        return LowerSet([])