Home > mpt > extras > analysis > mpt_checkLyapFct.m

mpt_checkLyapFct

PURPOSE ^

MPT_CHECKLYAPFCT Checks if a function is a Lyapunov function for a given ctrlStruct

SYNOPSIS ^

function [islyapfun,XC,decayrate] = mpt_checkLyapFct(varargin)

DESCRIPTION ^

MPT_CHECKLYAPFCT Checks if a function is a Lyapunov function for a given ctrlStruct

 for PWQ Lyapunov functions:
   islyapfun = mpt_checkLyapFct(ctrlStruct,LQ,LL,LC,Options)

 for PWA Lyapunov functions:
   islyapfun = mpt_checkLyapFct(ctrlStruct,LL,LC,Options)

 for Polynomial Lyapunov functions:
   islyapfun = mpt_checkLyapFct(ctrlStruct,V,Options)

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 Grids the state-space into given number of points and for each state
 checks if decay rate of PWQ(PWA) Lyapunov function is negative.

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 ctrl               - Explicit controller (MPTCTRL object)
 LQ,LL,LC           - Parameters of the PWQ(PWA) Lyapunov function
 Options.gridpoints - Number of grid points (if not provided, 30 is default)
 Options.N          - Number of simulation steps (5 by default)
 Options.verbose    - Level of verbosity
 Options.Pfinal     - polytope defining part of the state-space which should
                      be considered for cost computation. (only reasonable
                      if ctrlStruct.Pfinal is an empty polytope)

 Note: If Options is missing or some of the fields are not defined, the default
       values from mptOptions will be used

 ---------------------------------------------------------------------------
 OUTPUT
 ---------------------------------------------------------------------------
 islyapfun - 1 if the function satifies criterions put on Lyapunov-type
             functions (positivity and negative decay rate); 0 otherwise
 XC        - matrix of data points (row-wise)
 decayrate - vector of decay rates corresponding to rows of XC

 see also MPT_GETPWQLYAPFCT. MPT_GETPWALYAPFCT

CROSS-REFERENCE INFORMATION ^

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