Skip to content

Commit

Permalink
Fix Silent set to false after optimize where it is set to true (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 8, 2023
1 parent e01818b commit 11eec36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -871,9 +871,8 @@ function MOI.optimize!(model::Optimizer)
end
copy_parameters(model)
inner = model.inner::IpoptProblem
if model.silent
AddIpoptIntOption(inner, "print_level", 0)
end
# The default print level is `5`
AddIpoptIntOption(inner, "print_level", model.silent ? 0 : 5)
# Other misc options that over-ride the ones set above.
for (name, value) in model.options
if value isa String
Expand Down

0 comments on commit 11eec36

Please sign in to comment.