Home > mpt > extras > control > mpt_optBoolCtrl.m

mpt_optBoolCtrl

PURPOSE ^

MPT_OPTBOOLCTRL Computes optimal controller for systems with discrete inputs

SYNOPSIS ^

function ctrlStruct = mpt_optBoolCtrl(sysStruct, probStruct, Options)

DESCRIPTION ^

MPT_OPTBOOLCTRL Computes optimal controller for systems with discrete inputs

 ctrlStruct = mpt_optBoolCtrl(sysStruct,probStruct)
 ctrlStruct = mpt_optBoolCtrl(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)

 All inputs are assumed to be discrete 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
                       1 - slight memory saving (default)
                       2 - heavy memory saving (slow computation)
                     If set to 1 or 2, intermediate data are stored to disk
                     before entering the critical part of the algorithm.
                     Data is stored in a file in your temporary directory and
                     deleted if no error occures. Ensure that you have write
                     permission to your temp directory (use command tempdir)

 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 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_OPTCONROLPWA

CROSS-REFERENCE INFORMATION ^

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