Skip to content

box_approximation over interection(<unbounded set>, ::AbstractPolytope) throws assertion error #3844

Closed
@Zinoex

Description

@Zinoex

If computing say box_approximation((Hyperrectangle(;low=[19.5], high=[20.5]) × Universe(1)) ∩ Hyperrectangle(;low=[19.5, 19.0], high=[20.5, 22.0])) (not the most interesting example, I know, but I ran into it with this where I have no control over the LHS of the intersection) then LazySets throws the assertion error: "AssertionError: the first set in the intersection must be bounded". The box approximation over this intersection is however well-defined. The order does not matter due to swap in ρ for Intersections.

The same thing happens for the following example:

box_approximation(Hyperrectangle(;
        low=[-12.0, -12.0, -0.5, -2.5, -0.35, -0.5, -0.05],
        high=[12.0, 12.0, 0.5, 2.5, 0.35, 0.5, 0.05],
    ) ∩ HalfSpace([0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0], 0.1))

Metadata

Metadata

Assignees

Labels

bug 🐛Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions