Skip to content

Commit

Permalink
add SecondOrderddtModule
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Feb 9, 2024
1 parent 7f23b9e commit 612e350
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
# ===================================
# ====================================
# Second-order approximation from d/dt
# ===================================

# ====================================
module SecondOrderddtModule

using ..DiscretizationModule
using ..Exponentiation: _exp, _alias, BaseExp, Φ₂
using ..ApplySetops: _apply_setops
using LinearAlgebra
using MathematicalSystems
using LazySets
using Reexport

using ..Exponentiation: _exp, _alias
export SecondOrderddt

@reexport import ..DiscretizationModule: discretize

const CLCS = ConstrainedLinearContinuousSystem

"""
SecondOrderddt{EM, SO, SI, IT, BT} <: AbstractApproximationModel
Expand Down Expand Up @@ -66,10 +76,11 @@ function Base.show(io::IO, alg::SecondOrderddt)
print(io, " - set operations method: $(alg.setops)\n")
print(io, " - symmetric interval hull method: $(alg.sih)\n")
print(io, " - invertibility assumption: $(alg.inv)\n")
return print(io, " - polyhedral computations backend: $(alg.backend)\n")
print(io, " - polyhedral computations backend: $(alg.backend)\n")
return nothing
end

Base.show(io::IO, m::MIME"text/plain", alg::SecondOrderddt) = print(io, alg)
Base.show(io::IO, ::MIME"text/plain", alg::SecondOrderddt) = print(io, alg)

# ------------------------------------------------------------
# SecondOrderddt Approximation: Homogeneous case
Expand Down Expand Up @@ -112,3 +123,5 @@ function _bloat(P::LazySet, ε)
end
return HPolytope(A, bε)
end

end # module
3 changes: 2 additions & 1 deletion src/Discretization/discretization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ include("CorrectionHullModule.jl")
@reexport using ..CorrectionHullModule

# First-order approximation from d/dt
include("SecondOrderddt.jl")
include("SecondOrderddtModule.jl")
@reexport using ..SecondOrderddtModule

# First-order approximation with zonotope
include("FirstOrderZonotopeModule.jl")
Expand Down
1 change: 0 additions & 1 deletion src/Initialization/exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export
VREP,

# Approximation models
SecondOrderddt,
StepIntersect,

# Flowpipes
Expand Down

0 comments on commit 612e350

Please sign in to comment.