Skip to content

Add nonnegativity_constraint to customize the relaxation constraint - #168

Merged
blegat merged 1 commit into
mainfrom
bl/nonnegativity_constraint
Nov 30, 2026
Merged

blegat merged 1 commit into
mainfrom
bl/nonnegativity_constraint

Conversation

@blegat

@blegat blegat commented Nov 30, 2026

Copy link
Copy Markdown
Member

The constraints whose multiplier has the default degree are now given in the domain of the new nonnegativity_constraint, whose default implementation creates their multipliers explicitly as before, so the relaxation is unchanged. An optimizer such as SumOfSquares.Optimizer can implement it to give the domain to its constraint, e.g., to exploit sparsity, instead of reimplementing _optimize!.

The lagrangian given to recover_solutions is now the polynomial constrained by the constraint returned by nonnegativity_constraint.

The constraints whose multiplier has the default degree are now given in the
domain of the new `nonnegativity_constraint`, whose default implementation
creates their multipliers explicitly as before, so the relaxation is
unchanged. An optimizer such as `SumOfSquares.Optimizer` can implement it to
give the domain to its constraint, e.g., to exploit sparsity, instead of
reimplementing `_optimize!`.

The `lagrangian` given to `recover_solutions` is now the polynomial
constrained by the constraint returned by `nonnegativity_constraint`.
@blegat
blegat merged commit a84ae21 into main Nov 30, 2026
7 of 10 checks passed
@blegat
blegat deleted the bl/nonnegativity_constraint branch November 30, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant