From 1a4fd7e7d08ca37a7af064e8e5c3d890eda7efb7 Mon Sep 17 00:00:00 2001 From: guilhermebodin Date: Tue, 26 Oct 2021 19:08:44 -0300 Subject: [PATCH] fix is_empty --- src/structures.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/structures.jl b/src/structures.jl index a485027..ce649a9 100644 --- a/src/structures.jl +++ b/src/structures.jl @@ -54,7 +54,10 @@ mutable struct PrimalDualMap{T} end function is_empty(primal_dual_map::PrimalDualMap{T}) where {T} - return isempty(primal_dual_map.primal_var_dual_con) && + return isempty(primal_dual_map.constrained_var_idx) && + isempty(primal_dual_map.constrained_var_dual) && + isempty(primal_dual_map.constrained_var_zero) && + isempty(primal_dual_map.primal_var_dual_con) && isempty(primal_dual_map.primal_con_dual_var) && isempty(primal_dual_map.primal_con_dual_con) && isempty(primal_dual_map.primal_con_constants) &&