-
Notifications
You must be signed in to change notification settings - Fork 27
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
warmstart SCS #22
warmstart SCS #22
Conversation
@madeleineudell, is SCS currently the only solver where you would want to pass this warmstart info? |
Also, what does the |
It looks like we won't have to mess with the dual/slack variables at all In SCS.jl itself, I did make the call signature On Mon, Mar 23, 2015 at 9:21 AM, Miles Lubin [email protected]
Madeleine Udell |
The reason you specify all |
length(m.primal_sol) == nvar || (m.primal_sol = zeros(nvar)) | ||
length(m.dual_sol) == nconstr || (m.dual_sol = zeros(nconstr)) | ||
length(m.slack) == nconstr || (m.slack = zeros(nconstr)) | ||
m |
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.
return m
just for clarity
…matches matrix inner product on S^n
Added code to rescale the SDP constraint as in cvxgrp/scs#40. @bodono does this look good to merge? |
If this passes on travis linux, then we should be good to go. Windows and OS X will definitely fail until we update the binaries. |
It passed on the travis linux release, but not the nightly. Is that to be expected? |
No, the error isn't expected:
Have you tried this on 0.4 locally? |
It looks like you'll need to merge in #17 first, since I think that PR includes the required API changes for this to work. |
I believe I did... take a look at the commit log. On Tue, Jun 9, 2015 at 5:01 PM, bodono [email protected] wrote:
Madeleine Udell |
I fixed the pointer issue @mlubin noted above on .4, but there's now an overflow error (!) I'm not able to reproduce locally:
|
Line 73 is just a long vector of small ints being read in:
Could this be a bug in julia about the way it does hcat? |
Actually, looks like it might be because of this issue: JuliaLang/julia#11320 We could change the test to make the matrix smaller, if that's confirmed to be the issue. |
How close are we to merging this in? |
There are two remaining issues I'm aware of:
|
If we fix the scaling bug then we should just merge and I will submit a new PR with a smaller test that doesn't cause an overflow. There's no need for that test to be 445 x 148 dimensions. (I don't think I can add commits to this PR for that). |
Responses to each of @bodono's three comments:
|
Well then should MathProgBase do the scaling? If it's exposing a consistent API for conic programming then it's responsible for the nitty gritty differences between solver APIs. Who has the power to merge this in? |
Just wanted to verify that we have no new errors before merging it in. |
@bodono, I believe that the |
This fix adds an option to warmstart solutions to SCS. Setting the warmstart option to true now doesn't cause a segfault, and actually does warmstart it. Also added a MathProgBase-style
setwarmstart!
method, in which dual_sol and slack can be set via keyword arguments. Usage examples are in the test fileoptions.jl
.