removeAllFunctions

Purpose

Remove all functions that are associated to this set.

Syntax

Set.removeAllFunctions
removeAllFunctions(Set)

Description

Removes all Function objects associated to this set.

Input Arguments

Set

Any object derived from the ConvexSet class, e.g. Polyhedron, YSet, ...

Class: ConvexSet

Output Arguments

Set

Modified object of ConvexSet class without the function handles.

Class: ConvexSet

Example(s)

Example 1

Create a polyhedron and add two functions to the set.
 P=ExamplePoly.randHrep; 

 P.addFunction(AffFunction([1,0],-1),'a') 
Polyhedron in R^2 with representations:
    H-rep (redundant)   : Inequalities  10 | Equalities   0
    V-rep               : Unknown (call computeVRep() to compute)
Functions : 1 attached "a"
 P.addFunction(AffFunction([-3,5],2),'b') 
Polyhedron in R^2 with representations:
    H-rep (redundant)   : Inequalities  10 | Equalities   0
    V-rep               : Unknown (call computeVRep() to compute)
Functions : 2 attached "a", "b"
The set contains now two functions. We can remove this functions at once with the following command
 P.removeAllFunctions 
Polyhedron in R^2 with representations:
    H-rep (redundant)   : Inequalities  10 | Equalities   0
    V-rep               : Unknown (call computeVRep() to compute)
Functions : none

See Also

addfunction, removefunction


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