Skip to content

Commit a7d86c8

Browse files
committed
remove method for 'IntervalBox'es
1 parent 52a0b7e commit a7d86c8

File tree

4 files changed

+2
-44
lines changed

4 files changed

+2
-44
lines changed

src/Approximations/init.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
function __init__()
22
@require Expokit = "a1e7a1ef-7a5d-5822-a38c-be74e1bb89f4" (nothing,)
33
@require ExponentialUtilities = "d4d017d3-3776-5f7e-afef-a10c40355c18" (nothing,)
4-
@require IntervalBoxes = "43d83c95-ebbb-40ec-8188-24586a1458ed" include("init_IntervalBoxes.jl")
54
@require IntervalConstraintProgramming = "138f1668-1576-5ad7-91b9-7425abbf3153" include("init_IntervalConstraintProgramming.jl")
65
@require IntervalMatrices = "5c1f47dc-42dd-5697-8aaa-4d102d140ba9" include("init_IntervalMatrices.jl")
76
@require Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9" include("init_Ipopt.jl")

src/Approximations/init_IntervalBoxes.jl

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Approximations/overapproximate.jl

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -676,47 +676,6 @@ function overapproximate(P::AbstractSparsePolynomialZonotope{N}, ::Type{<:VPolyt
676676
return VPolytope(vlist)
677677
end
678678

679-
function load_IntervalBoxes_overapproximate_paving()
680-
return quote
681-
import .IntervalBoxes as IB
682-
683-
"""
684-
overapproximate(boundary::Vector{<:IB.IntervalBox}, dirs::AbstractDirections)
685-
686-
Overapproximate a vector of `IntervalBox`es ("paving") with a polyhedron in constraint
687-
representation.
688-
689-
### Input
690-
691-
- `boundary` -- vector of `IntervalBox`es
692-
- `dirs` -- template directions
693-
694-
### Output
695-
696-
An overapproximation in constraint representation (`HPolyhedron`) with constraints in
697-
direction `dirs`.
698-
699-
### Algorithm
700-
701-
This implementation first converts the boxes into `Hyperrectangle`s and then calculates the
702-
support function of the set along each direction in `dirs` to compute the `HPolyhedron`
703-
constraints.
704-
"""
705-
function overapproximate(boundary::Vector{<:IB.IntervalBox}, dirs::AbstractDirections)
706-
# enclose outer approximation
707-
Uouter = UnionSetArray(convert.(Hyperrectangle, boundary))
708-
constraints = [HalfSpace(d, ρ(d, Uouter)) for d in dirs]
709-
return HPolyhedron(constraints)
710-
end
711-
712-
# alias with HPolyhedron type as second argument
713-
function overapproximate(boundary::Vector{<:IB.IntervalBox}, ::Type{<:HPolyhedron},
714-
dirs::AbstractDirections)
715-
return overapproximate(boundary, dirs)
716-
end
717-
end
718-
end # quote / load_IntervalBoxes_overapproximate_paving
719-
720679
"""
721680
# Extended help
722681

test/Approximations/overapproximate.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,8 @@ for N in [Float64]
675675
# (`invokelatest` to avoid world-age issue)
676676
inner, boundary = invokelatest(IntervalConstraintProgramming.pave, dom, C, 0.01)
677677
dirs = OctDirections(2)
678-
H = overapproximate(boundary, dirs)
678+
Uouter = UnionSetArray(convert.(Hyperrectangle, boundary))
679+
H = overapproximate(Uouter, dirs)
679680
B2 = Ball2(N[0, 0], N(1))
680681
@test B2 H
681682
end

0 commit comments

Comments
 (0)