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 Jul 26, 2024
1 parent 69093bd commit dc1fe2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Sets/HPolyhedron/is_hyperplanar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ function is_hyperplanar(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 dc1fe2f

Please sign in to comment.