Compute the Chebyshev centre of the Polyhedron.
s = P.chebyCenter
s = P.chebyCenter(facet)
s = P.chebyCenter(facet,bound)
s = chebyCenter(P,facet,bound)
P |
Polyhedron in H-representation. Class: Polyhedron |
facet |
Vector of indices specifying a subset of facets for computing the Chebyshev centre. Class: double Default: [] |
bound |
Upper bound on the radius of the inscribed ball. Class: double Default: Inf |
s |
Structure with outputs from the Chebyshev centre optimization problem. Class: struct |
s.exitflag |
Informs if the optimization problem was terminated properly. Class: double |
s.x |
Centre of the ball inscribed in polyhedron P. Class: double |
s.r |
Radius of the ball inscribed in polyhedron P. Class: double |
P = ExamplePoly.randHrep;Compute the centre of the ball inscribed ball
s = P.chebyCenter
s = exitflag: 1 x: [2x1 double] r: 0.728566101748245Construct the circle out of the result.
x = sdpvar(2,1);
F = [norm(x-s.x)<=s.r];
circle = YSet(x,F);plot the sets
plot(P); hold on; plot(circle);
◀ | interiorpoint | slice | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch