Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for SingleVariable objective #63

Merged
merged 1 commit into from
Sep 23, 2019
Merged

Conversation

blegat
Copy link
Collaborator

@blegat blegat commented Sep 22, 2019

This structure of objective is not exploited by OSQP, it is handled the
same way as a ScalarQuadraticFunction. Objective bridges can no
transform it automatically so solvers should not support it.
Support for ScalarAffineFunction should also be removed for the same reason but there is currently no objective bridge for transforming ScalarAffineFunction into ScalarQuadraticFunction.

This structure of objective is not exploited by OSQP, it is handled the
same way as a `ScalarQuadraticFunction`. Objective bridges can no
transform it automatically so solvers should not support it.
@codecov-io
Copy link

codecov-io commented Sep 22, 2019

Codecov Report

Merging #63 into master will increase coverage by 0.48%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #63      +/-   ##
==========================================
+ Coverage   87.55%   88.04%   +0.48%     
==========================================
  Files           6        6              
  Lines         932      920      -12     
==========================================
- Hits          816      810       -6     
+ Misses        116      110       -6
Impacted Files Coverage Δ
src/MOI_wrapper.jl 89.67% <100%> (+0.72%) ⬆️
src/interface.jl 80.97% <0%> (+0.88%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d01f22e...a427571. Read the comment docs.

@tkoolen
Copy link
Collaborator

tkoolen commented Sep 22, 2019

Looks good to me. So bridges are fully ready for prime time now? That'll be wonderful.

@blegat
Copy link
Collaborator Author

blegat commented Sep 23, 2019

@tkoolen Yes, we now have variable, constraint and objective bridges working together since MOI v0.9.2, I don't see any infrastructure change to make in the near future. One important addition though is jump-dev/MathOptInterface.jl#680 which is useful when developing bridges and for helping the user understand what happens under the hood.

@blegat blegat merged commit d36d3e0 into master Sep 23, 2019
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.

3 participants