Home > mpt > extras > control > mpt_solveMPC.m

mpt_solveMPC

PURPOSE ^

MPT_SOLVEMPC Solves the on line optimization MPC problem

SYNOPSIS ^

function [U,feasible,fval,sysStruct,probStruct,Matrices,X]=mpt_solveMPC(x0,sysStruct,probStruct,Matrices,Options)

DESCRIPTION ^

MPT_SOLVEMPC Solves the on line optimization MPC problem

 [U,feasible,fval,sysStruct,probStruct,Matrices]=mpt_solveMPC(x0,sysStruct,probStruct,Matrices,Options)

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
    
 Solves the optimization problem associated to the initial state x0 via LP, QP or LMI

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 x0            -   current state / initial state x(0)
 sysStruct     -   system Structure (type "help mpt_sysStruct")
 probStruct    -   problem Structure (type "help mpt_probStruct")
 Matrices      -   Optional: constraint matrices, if already known
 Options       -   Options for mpt_solveLP / mpt_solveQP
   .solveLMI   -   1/0 if set to "1", the SOCP solver is used to solve the 2-norm
                   problem; 
                   NOTE: first call to SOCP solver takes significantly longer than
                         subsequent calls.


 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------
 U             -   optimizer, i.e. optimal input sequence
 feasible      -   1/0 flag; set to 1 if problem is feasible
 fval          -   Value function associated to optimizer
 sysStruct     -   updated (verified) sysStruct 
 probStruct    -   updated (verified) probStruct
 Matrices      -   constraint and objective Matrices; can be used as input for the 
                   next call to this function

 see also mpt_mplp, mpt_mpqp for explicit feedback solutions

CROSS-REFERENCE INFORMATION ^

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