mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-27 01:10:28 +01:00
add and remove log Handler in the same function (solve_SDP)
This commit is contained in:
parent
9a295da1bd
commit
87cfb742bf
@ -98,6 +98,8 @@ function κandA(name::String, sdp_constraints, Δ::GroupAlgebraElement, solver::
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
remove_handler(solver_logger, "solver_log")
|
||||||
|
|
||||||
κ_fname, A_fname = κSDPfilenames(name)
|
κ_fname, A_fname = κSDPfilenames(name)
|
||||||
if κ > 0
|
if κ > 0
|
||||||
save(κ_fname, "κ", κ)
|
save(κ_fname, "κ", κ)
|
||||||
|
@ -84,7 +84,6 @@ function solve_SDP(SDP_problem, solver)
|
|||||||
t = @timed solution_status = JuMP.solve(SDP_problem)
|
t = @timed solution_status = JuMP.solve(SDP_problem)
|
||||||
info(logger, timed_msg(t))
|
info(logger, timed_msg(t))
|
||||||
Base.Libc.flush_cstdio()
|
Base.Libc.flush_cstdio()
|
||||||
remove_handler(solver_logger, "solver")
|
|
||||||
|
|
||||||
redirect_stdout(o)
|
redirect_stdout(o)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user