Skip to content

Commit

Permalink
Merge pull request #3444 from JuliaReach/schillic/overapproximate
Browse files Browse the repository at this point in the history
Generalize order-reducing overapproximate method
  • Loading branch information
schillic authored Apr 22, 2024
2 parents 0860643 + 9968522 commit 06d02cb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Approximations/overapproximate_zonotope.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""
overapproximate(Z::Zonotope, ::Type{<:Zonotope}, r::Union{Integer, Rational})
overapproximate(Z::AbstractZonotope, ::Type{<:Zonotope}, r::Real)
Reduce the order of a zonotope.
Reduce the order of a zonotopic set.
### Input
- `Z` -- zonotope
- `Z` -- zonotopic set
- `Zonotope` -- target set type
- `r` -- desired order
Expand All @@ -17,8 +17,7 @@ A new zonotope with `r` generators, if possible.
This method falls back to `reduce_order` with the default algorithm.
"""
function overapproximate(Z::Zonotope, ::Type{<:Zonotope},
r::Union{Integer,Rational})
function overapproximate(Z::AbstractZonotope, ::Type{<:Zonotope}, r::Real)
return reduce_order(Z, r)
end

Expand Down

0 comments on commit 06d02cb

Please sign in to comment.