inner_ball {volesti} | R Documentation |
Compute an inscribed ball of a convex polytope
Description
For a H-polytope described by a matrix
and a
-dimensional vector
, s.t.:
, this function computes the largest inscribed ball (Chebychev ball) by solving the corresponding linear program.
For both zonotopes and V-polytopes the function computes the minimum
s.t.:
for all
. Then the ball centered at the origin with radius
is an inscribed ball.
Usage
inner_ball(P)
Arguments
P |
A convex polytope. It is an object from class (a) Hpolytope or (b) Vpolytope or (c) Zonotope or (d) VpolytopeIntersection. |
Value
A -dimensional vector that describes the inscribed ball. The first
coordinates corresponds to the center of the ball and the last one to the radius.
Examples
# compute the Chebychev ball of the 2d unit simplex
P = gen_simplex(2,'H')
ball_vec = inner_ball(P)
# compute an inscribed ball of the 3-dimensional unit cube in V-representation
P = gen_cube(3, 'V')
ball_vec = inner_ball(P)
[Package volesti version 1.1.2-7 Index]