Compute an irredundant H-representation of a polyhedron.
P.minHRep()
[P, sol] = P.minHRep()
P |
Polyhedron in any format Class: Polyhedron |
sol |
Irredundant H-representation of ![]() Class: struct |
sol.H |
Matrix of
inequalities Class: double matrix |
sol.He |
Matrix of
equalities Class: double matrix |
P = Polyhedron('H', [randn(20,3) ones(20,1)], 'He', [randn(1,3) 0])
Polyhedron in R^3 with representations: H-rep (redundant) : Inequalities 20 | Equalities 1 V-rep : Unknown (call computeVRep() to compute) Functions : noneRemove redundancies:
P.minHRep()
Polyhedron in R^3 with representations: H-rep (irredundant) : Inequalities 6 | Equalities 1 V-rep : Unknown (call computeVRep() to compute) Functions : nonePlot the result
plot(P);
disp(P)
<a href="matlab:help Polyhedron">Polyhedron</a> <a href="matlab:help handle">handle</a> Properties: irredundantVRep: 1 irredundantHRep: 1 hasHRep: 1 hasVRep: 1 A: [6x3 double] b: [6x1 double] Ae: [1.054537042432 0.942364915344315 -0.463781292098188] be: 0 H: [6x4 double] He: [1.054537042432 0.942364915344315 -0.463781292098188 0] R: [0x3 double] V: [6x3 double] Dim: 3 Data: [] <a href="matlab:methods('Polyhedron')">Methods</a>, <a href="matlab:events('Polyhedron')">Events</a>, <a href="matlab:superclasses('Polyhedron')">Superclasses</a>
P = Polyhedron('V', randn(20,3), 'R', -[1 0 0])
Polyhedron in R^3 with representations: H-rep : Unknown (call computeHRep() to compute) V-rep (redundant) : Vertices 20 | Rays 1 Functions : noneCompute inequality representation:
P.minHRep()
Polyhedron in R^3 with representations: H-rep (irredundant) : Inequalities 18 | Equalities 0 V-rep (irredundant) : Vertices 10 | Rays 1 Functions : nonePlot the result
plot(P);
[1] Fukuda: PolyFaq
◀ | ispointed | isneighbor | ▶ |
© 2010-2013 Colin Neil Jones: EPF Lausanne, colin.jones@epfl.ch
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch
© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk