Skip to content

Commit

Permalink
test for return status of 'remove_redundant_constraints'
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Sep 28, 2024
1 parent fa3bcd3 commit 5709add
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Sets/HPolyhedron/ishyperplanar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ function ishyperplanar(P::HPolyhedron)
if m > 2
# try to remove redundant constraints
clist = remove_redundant_constraints(clist)
if isempty(clist)
# constraints are contradictory
return false
end
m = length(clist)
end
if m != 2
Expand Down

0 comments on commit 5709add

Please sign in to comment.