summaryrefslogtreecommitdiffstats
path: root/sumofsquares/sosconstraint/init.py
blob: 68a2f25b8f572a9f8e5c7de5f44be74bd7e1fe3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import polymatrix

from sumofsquares.sosexprbase.mixins.parametermixin import ParameterMixin
from sumofsquares.sosconstraint.impl import SOSConstraintImpl


def init_sos_constraint(
    dependence: tuple[ParameterMixin],
    constraint: polymatrix.Expression
):
    return SOSConstraintImpl(
        dependence=dependence,
        constraint=constraint,
    )