Skip to content

Use MOI routing for custom objective attributes - #382

Open
blegat wants to merge 1 commit into
masterfrom
bl/moi-objective-function-attribute
Open

blegat wants to merge 1 commit into
masterfrom
bl/moi-objective-function-attribute

Conversation

@blegat

@blegat blegat commented Nov 12, 2026

Copy link
Copy Markdown
Member

Replace the local ObjectiveFunctionAttribute wrapper and its bridge optimizer get/set implementations with MOI.Bridges.ObjectiveFunctionAttribute. Retain the attribute-specific bridge transformations and add a regression test for forwarding through a slack child that is itself bridged.

Merging this allows jump-dev/MathOptInterface.jl#3130 to be non-breaking.

Replace the local ObjectiveFunctionAttribute wrapper and its bridge optimizer get/set implementations with MOI.Bridges.ObjectiveFunctionAttribute. Retain the attribute-specific bridge transformations and add a regression test for forwarding through a slack child that is itself bridged.

This companion sketch is based directly on DiffOpt master and depends on the additive MOI API in bl/objective-function-attribute. Its minimum MOI compatibility must be updated once that API has a release version, before merging this migration.

Validation: test/bridges.jl passes all 26 assertions with normal compilation, including allocation checks. The trivial-QP test passes all 64 assertions through forward and reverse differentiation. JuliaFormatter 2 applied to the repository.

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.

1 participant