mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-26 09:00:28 +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
|
||||
|
||||
optimize!(m)
|
||||
Base.Libc.flush_cstdio()
|
||||
|
||||
status = termination_status(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
|
||||
redirect_stdout(logfile) do
|
||||
status, warmstart = PropertyT.solve(m, with_optimizer, warmstart)
|
||||
Base.Libc.flush_cstdio()
|
||||
status, warmstart
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user