Skip to content

Remove need for the MOI fork#21

Merged
SophieL1 merged 32 commits intomainfrom
bl/fix_parse
Feb 3, 2026
Merged

Remove need for the MOI fork#21
SophieL1 merged 32 commits intomainfrom
bl/fix_parse

Conversation

@blegat
Copy link
Copy Markdown
Owner

@blegat blegat commented Jan 6, 2026

No description provided.

append!(
model.operators.multivariate_operators,
[:vect, :dot, :hcat, :vcat, :norm, :sum, :row],
)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to modify
https://github.com/jump-dev/MathOptInterface.jl/blob/100eab2e669e73689e1dc214391d97c24402e35c/src/Nonlinear/operators.jl#L173
but we can't because the struct is not mutable...
We probably need to make our own model completely

SophieL1 and others added 14 commits January 8, 2026 12:37
* Add OperatorRegistry because immutable in MOI Nonlinear (and Int fields will need to be modified)
* Add DEFAULT_MULTIVARIATE_OPERATORS to extend it from MOI Nonlinear
* Add OrderedCollections that was used in Model
* Add OperatorRegistry because immutable in MOI Nonlinear (and Int fields will need to be modified)
* Add DEFAULT_MULTIVARIATE_OPERATORS to extend it from MOI Nonlinear
* Add OrderedCollections that was used in Model
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d" No newline at end of file
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to add it to the tests, it's just a dependency of ArrayDiff

Because we need a slight change in OperatorRegistry. Implying need to redefine Model and Evaluator because using it.
And change args types to our newly defined OperatorRegistry, Model and Evaluator
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 16, 2026

Codecov Report

❌ Patch coverage is 76.95652% with 106 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.45%. Comparing base (3202d3d) to head (c034297).
⚠️ Report is 34 commits behind head on main.

Files with missing lines Patch % Lines
src/operators.jl 44.37% 89 Missing ⚠️
src/evaluator.jl 91.57% 8 Missing ⚠️
src/parse.jl 96.12% 5 Missing ⚠️
src/model.jl 91.11% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
- Coverage   99.33%   94.45%   -4.89%     
==========================================
  Files          10       14       +4     
  Lines        1663     2110     +447     
==========================================
+ Hits         1652     1993     +341     
- Misses         11      117     +106     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SophieL1 SophieL1 merged commit f64cb40 into main Feb 3, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants