listFunctions

Purpose

Extract list of functions stored with the union.

Syntax

U.listFunctions

Description

Extract list of function names stored with the union of convex sets. If there are no functions associated, the result is empty.

Input Arguments

P

Object derived from Union class.

Class: Union

Example(s)

Example 1

Create union of polyhedra with two affine function "width", "height".
 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'

See Also

union, polyunion


© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch