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 Aug 24, 2024
1 parent 0f2f894 commit ce72ee7
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 isnothing(clist)
# constraints are contradictory
return false
end
m = length(clist)
end
if m != 2
Expand Down

0 comments on commit ce72ee7

Please sign in to comment.