Skip to content

Fix MOI.AbstractFunctionModification with Bridges.Constraint.SetMapBridge - #3115

Open
odow wants to merge 3 commits into
masterfrom
od/fix-set-map-change
Open

odow wants to merge 3 commits into
masterfrom
od/fix-set-map-change

Conversation

@odow

@odow odow commented Oct 26, 2026

Copy link
Copy Markdown
Member

Closes #3106

The previous code was not correct. The linearity argument would apply only if the changes were additive. But instead, the changes set a new value, so the argument is correct only for diagonal maps.

It's safer just to implement MOI.modify for each diagonal map.

This branch has not been deployed

No deployments
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.

[Bridges] MultirowChange in set_map.jl drops zero coefficients

1 participant