Skip to content

Commit

Permalink
Merge pull request #126 from jump-dev/fix-isempty
Browse files Browse the repository at this point in the history
fix is_empty
  • Loading branch information
guilhermebodin authored Oct 26, 2021
2 parents 8b1b160 + 1a4fd7e commit a210f62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/structures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit a210f62

Please sign in to comment.