Skip to content
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

Add JuMP-like API #281

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

Add JuMP-like API #281

wants to merge 4 commits into from

Conversation

joaquimg
Copy link
Member

closes #271

Copy link

codecov bot commented Feb 22, 2025

Codecov Report

Attention: Patch coverage is 82.60870% with 4 lines in your changes missing coverage. Please review.

Project coverage is 89.10%. Comparing base (93f058d) to head (fdb96c8).

Files with missing lines Patch % Lines
src/jump_wrapper.jl 82.60% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #281      +/-   ##
==========================================
+ Coverage   89.08%   89.10%   +0.02%     
==========================================
  Files          15       16       +1     
  Lines        1969     1992      +23     
==========================================
+ Hits         1754     1775      +21     
- Misses        215      217       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

# 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
2 participants