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

logging keyword is "solver_log"

This commit is contained in:
kalmar 2017-03-20 22:11:57 +01:00
parent 87cfb742bf
commit 65f2736588

View File

@ -82,14 +82,13 @@ function κandA(name::String, sdp_constraints, Δ::GroupAlgebraElement, solver::
rm("$name/solver.log") rm("$name/solver.log")
end end
add_handler(solver_logger, DefaultHandler("./$name/solver.log", DefaultFormatter("{date}| {msg}")), "solver") add_handler(solver_logger, DefaultHandler("./$name/solver.log", DefaultFormatter("{date}| {msg}")), "solver_log")
info(logger, "Creating SDP problem...") info(logger, "Creating SDP problem...")
t = @timed SDP_problem = create_SDP_problem(sdp_constraints, Δ; upper_bound=upper_bound) t = @timed SDP_problem = create_SDP_problem(sdp_constraints, Δ; upper_bound=upper_bound)
info(logger, timed_msg(t)) info(logger, timed_msg(t))
κ = 0.0 κ = 0.0
A = nothing
while κ == 0.0 while κ == 0.0
κ, A = try κ, A = try
solve_SDP(SDP_problem, solver) solve_SDP(SDP_problem, solver)