1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-26 10:35:29 +01:00

create dir for solver log, if necessary

This commit is contained in:
kalmarek 2018-09-05 14:34:48 +02:00
parent 0b8f01e4b5
commit 3dbdd0ed7f

View File

@ -181,6 +181,8 @@ function solve_logged(model::JuMP.Model, varλ::JuMP.Variable, varP, warmstart=n
return λ, P, ws
end
isdir(dirname(solverlog)) || mkpath(dirname(solverlog))
log = open(solverlog, "a+")
λ, P, warmstart = redirect_stdout(f, log)
close(log)