Skip to content

Commit db9df21

Browse files
committed
fix box_approximation of Intersection with unbounded component
1 parent 4057c84 commit db9df21

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/LazyOperations/Intersection.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,18 @@ function ρ(d::AbstractVector, cap::Intersection{N,S1,S2};
535535
return ρ(d, HPolyhedron([constraints_list(cap.X); constraints_list(cap.Y)]))
536536
end
537537

538+
function _low(cap::Intersection{N}, i::Int) where {N}
539+
n = dim(cap)
540+
d = SingleEntryVector(i, n, -one(N))
541+
return -ρ(d, cap; algorithm="simple")
542+
end
543+
544+
function _high(cap::Intersection{N}, i::Int) where {N}
545+
n = dim(cap)
546+
d = SingleEntryVector(i, n, one(N))
547+
return ρ(d, cap; algorithm="simple")
548+
end
549+
538550
"""
539551
isbounded(cap::Intersection)
540552

0 commit comments

Comments
 (0)