Home > mpt > extras > control > mpt_optMixedCtrl.m

mpt_optMixedCtrl

PURPOSE ^

MPT_OPTMIXEDCTRL Computes optimal controller for systems discrete and continuous inputs

SYNOPSIS ^

function ctrlStruct = mpt_optMixedCtrl(sysStruct, probStruct, Options)

DESCRIPTION ^

MPT_OPTMIXEDCTRL Computes optimal controller for systems discrete and continuous inputs

 ctrlStruct=mpt_optMixedCtrl(sysStruct,probStruct,Options)

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 Computes the solution of a constraned finite time optimal control problem for
 a given PWA system 
       x(k+1) = A_i x(k) + B_i u(k) + f_i
       y(k)   = C_i x(k) + D_i u(k) + g_i
       for i such that guardX(i) x(k) + guardU(i) u(k) <= guardC(i)  
   s.t.
       (ymin, ymax, umin, umax, dumin, dumax)

 Inputs may be discrete or continuous, as defined in sysStruct.Uset

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 sysStruct         - System structure in the sysStruct format
 probStruct        - Problem structure in the probStruct format

 Options.verbose   - Level of verbosity (see help mpt_init for more details)
 Options.details   - If set to 1, solution of each iteration is stored in the
                       details fields of the resulting controller structure 
                       (0 by default)
 Options.lowmem    - defines memory saving mode
                       0 - no memory saving - fast computation (default)
                       1 - slight memory saving
                       2 - heavy memory saving (slow computation)

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

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------
 ctrlStruct    - controller structure with the following fields:
   Pn,Fi,Gi    - for region Pn(i).H*x <= Pn.K(i) computed input is U=Fi{i}*x+Gi{i}   
   Ai,Bi,Ci    - cost associated to each region (x'Aix + Bi*x + Ci)
                 Note that Ai and Bi are zero matrices, Ci contains the
                 step distance to the origin
   Pfinal      - The maximum control invariant set as a polytope or a polyarray
   dynamics    - Dynamics active in region Pn(i)
   details     - A structure with additional details about the solution
     details.runTime - total run time of the algorithm
     details.Horizon - a cell array of ctrlStruct's corresponding to each
                       time step of the algorithm


 see also MPT_CONTROL, MPT_OPTBOOLCTRL, MPT_OPTCONTROLPWA

CROSS-REFERENCE INFORMATION ^

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