1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-14 06:10:28 +01:00

solve_SDP just solve

This commit is contained in:
kalmar 2017-06-04 20:26:05 +02:00
parent ae5b37e177
commit 9dfcb49d00

View File

@ -77,13 +77,9 @@ function create_SDP_problem(Δ::GroupRingElem, matrix_constraints; upper_bound=I
return m, λ, P
end
function solve_SDP(SDP_problem, solver)
JuMP.setsolver(SDP_problem, solver)
function solve_SDP(SDP_problem)
info(logger, Base.repr(SDP_problem))
# @time MathProgBase.writeproblem(SDP_problem, "/tmp/SDP_problem")
out = STDOUT
# to change buffering mode of stdout to _IOLBF (line bufferin)
# see https://github.com/JuliaLang/julia/issues/8765
ccall((:printf, "libc"), Int, (Ptr{UInt8},), "\n");
@ -101,7 +97,5 @@ function solve_SDP(SDP_problem, solver)
end
info(logger, solution_status)
λ = JuMP.getvalue(JuMP.getvariable(SDP_problem, ))
P = JuMP.getvalue(JuMP.getvariable(SDP_problem, :P))
return λ, P
return 0
end