Computes outer bounding box of the convex set.
B = outerApprox(S)
B = S.outerApprox
S |
Any set derived from ConvexSet class, e.g. YSet or Polyhedron. Class: ConvexSet |
B |
Bounding box ![]() Class: Polyhedron |
x = sdpvar(2,1);
F = [x'*x<=1];
S = YSet(x,F);The bounding box for the circle is a cube with diameter 1.
B = S.outerApprox
Polyhedron in R^2 with representations: H-rep (redundant) : Inequalities 4 | Equalities 0 V-rep : Unknown (call computeVRep() to compute) Functions : nonePlot the sets
S.plot; hold on; B.plot
P = Polyhedron('A',randn(9,3),'b',ones(9,1),'Ae', randn(1,3),'be',0.5);Compute the bounding box
B = P.outerApprox;Plot the sets such that the outer approximation is wired.
P.plot; hold on; B.plot('wire',true,'LineWidth',3)
◀ | distance | separate | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch