Skip to content

Commit e981065

Browse files
authored
#704 - MethodError with projection matrix (#705)
* concrete params in sparse reach set * add test
1 parent cd2b03b commit e981065

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/ReachSets/ContinuousPost/BFFPSV18/reach.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ function reach(problem::Union{IVP{<:CLDS{NUM}, <:LazySet{NUM}},
7878
if output_function == nothing
7979
res_type = SparseReachSet{CartesianProductArray{NUM, LazySet{NUM}}}
8080
else
81-
res_type = SparseReachSet{Hyperrectangle{NUM}}
81+
# by default, this algorithm uses box overapproximation
82+
res_type = SparseReachSet{Hyperrectangle{NUM, Vector{NUM}, Vector{NUM}}}
8283
end
8384
res = (N == nothing) ? Vector{res_type}() : Vector{res_type}(undef, N)
8485

test/Reachability/solve_continuous.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ s = solve(IVP(LCS(A), X0),
7272
# Test reachability options
7373
# ===============================
7474

75+
# projection matrix
76+
M = [1.0 0.0 0.0 0.0; 0.0 1.0 0.0 0.0]
77+
s = solve(IVP(LCS(A), X0), Options(:T=>1.0, :projection_matrix=>M), op=BFFPSV18(=>0.1))
78+
7579
# template directions
7680
s = solve(IVP(LCS(A), X0),
7781
Options(:T=>0.1, :ε_proj=>1e-5, :set_type_proj=>HPolygon),

0 commit comments

Comments
 (0)