Skip to content

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add JuMP-like API #281

wants to merge 6 commits into from

Conversation

joaquimg
Copy link
Member

closes #271

Copy link

codecov bot commented Feb 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.44%. Comparing base (93f058d) to head (3cea22f).
Report is 2 commits behind head on master.

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

)
inner = diff_optimizer(
optimizer_constructor;
with_parametric_opt_interface = false,
Copy link
Member

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

Copy link
Member Author

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

(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
Copy link
Member

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

Copy link
Member Author

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.

andrewrosemberg and others added 2 commits May 19, 2025 22:57
* 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>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add a JuMP-like syntax to diff wrt parameters
3 participants