


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