overwrite solver log instead of appending

This commit is contained in:
kalmar 2017-03-15 20:16:19 +01:00
parent 59cea54757
commit d7b0dd763b
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ end
function κandA(name::String, sdp_constraints, Δ::GroupAlgebraElement, solver::AbstractMathProgSolver; upper_bound=Inf)
info(logger, "Creating SDP problem...")
if isfile("$name/solver.log")
rm("$name/solver.log")
end
t = @timed SDP_problem = create_SDP_problem(sdp_constraints, Δ; upper_bound=upper_bound)
info(logger, timed_msg(t))