Skip to content

Fix support for JuMP v1.32 - #42

Merged
blegat merged 2 commits into
mainfrom
bl/jump_1_32
Oct 8, 2026
Merged

blegat merged 2 commits into
mainfrom
bl/jump_1_32

Conversation

@blegat

@blegat blegat commented Oct 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

blegat added 2 commits October 4, 2026 11:18
Since jump-dev/JuMP.jl#4254, JuMP converts functions with the two-argument
JuMP.moi_function(model, f) whose fallback calls check_belongs_to_model. As
ExprGenerator is an AbstractVector of GenericNonlinearExpr, it was converted
into a MOI.VectorNonlinearFunction instead of a FunctionGenerator. Define the
two-argument method for the types of GenOpt.

JuMP also added check_belongs_to_model(::AbstractConstraint, ::AbstractModel)
which made the methods of GenOpt with an untyped model ambiguous.
@codecov

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.99%. Comparing base (0fd23b0) to head (7478c9b).

Files with missing lines Patch % Lines
src/operators.jl 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
+ Coverage   91.85%   91.99%   +0.13%     
==========================================
  Files           6        6              
  Lines         491      512      +21     
==========================================
+ Hits          451      471      +20     
- Misses         40       41       +1     

☔ 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.

@blegat
blegat merged commit 9cee85d into main Oct 8, 2026
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.

1 participant