


PWA_DI 2nd order PWA example with 4 PWA dynamics
---------------------------------------------------------------------------
DESCRIPTION
---------------------------------------------------------------------------
Sample PWA system with 2 states and 1 control input.
The affine dynamics is defined over 4 different regions.
Note: with probStruct.subopt_lev=1 the solution consists of 220 regions
with probStruct.subopt_lev=2 the solution consists of 144 regions
Default values are:
* Prediction horizon N = Inf
* Weight in the cost function Q = I, R = 1
* Norm = 2
* No bounds on x0
* Level of suboptimality = 1 (needed for PWA systems!)
* No uncertainty
USAGE:
pwa_DI
ctrlStruct = mpt_control(sysStruct,probStruct);
---------------------------------------------------------------------------
INPUT
---------------------------------------------------------------------------
none
---------------------------------------------------------------------------
OUTPUT
---------------------------------------------------------------------------
sysStruct, probStruct - system and problem definition structures stores
in the workspace