Skip to content

Conversation

@blegat
Copy link
Owner

@blegat blegat commented Jan 6, 2026

No description provided.

append!(
model.operators.multivariate_operators,
[:vect, :dot, :hcat, :vcat, :norm, :sum, :row],
)
Copy link
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"
Copy link
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

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.

3 participants