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

Added conversion between julia infs and QPALM infs in the problem bounds #5

Merged
merged 2 commits into from
Aug 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ function update!(
)
end

# Convert lower and upper bounds from Julia infinity to OSQP infinity
Copy link
Member

Choose a reason for hiding this comment

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

you mean QPALM? :-)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah sorry, I merged this just a second ago. Will fix in a sec.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah in fact, it was your fault Lorenzo as this comment came directly from the setup wrapper :-)

bmin = max.(bmin, -QPALM_INFTY)
bmax = min.(bmax, QPALM_INFTY)

if bmin != nothing || bmax != nothing
ccall(
(:qpalm_update_bounds, LIBQPALM_PATH),
Expand Down