You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The box approximation from a vertex representation can be computed more efficiently than evaluating the support function in all 2n directions on all m vertices. The idea is to create the box incrementally: Start with the first vertex and then extend the bounds for each new vertex.
low =copy(vertices[1])
high =copy(vertices[1])
for v in vertices[2:m]
for i in1:n
if v[i] < high[i]
high[i] = v[i]
elseif v[i] > low[i]
low[i] = v[i]
endendendreturnHyperrectangle(low=low, high=high)
The crucial part is the elseif: If a vertex extends the upper bound in dimension i, it cannot extend the lower bound in the same dimension.
In fact, this idea generalizes to parallelotopes with fixed directions.
The text was updated successfully, but these errors were encountered:
The box approximation from a vertex representation can be computed more efficiently than evaluating the support function in all
2n
directions on allm
vertices. The idea is to create the box incrementally: Start with the first vertex and then extend the bounds for each new vertex.The crucial part is the
elseif
: If a vertex extends the upper bound in dimensioni
, it cannot extend the lower bound in the same dimension.In fact, this idea generalizes to parallelotopes with fixed directions.
The text was updated successfully, but these errors were encountered: