mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-12-25 18:25:30 +01:00
remove Memento's solverlog
This commit is contained in:
parent
0dfd85adba
commit
21bff490dd
@ -129,8 +129,6 @@ function λandP(name::String, SDP::JuMP.Model, varλ, varP, warmstart=true)
|
|||||||
ws = nothing
|
ws = nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
solver_log = setup_logging(name, :solverlog)
|
|
||||||
|
|
||||||
function f()
|
function f()
|
||||||
Base.Libc.flush_cstdio()
|
Base.Libc.flush_cstdio()
|
||||||
λ, P, w = solve_SDP(SDP, varλ, varP, warmstart=ws)
|
λ, 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
|
return λ, P, w
|
||||||
end
|
end
|
||||||
|
|
||||||
λ, P, warmstart = redirect_stdout(f, solver_log.handlers["solverlog"].io)
|
solverlog = open(filename(name, :solverlog),"a+")
|
||||||
|
λ, P, warmstart = redirect_stdout(f, solverlog)
|
||||||
delete!(solver_log.handlers, "solverlog")
|
close(solverlog)
|
||||||
|
|
||||||
if λ > 0
|
if λ > 0
|
||||||
save(filename(name, :λ), "λ", λ)
|
save(filename(name, :λ), "λ", λ)
|
||||||
|
Loading…
Reference in New Issue
Block a user