Closed mforets closed 3 years ago
The fix would be to force the same vector type in
Ax_leq_b = [Polyhedra.HalfSpace(vcat(zeros(N, m), c.a), c.b) for c in constraints_list(P)]
y_eq_Mx = [Polyhedra.HyperPlane(vcat(-id_m[i, :], M[i, :]), zero(N)) for i in 1:m]
This issue is basicallty the same as in "lift"
, see https://github.com/JuliaReach/LazySets.jl/issues/1942.
This works in master
now.
If
M
is a dense matrix and ifP
is a polyhedron whose constraints are defined by sparse arrays, elimination fails becausePhrep = Polyhedra.hrep(y_eq_Mx, Ax_leq_b)
gets mixed types.For example,
gives