mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-26 17:05:27 +01:00
flush_cstdio immediately after optimize!
This commit is contained in:
parent
477ce3066b
commit
df8b177ef5
@ -206,6 +206,8 @@ function solve(m::JuMP.Model, with_optimizer::JuMP.OptimizerFactory, warmstart=n
|
|||||||
end
|
end
|
||||||
|
|
||||||
optimize!(m)
|
optimize!(m)
|
||||||
|
Base.Libc.flush_cstdio()
|
||||||
|
|
||||||
status = termination_status(m)
|
status = termination_status(m)
|
||||||
|
|
||||||
return status, getwarmstart_scs(m)
|
return status, getwarmstart_scs(m)
|
||||||
@ -219,7 +221,6 @@ function solve(solverlog::String, m::JuMP.Model, with_optimizer::JuMP.OptimizerF
|
|||||||
status, warmstart = open(solverlog, "a+") do logfile
|
status, warmstart = open(solverlog, "a+") do logfile
|
||||||
redirect_stdout(logfile) do
|
redirect_stdout(logfile) do
|
||||||
status, warmstart = PropertyT.solve(m, with_optimizer, warmstart)
|
status, warmstart = PropertyT.solve(m, with_optimizer, warmstart)
|
||||||
Base.Libc.flush_cstdio()
|
|
||||||
status, warmstart
|
status, warmstart
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user