Home > mpt > @polytope > chebyball.m

chebyball

PURPOSE ^

CHEBYBALL Computes center and radius of the largest ball inscribed in a polytope

SYNOPSIS ^

function [xc,R,lambda] = chebyball(P,Options,force)

DESCRIPTION ^

CHEBYBALL Computes center and radius of the largest ball inscribed in a polytope

 [xc,R,lambda] = chebyball(P,Options,force)

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 Returns center and radius of a largest ball that can be inscribed in a polytope P

 USAGE:
   [xc, Rc] = chebyball(P)
   [xc, Rc] = chebyball(P, Options)
   [xc, Rc, lambda] = chebyball(P)

 NOTE: usually the 'POLYTOPE' constructor computes these values automatically.
       If they are already stored in the internal structure, no computation will
       be performed unless force=1

 For nice plots, call:
   mpt_plotArrangement(P);
   hold on
   [xc,R] = chebyball(P);
   plotellip(eye(2)/R^2,xc);

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 P                 - Polytope
 Options.lpsolver  - LP solver to use (see help mpt_solveLP)
 force             - force recomputing of the Chebyshev's ball

 Note: If Options is missing or some of the fields are not defined, the default
       values from mptOptions will be used

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------
 xc                - Center of Chebyshev's ball
 R                 - Radius of Chebyshev's ball
 lambda            - Set of lagrangian multipliers

 see also POLYTOPE

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003