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

remove Memento's solverlog

This commit is contained in:
kalmarek 2018-08-18 23:47:15 +02:00
parent 0dfd85adba
commit 21bff490dd

View File

@ -129,8 +129,6 @@ function λandP(name::String, SDP::JuMP.Model, varλ, varP, warmstart=true)
ws = nothing
end
solver_log = setup_logging(name, :solverlog)
function f()
Base.Libc.flush_cstdio()
λ, P, w = solve_SDP(SDP, varλ, varP, warmstart=ws)
@ -138,9 +136,9 @@ function λandP(name::String, SDP::JuMP.Model, varλ, varP, warmstart=true)
return λ, P, w
end
λ, P, warmstart = redirect_stdout(f, solver_log.handlers["solverlog"].io)
delete!(solver_log.handlers, "solverlog")
solverlog = open(filename(name, :solverlog),"a+")
λ, P, warmstart = redirect_stdout(f, solverlog)
close(solverlog)
if λ > 0
save(filename(name, ), "λ", λ)