Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Approximation of Rectification of polytope #1435

Closed
schillic opened this issue Jun 13, 2019 · 0 comments · Fixed by #2233
Closed

Approximation of Rectification of polytope #1435

schillic opened this issue Jun 13, 2019 · 0 comments · Fixed by #2233
Assignees
Labels
feature ➕ A new feature

Comments

@schillic
Copy link
Member

schillic commented Jun 13, 2019

The claim below is invalid as shown by the counterexample Ball1{Float64,Array{Float64,1}}([0.546237073661734, 0.11805252160250493], 0.1432864241448218) (in blue) and the convex hull of the rectified vertices (dark).

counterexample

The error is that intersections of facets with the "dimension hyperplanes" (the axes in 2D) become additional vertices.


Let P = CHull({x ∈ vertices(P)}) be a polytope. Then CHull(Rectification(P)) = CHull({rectify(x) | x ∈ vertices(P)}). In particular, vertices(CHull(Rectification(P))) ⊆ {rectify(x) | x ∈ vertices(P)} ⊆ CHull(Rectification(P)).

Here is an (invalid) implementation.

function vertices_list(R::Rectification; prune::Bool=true)
    vlist = rectify.(vertices_list(R.X))
    if prune
        convex_hull!(vlist)
    end
    return vlist
end

This can also be used for overapproximate(R::Rectification, VPolytope) = VPolytope(vertices_list(R)).


For easier development, the set can be plotted like this:

function concretize(R::Rectification)
    return LazySets.to_union_of_projections(R, true)
end

plot([X for X in array(concretize(R))])
@schillic schillic added good first issue 🐤 Good for newcomers feature ➕ A new feature labels Jun 13, 2019
@schillic schillic removed the good first issue 🐤 Good for newcomers label Jul 17, 2020
@schillic schillic changed the title vertices_list of ConvexHull of Rectification Underapproximation of Rectification of polytope Jul 17, 2020
@schillic schillic changed the title Underapproximation of Rectification of polytope Approximation of Rectification of polytope Jul 18, 2020
@schillic schillic self-assigned this Jul 18, 2020
schillic added a commit that referenced this issue Jul 18, 2020
#1435 - Approximation of Rectification of polytope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ➕ A new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant