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

from polymatrix.optimization import Optimization
from polymatrix.oldpolymatrixexprstate import OldPolyMatrixExprState


@dataclass_abc.dataclass_abc(frozen=True, eq=False)
class OptimizationImpl(Optimization):
    # n_var: int
    state: OldPolyMatrixExprState
    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]]