Skip to content

[breaking] pass factory to Optimizer instead of ::MOI.ModelLike#68

Open
odow wants to merge 2 commits into
mainfrom
od/instantiate
Open

[breaking] pass factory to Optimizer instead of ::MOI.ModelLike#68
odow wants to merge 2 commits into
mainfrom
od/instantiate

Conversation

@odow
Copy link
Copy Markdown
Member

@odow odow commented May 24, 2026

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #68   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines          548       548           
=========================================
  Hits           548       548           

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

Copy link
Copy Markdown
Member

@blegat blegat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This goes the opposite direction of jump-dev/Dualization.jl#209. I think layer should take instantiated model, it's too hard for a layer to know how to instantiate a factory, see jump-dev/MathOptInterface.jl#2986

@odow
Copy link
Copy Markdown
Member Author

odow commented May 25, 2026

Passing instantiated optimisers is more complicated from a user perspective. Let's chat about this at JuMP-dev.

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.

2 participants