Skip to content

Update to MP v0.6 - #163

Merged
blegat merged 14 commits into
mainfrom
bl/sa_refactor
Nov 3, 2026
Merged

blegat merged 14 commits into
mainfrom
bl/sa_refactor

Conversation

@blegat

@blegat blegat commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Use the new DynamicPolynomials aliases and explicit full-basis expansion in algebraic-set bridges and relaxation multipliers. Define JuMP and MOI coefficient arithmetic explicitly, including mixed types and finite-basis inputs, and reuse the algebra-element value path.

Keep SAGE decompositions as wrappers and fold nonlinear operands without constructing abstractly typed polynomial arrays. Domain promotion uses the SemialgebraicSets prerequisite cbd4e07 on bl/sa_refactor.

Validated coefficient, variable, constraint, mock bridge, SAGE, and QCQP test files against the local refactor branches. Temporary line probes verified the new dispatch paths; all were removed. JuliaFormatter 2.x leaves no diff.
Select the current polynomial refactor branches and MutableArithmetics
main for dependencies in package and auxiliary environments. Reference
this package by a relative path in its own environments.

Validated all project files with Julia Pkg and resolved an isolated copy
of the SumOfSquares test environment with the full local refactor chain
and MutableArithmetics main (1.9.0). Formatting matches the CI workflow.
Replace MutableArithmetics source overrides with a 1.9 compatibility bound
in the package and auxiliary environments.

Validated all project files and compatibility bounds with Julia Pkg. The
full local refactor chain resolves against registered MutableArithmetics
1.9.0, and the CI formatter checks pass.
Remove the duplicated JuMP and MOI operators for SA terms and algebra
elements. Retain only bare-monomial adapters and their product promotion,
so MA rewrites can also multiply MOI variable indices by monomials.

Require SA 0.4 and validate function and variable tests with DP and TP,
including rewritten scalar products and finite-basis promotion.
Remove the duplicate JuMP and MOI monomial operators and promotion methods. Use the SA scalar-extension branch and cover subtraction rewrites when polynomial coefficient types widen.

The focused functions and variable tests pass with both DP and TP: 568 passed and four existing broken tests. Repository formatting is clean.
Remove value, display, and index-free metadata methods now provided by SA, MP, and MM extensions. Keep build_constraint overloads and mark their type piracy for a separate review. Check parent-preserving term evaluation and constraint display.
@blegat
blegat merged commit 2fb56e9 into main Nov 3, 2026
10 checks passed
@blegat
blegat deleted the bl/sa_refactor branch November 3, 2026 09:21
@schillic

schillic commented Nov 5, 2026

Copy link
Copy Markdown

Do you mind making a new release for these changes?

@blegat

blegat commented Nov 6, 2026

Copy link
Copy Markdown
Member Author

I'm planning to make a few breaking changes as part of this release, do you need a backport release ?

@schillic

schillic commented Nov 6, 2026

Copy link
Copy Markdown

No, I just saw that this package is holding back the MP version. Thanks!

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.

2 participants