From 3f3199e8da5d2e898db6e92b4f968f091b18d13d Mon Sep 17 00:00:00 2001 From: sandyspiers Date: Tue, 24 Feb 2026 11:57:55 +0800 Subject: [PATCH] add constructor kwarg set_inner_silent defaults to true --- src/MultiObjectiveAlgorithms.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MultiObjectiveAlgorithms.jl b/src/MultiObjectiveAlgorithms.jl index c7d16ef..14246f2 100644 --- a/src/MultiObjectiveAlgorithms.jl +++ b/src/MultiObjectiveAlgorithms.jl @@ -181,9 +181,9 @@ mutable struct Optimizer <: MOI.AbstractOptimizer solve_time_inner::Float64 optimizer_factory::Any - function Optimizer(optimizer_factory) + function Optimizer(optimizer_factory; set_inner_silent = true) inner = MOI.instantiate(optimizer_factory; with_cache_type = Float64) - if MOI.supports(inner, MOI.Silent()) + if set_inner_silent && MOI.supports(inner, MOI.Silent()) MOI.set(inner, MOI.Silent(), true) end return new(