Extract list of functions stored with the union.
U.listFunctions
P |
Object derived from Union class. Class: Union |
P(1) = Polyhedron('ub',-1);
P(1).addFunction(AffFunction(-1,1),'weight');
P(1).addFunction(AffFunction(-2,0.5),'height');
P(2) = Polyhedron('lb',-1,'ub',1);
P(2).addFunction(AffFunction(0,1),'weight');
P(2).addFunction(AffFunction(-3,0.5),'height');
P(3) = Polyhedron('lb',1);
P(3).addFunction(AffFunction(1,1),'weight');
P(3).addFunction(AffFunction(-4,0.5),'height');Create the PolyUnion object without specifying any properties.
U = PolyUnion(P)
PolyUnion in the dimension 1 with 3 polyhedra. Functions : 2 attached "height", "weight"Get the function names
U.listFunctions
ans = 'height' 'weight'
◀ | mpt | union | ▶ |
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch