JuliaPolyhedra / Polyhedra.jl

Polyhedral Computation Interface
Other
172 stars 27 forks source link

Check if a polyhedron in other polyhedron #303

Closed XLVII-47 closed 2 years ago

XLVII-47 commented 2 years ago
A = [1 0 ; 0 1; -1 0; 0 -1 ; -1 -1]
a = [3,3,3,3,3]

p=Polyhedra.polyhedron(hrep(A,a))

##CHECK

p == intersect(p,p)

it must be true but gives false

how to check if a polyhedra is inside another polytope

blegat commented 2 years ago

You can do like issubseth in https://github.com/JuliaPolyhedra/Polyhedra.jl/pull/304