5.0

5.0 | 2 ratings Rate this file 19 downloads (last 30 days) File Size: 1.92 KB File ID: #7895

VERT2CON - vertices to constraints

by Michael Kleder

 

22 Jun 2005 (Updated 11 Jul 2005)

No BSD License  

Create inequality constraints to bound the convex hull of the given points.

Download Now | Watch this File

File Information
Description

VERT2CON - convert a set of points to the set of inequality constraints which most tightly contain the points; i.e., create constraints to bound the convex hull of the given points

[A,b] = vert2con(V)

V = a set of points, each ROW of which is one point
A,b = a set of constraints such that A*x <= b defines the region of space enclosing the convex hull of the given points

For n dimensions:
V = p x n matrix (p vertices, n dimensions)
A = m x n matrix (m constraints, n dimensions)
b = m x 1 vector (m constraints)

NOTES:
NOTES:
(1) In higher dimensions, redundant constraints can appear. This program detects redundancy at 6 digits of precision (per dimension), then returns the unique constraints.
(2) See companion function CON2VERT.
(3) ver 1.0: initial version, June 2005.
(4) ver 1.1: enhanced redundancy checks, July 2005
(5) Written by Michael Kleder

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
20 Jun 2008 GagoX GagoX

Thanx Michael,

great program! and very elegantly coded as well.

10 Jul 2008 Vishal Narula

nice work..keep it up!

Please login to add a comment or rating.
Updates
11 Jul 2005

Enhanced redundancy checks.

Tag Activity for this File
Tag Applied By Date/Time
optimization Michael Kleder 22 Oct 2008 07:51:00
polygon Michael Kleder 22 Oct 2008 07:51:00
polyhedron Michael Kleder 22 Oct 2008 07:51:00
polytope Michael Kleder 22 Oct 2008 07:51:00
convex Michael Kleder 22 Oct 2008 07:51:00
hull Michael Kleder 22 Oct 2008 07:51:00
inequality Michael Kleder 22 Oct 2008 07:51:00
constraint Michael Kleder 22 Oct 2008 07:51:00
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com