Skip to content

Commit

Permalink
Merge pull request #805 from JuliaReach/schillic/overapproximate
Browse files Browse the repository at this point in the history
Define `box_approximation` for `AbstractReachSet`s and `AbstractFlowpipe`s
  • Loading branch information
schillic authored Mar 17, 2024
2 parents 0a3f6f5 + dfe2f8c commit 428cbd5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Flowpipes/AbstractFlowpipe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,9 @@ end

Base.:(F::AbstractFlowpipe, X::LazySet) = all(R X for R in F)
Base.:(F::AbstractFlowpipe, Y::AbstractLazyReachSet) = all(R set(Y) for R in F)

# ------------------------------
# Methods to overapproximate
# ------------------------------

box_approximation(F::AbstractFlowpipe; kwargs...) = overapproximate(F, Hyperrectangle; kwargs...)
6 changes: 6 additions & 0 deletions src/ReachSets/AbstractReachSet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -286,3 +286,9 @@ end
method::AbstractIntersectionMethod)
return _intersection(set(R), X, method)
end

# ------------------------------
# Methods to overapproximate
# ------------------------------

box_approximation(R::AbstractReachSet; kwargs...) = overapproximate(R, Hyperrectangle; kwargs...)

0 comments on commit 428cbd5

Please sign in to comment.