From ed46111e9e83c1e3c3d3465a84d7417712f7aed7 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Wed, 11 Oct 2023 15:43:33 +0200 Subject: [PATCH] Update src/MOI_wrapper.jl --- src/MOI_wrapper.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MOI_wrapper.jl b/src/MOI_wrapper.jl index fc475e8..726d658 100644 --- a/src/MOI_wrapper.jl +++ b/src/MOI_wrapper.jl @@ -914,7 +914,7 @@ function MOI.optimize!(model::Optimizer) model.barrier_iterations = 0 function _moi_callback(args...) # iter_count is args[2] - model.barrier_iterations = max(model.barrier_iterations, args[2]) + model.barrier_iterations = args[2] if model.callback !== nothing return model.callback(args...) end