-
```julia
function bouncing_ball()
automaton = LightAutomaton(1)
A = [0.0 1.0; 0.0 0.0]
B = reshape([0.0, -1.0], (2, 1))
U = Singleton([1.0])
inv = HalfSpace([-1.0, 0.0], 0.0)…
-
```julia
julia> Z = Zonotope([10.1, -0.05], sparse([1, 2, 1], [1, 3, 4], [0.1, 0.1, 0.1], 2, 4))
Zonotope{Float64}([10.1, -0.05],
[1, 1] = 0.1
[2, 3] = 0.1
[1, 4] = 0.1)
julia> co…
-
-
```julia
julia> using Test, Revise, LazySets, LinearAlgebra
julia> N = Float64;
julia> Z = Zonotope(zeros(N, 3), Matrix(N(1)*I, 3, 3))
Zonotope{Float64}([0.0, 0.0, 0.0], [1.0 0.0 0.0; 0.0 1.0 0.…
-
```julia
julia> Z = rand(Zonotope, dim=3)
Zonotope{Float64}([0.986558, -0.597589, 2.12338], [0.827946 1.425 … 2.23784 1.19382; -0.0368336 -0.561346 … 0.527 1.34382; 0.125808 0.716952 …
-0.903953 -…
-
Currently we have this implementation:
```julia
function convert(::Type{HPolytope}, P::AbstractPolytope)
return convert(HPolytope, convert(VPolytope, P))
end
```
It would be better to not us…
-
See [this paper](http://www.i6.in.tum.de/Main/Publications/Althoff2009b.pdf) for an algorithm to convert (parallelotopes or) zonotopes to polytopes.
-
See https://github.com/JuliaReach/LazySets.jl/pull/958 and [this comment](https://github.com/JuliaReach/LazySets.jl/pull/958#issuecomment-454857398).
-
We have an initial implementation for reachability of a hybrid with affine dynamics [here](https://juliareach.github.io/LazySets.jl/latest/man/reach_zonotopes_hybrid.html).
-
We can extend Bases' `convert` function to a subset of `LazySet` types, e.g. practical to convert `BallInf` (or `Hyperrectangle`) to `Zonotope`.