-
Notifications
You must be signed in to change notification settings - Fork 14
Add JuMP-like API #281
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Add JuMP-like API #281
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #281 +/- ##
==========================================
+ Coverage 89.08% 89.44% +0.36%
==========================================
Files 15 16 +1
Lines 1969 1999 +30
==========================================
+ Hits 1754 1788 +34
+ Misses 215 211 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
) | ||
inner = diff_optimizer( | ||
optimizer_constructor; | ||
with_parametric_opt_interface = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment on why this is false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I might re rewrite some of the internals to try to ger rid of this
test/jump_wrapper.jl
Outdated
(DiffOpt.quadratic_diff_model, SCS.Optimizer), | ||
(DiffOpt.quadratic_diff_model, Ipopt.Optimizer), | ||
# (DiffOpt.conic_diff_model, HiGHS.Optimizer), | ||
# (DiffOpt.conic_diff_model, SCS.Optimizer), # conicmodel has a issue with sign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need at least one of the three to be enabled otherwise it's not tested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup,
But there is a bug.
Conic returns wrong # some cases.
* fix conic error * use jump psd problem * [docs] update to Documenter@1 (#286) * [docs] update to Documenter@1 * Update * update * format * Pass attributes through Objective.FunctionConversionBridge (#287) * Pass attributes through Objective.FunctionConversionBridge * Fix * add test * fix tol * fix test * add reverse test --------- Co-authored-by: joaquimg <joaquimdgarcia@gmail.com> * bump POI * cleanup --------- Co-authored-by: Oscar Dowson <odow@users.noreply.github.com> Co-authored-by: Benoît Legat <benoit.legat@gmail.com> Co-authored-by: joaquimg <joaquimdgarcia@gmail.com>
closes #271