Comments (7)
Julia's alias is called issubset
(see here). This works out of the box.
from lazysets.jl.
Possibly helpful: Boolean operations on polygons
from lazysets.jl.
I would really like to have #58 here.
Now we have to provide
Hyperrectangle ⊆ Hyperrectangle
Hyperrectangle ⊆ BallInf
BallInf ⊆ Hyperrectangle
BallInf ⊆ BallInf
and the algorithm is almost exactly the same except thatBallInf
's radius is a scalar.
If instead we had a common supertype, we could have a functionradius(dim)
that returns the radius in a given dimension and thus write one function for all four cases (with no performance penalty).
from lazysets.jl.
The following table shows straight-forward implementations for most basic set types.
There might be more efficient implementations, but for the moment I am happy with any solution.
"v_i ∈ S" means "check containment of every vertex in set S"; here we need vertices_list
and ∈
.
↓ ⊆ → | Ball1 | Ball2 | Ballp | Hyperrectangle/BallInf | Polygon | Singleton |
---|---|---|---|---|---|---|
Ball2 | simple | interval hull | c = S & r = 0 | |||
Ballp | interval hull | c = S & r = 0 | ||||
Ball1 | v_i ∈ S | v_i ∈ S | v_i ∈ S | v_i ∈ S | v_i ∈ S | c = S & r = 0 |
HR/BI | v_i ∈ S | v_i ∈ S | v_i ∈ S | box containment | v_i ∈ S | c = S & r = 0 |
Polygon | v_i ∈ S | v_i ∈ S | v_i ∈ S | v_i ∈ S | v_i ∈ S | v_i ∈ S |
Singleton | x ∈ S | x ∈ S | x ∈ S | x ∈ S | x ∈ S | x ∈ S |
from lazysets.jl.
I also want to get an optional witness if the answer is false
. I will add this functionality on top.
from lazysets.jl.
I also want to get an optional witness if the answer is false. I will add this functionality on top.
Done.
from lazysets.jl.
Let us continue with the missing cases another time. I created #114 for this purpose.
from lazysets.jl.
Related Issues (20)
- Add docs page about paraview output
- Problems when using minkowski_sum by parallel computation (Threads.@threads) HOT 8
- convert from Zonotope to VPolytope fails due to inconsistent argument name
- Support vector of Polygon HOT 2
- Use and document fast vertices_list for 2D zonotopes
- Caching the JuMP model in linprog HOT 9
- Update "How to cite" in manual
- Template polyhedron (TPolyhedron)
- vertices_list returns Float64 type for Float32 type input
- Containment check in a LinearMap can fail with SingularException
- Inclusion check of flat zonotope in equivalent line segment fails HOT 1
- convex_hull of two 1D points modifies points in-place
- Inclusion of zonotope without generators in polyhedron
- Faster extrema of HPolytope/HPolyhedron in 1D
- Unify switching logic for solvers
- Fix piracies
- Fix unbound args
- Convex hull algorithm in 2D sensitive to numeric precision HOT 1
- Convex hull algorithm from Polyhedra.jl produces invalid constraints HOT 2
- Plot recipe for lazy operations of unions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazysets.jl.