Home > mpt > extras > geometry > hull.m

hull

PURPOSE ^

HULL Converts vertices/polytope array into an H-representation polytope

SYNOPSIS ^

function [P,Vconv]=hull(V,Options)

DESCRIPTION ^

HULL Converts vertices/polytope array into an H-representation polytope

 [P,Vconv]=hull(V,Options)
 [P,Vconv]=hull(PA,Options)

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 Creates convex hull of vertices or of a polytope array and returns the 
 H-representation of the hull

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 V                      - matrix containing vertices of the polytope
 PA                     - polytope array
 Options.extreme_solver - which method to use for convex hull computation
                          (see help mpt_init for details)
 Options.abs_tol        - absolute tolerance
 Options.roundat        - if CDD is used, it usually helps to round the
                          V-representation of a polytope to certain number of
                          decimal places. This option defines at which decimal
                          point the representation should be rounded.
                          (Default is Options.roundat=14, which means that the
                          representation will be rounded to 14 decimal points)
                          NOTE! rounding is only used if extreme_solver=3
                          NOTE! set Options.roundat=Inf to disable rounding

 Note: Initial values of the Options variable are given by mptOptions 
       (see help mpt_init)

 ---------------------------------------------------------------------------
 OUTPUT
 ---------------------------------------------------------------------------
 P      - an H-representation polytope P={x | H x <= K}
 Vconv  - extreme points (i.e. points forming the convex hull)

 see also POLYTOPE/HULL, EXTREME, UNION, ENVELOPE

CROSS-REFERENCE INFORMATION ^

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