-
Notifications
You must be signed in to change notification settings - Fork 21
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
Problem solving a simple SDP in ProximalAlgorithms.jl #36
Comments
@Shuvomoy I think the problem is that using LinearAlgebra
x0 = Symmetric(zeros(10, 10)) I hope that helps, let me know how that works out for you, I'm really curious! |
Thanks so much for your quick response! Yes, I just tried your suggestion, but I am getting a new error now. Full Code:
Error I am getting now:
Please let me know if I am missing anything. |
I'm assuming you're using v0.3.1. The problem appears to be in this line: apparently, setting non-diagonal entries in a Thank you for opening this, the first solution that comes to mind is to actually fix this on the ProximalOperators side, by adding a wrapper that packs/unpacks a using ProximalOperators
using LinearAlgebra
function ProximalOperators.prox!(y::Array{R, 2}, f::IndPSD, x::Array{R, 2}, gamma) where R
prox!(Symmetric(y), f, Symmetric(x), gamma)
end and then directly passing matrices (not wrapped in Let me know if that works! |
Thanks so much for the suggestion, it works just fine now! In case if it helps someone else, the working full code is below.
Thanks again! |
I'm glad that helped. I'll leave this open and open an issue in ProximalOperators linking to this, it makes sense to have this wrapping/unwrapping directly there. Of course there should be the complex case as well, which will use |
@Shuvomoy FYI, the patch above was added to ProximalOperators, see JuliaFirstOrder/ProximalOperators.jl#101. Closing this, thanks again for reporting the issue! |
Great, thanks so much for your help! I am finding both |
I am having issues running the following trivial problem in ProximalAlgorithms.jl:
where I am getting the following error:
Please let me know how I can resolve the issue.
The text was updated successfully, but these errors were encountered: