From 7eb1fe6bdc171b64b72a6595f697bb5cb84a81df Mon Sep 17 00:00:00 2001 From: Michel Schanen Date: Fri, 3 Feb 2023 14:23:18 -0600 Subject: [PATCH] EmptyBlockModel always returns solutioin status MOI.Optimal --- src/backends.jl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/backends.jl b/src/backends.jl index 9036616..7ecb5bc 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -112,7 +112,13 @@ function init!(block::EmptyBlockModel, algparams::AlgParams) end function set_objective!(block::EmptyBlockModel, algparams::AlgParams, primal::AbstractPrimalSolution, dual::AbstractDualSolution) end -function get_solution(block::EmptyBlockModel) end +function get_solution(block::EmptyBlockModel) + # Empty block is always optimal + solution = ( + status=MOI.OPTIMAL, + ) + return solution +end ### Implementation of JuMPBlockBackend struct JuMPBlockBackend <: AbstractBlockModel