summaryrefslogtreecommitdiffstats
path: root/polymatrix/impl/optimizationimpl.py
blob: ac78ea088aef14aecea75eda57ccef3041bbbe3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import dataclass_abc

from polymatrix.optimization import Optimization
from polymatrix.optimizationstate import OptimizationState


@dataclass_abc.dataclass_abc(frozen=True, eq=False)
class OptimizationImpl(Optimization):
    # n_var: int
    state: OptimizationState
    equality_constraints: dict[int, dict[tuple[int, int], float]]
    inequality_constraints: dict[int, dict[tuple[int, int], float]]
    auxillary_equality: dict[int, dict[tuple[int, int], float]]