From 3798850a9fc86fbaaa9c16a257af2cb848cf107c Mon Sep 17 00:00:00 2001 From: odow Date: Mon, 25 Jul 2022 08:48:07 +1200 Subject: [PATCH] Fix Silent of LPs --- src/MOI_wrapper/MOI_wrapper.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MOI_wrapper/MOI_wrapper.jl b/src/MOI_wrapper/MOI_wrapper.jl index 3e4fbbe..e531779 100644 --- a/src/MOI_wrapper/MOI_wrapper.jl +++ b/src/MOI_wrapper/MOI_wrapper.jl @@ -134,6 +134,7 @@ function MOI.set(model::Optimizer, ::MOI.Silent, value::Bool) end log_level = value ? "0" : get(model.params, "logLevel", "1") Cbc_setParameter(model, "logLevel", log_level) + Cbc_setParameter(model, "slogLevel", log_level) model.silent = value return end @@ -170,6 +171,7 @@ function MOI.empty!(model::Optimizer) end if model.silent Cbc_setParameter(model, "logLevel", "0") + Cbc_setParameter(model, "slogLevel", "0") end empty!(model.variable_start) model.has_solution = false