Skip to content

Commit

Permalink
Replace CenteredPolyhedron by Polyhedra
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Sep 18, 2020
1 parent 23233c6 commit b3722cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/abstraction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ end

include("sorted_vector_set.jl")
include("rectangle.jl")
include("polyhedron.jl")
include("grid.jl")
include("domain.jl")
include("controlsystem.jl")
Expand Down
17 changes: 0 additions & 17 deletions src/polyhedron.jl

This file was deleted.

3 changes: 2 additions & 1 deletion src/symbolicmodel.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Polyhedra
abstract type SymbolicModel{N,M} end

struct SymbolicModelList{N,M,S1<:Domain{N},S2<:Domain{M},A<:Automaton} <: SymbolicModel{N,M}
Expand Down Expand Up @@ -157,7 +158,7 @@ function compute_symmodel_from_controlsystem!(symmodel::SymbolicModel{N},
Fx, DFx = contsys.linsys_map(x, _H_, u, tstep)
A = inv(DFx)
b = abs.(A)*Fr .+ 1.0
HP = CenteredPolyhedron(A, b)
HP = Polyhedra.hrep(A, b)
# TODO: can we improve abs.(DFx)*_ONE_?
rad = contsys.measnoise + abs.(DFx)*_ONE_ .+ Fe
rectI = get_pos_lims_outer(Xdom.grid, HyperRectangle(Fx - rad, Fx + rad))
Expand Down

0 comments on commit b3722cc

Please sign in to comment.