Skip to content

Replace add_bridged_constraint override by a default reformulation hook - #81

Merged
blegat merged 1 commit into
mainfrom
bl/remove-add-bridged-constraint
Nov 6, 2026
Merged

blegat merged 1 commit into
mainfrom
bl/remove-add-bridged-constraint

Conversation

@blegat

@blegat blegat commented Nov 5, 2026

Copy link
Copy Markdown
Member

More robust than current approach which breaks with jump-dev/MathOptInterface.jl#3013

@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d7a7a26) to head (d763c82).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #81   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines          662       655    -7     
=========================================
- Hits           662       655    -7     

☔ View full report in Codecov by Harness.
📢 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.

The override copied MOI's internal implementation of add_bridged_constraint,
including Constraint.add_key_for_bridge whose signature changes in
jump-dev/MathOptInterface.jl's index-space redesign. Since
recursive_model(::Optimizer) is the Optimizer itself, the NonlinearBridge
can read the default reformulation from the model it receives instead.
@blegat
blegat force-pushed the bl/remove-add-bridged-constraint branch from 8a1f28d to d763c82 Compare November 6, 2026 07:07
@blegat
blegat merged commit 452fa45 into main Nov 6, 2026
5 checks passed
@blegat
blegat deleted the bl/remove-add-bridged-constraint branch November 6, 2026 09:55
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