Home > mpt > extras > auxiliary > mpt_evalPWA.m

mpt_evalPWA

PURPOSE ^

MPT_EVALPWA Evaluates a PWA function at a given location

SYNOPSIS ^

function [value, regions] = mpt_evalPWA(Pn, Fi, Gi, x0)

DESCRIPTION ^

MPT_EVALPWA Evaluates a PWA function at a given location

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 Evaluates a PWA function on a given location

 USAGE:
   value = mpt_evalPWA(Pn, Fi, Gi, x0)
   [value, regions] = mpt_evalPWA(Pn, Fi, Gi, x0)

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 Pn         - polyhedral partition over which the PWA function is defined
 Fi, Gi     - cell arrays containing parameters of the PWA function
 x0         - value of parameter on which to evaluate the function

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------
 value      - value of the PWA function at given location (if point x0 is
              contained in more than one region of Pn, "value" will be returned
              as a vector, each element corresponding to cost associated to
              every region containing x0)
 regions    - region(s) of Pn which contain(s) point x0

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003