From 57b61effe69dd187035b2b9ee5f75f1943ffc760 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Fri, 1 May 2026 13:49:00 +1200 Subject: [PATCH] Fix querying MOI.DualObjectiveValue --- src/MOI/MOI_wrapper.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/MOI/MOI_wrapper.jl b/src/MOI/MOI_wrapper.jl index 837c7ba1..fde1f4a4 100644 --- a/src/MOI/MOI_wrapper.jl +++ b/src/MOI/MOI_wrapper.jl @@ -3744,11 +3744,10 @@ end MOI.DualObjectiveValue =# -# TODO(odow): this is wrong function MOI.get(model::Optimizer, attr::MOI.DualObjectiveValue) _throw_if_optimize_in_progress(model, attr) MOI.check_result_index_bounds(model, attr) - return MOI.get(model, MOI.ObjectiveValue(attr.result_index)) + return MOI.Utilities.get_fallback(model, attr, Float64) end #=