Home > mpt > extras > auxiliary > mpt_randPWASys.m

mpt_randPWASys

PURPOSE ^

MPT_RANDPWASYS generates random PWA systems

SYNOPSIS ^

function [sysStructCell,sys_dyn]=mpt_randPWASys(maxSys,nx,nu,noDyn,Options)

DESCRIPTION ^

MPT_RANDPWASYS generates random PWA systems

   [sysStructCell,sys_dyn]=mpt_randPWASys(maxSys,nx,nu,noDyn,Options)

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 
 Generates random PWA systems

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------

   maxSys      -   Number of systems to be generated
   nx          -   Number of states of each system; scalar
   nu          -   Number of inputs of each system; scalar
   noDyn       -   Number of dynamics of the PWA system (default=4)
                   (Note: the larger this number, the less 'random' the partitions
                          because of the implemented construction method)

   Options
       .xmin / .xmax       -   State constraints for each system (Default: -/+ 10)
       .umin / .umax       -   Input constraints for each system (Default: -/+ 1)
       .dumin / .dumax     -   Input constraints for each system (Default: -/+ Inf)
       .enforceStability   -   Consider stable dynamics only, if set to 1
                               (Default: 0)
       .originInDyn        -   Origin is on the boundary of the different systems
                               (Default: 0)
       .maxVal             -   Maximum absolute value of elements in dynamic matrices
                               (Default: 2)
       

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------

   sysStructCell           -   cell array of size "maxSys" containing different sysStructs
   sys_dyn                 -   cell array of polytopes which define the dynamic partition for
                               each sysStruct

CROSS-REFERENCE INFORMATION ^

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