linear_state_feedback.hpp
Go to the documentation of this file.
00001 /*
00002  *    This file is part of ACADO Toolkit.
00003  *
00004  *    ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
00005  *    Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
00006  *    Milan Vukov, Rien Quirynen, KU Leuven.
00007  *    Developed within the Optimization in Engineering Center (OPTEC)
00008  *    under supervision of Moritz Diehl. All rights reserved.
00009  *
00010  *    ACADO Toolkit is free software; you can redistribute it and/or
00011  *    modify it under the terms of the GNU Lesser General Public
00012  *    License as published by the Free Software Foundation; either
00013  *    version 3 of the License, or (at your option) any later version.
00014  *
00015  *    ACADO Toolkit is distributed in the hope that it will be useful,
00016  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  *    Lesser General Public License for more details.
00019  *
00020  *    You should have received a copy of the GNU Lesser General Public
00021  *    License along with ACADO Toolkit; if not, write to the Free Software
00022  *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00023  *
00024  */
00025 
00026 
00033 #ifndef ACADO_TOOLKIT_LINEAR_STATE_FEEDBACK_HPP
00034 #define ACADO_TOOLKIT_LINEAR_STATE_FEEDBACK_HPP
00035 
00036 
00037 #include <acado/utils/acado_utils.hpp>
00038 #include <acado/function/function.hpp>
00039 
00040 #include <acado/control_law/control_law.hpp>
00041 #include <acado/control_law/clipping_functionality.hpp>
00042 
00043 
00044 BEGIN_NAMESPACE_ACADO
00045 
00046 
00057 class LinearStateFeedback : public ControlLaw, public ClippingFunctionality
00058 {
00059         //
00060         // PUBLIC MEMBER FUNCTIONS:
00061         //
00062         public:
00065                 LinearStateFeedback( );
00066 
00073                 LinearStateFeedback(    const DMatrix& _K,
00074                                                                 double _samplingTime = DEFAULT_SAMPLING_TIME
00075                                                                 );
00076 
00081                 LinearStateFeedback(    const LinearStateFeedback& rhs
00082                                                                 );
00083 
00086                 virtual ~LinearStateFeedback( );
00087 
00092                 LinearStateFeedback& operator=( const LinearStateFeedback& rhs
00093                                                                                 );
00094 
00099                 virtual ControlLaw* clone( ) const;
00100 
00101 
00112                 virtual returnValue init(       double startTime = 0.0,
00113                                                                         const DVector &x0_ = emptyConstVector,
00114                                                                         const DVector &p_ = emptyConstVector,
00115                                                                         const VariablesGrid& _yRef = emptyConstVariablesGrid
00116                                                                         );
00117 
00118 
00131                 virtual returnValue step(       double currentTime,
00132                                                                         const DVector& _x,
00133                                                                         const DVector& _p = emptyConstVector,
00134                                                                         const VariablesGrid& _yRef = emptyConstVariablesGrid
00135                                                                         );
00136 
00137 
00142                 virtual uint getNX( ) const;
00143 
00148                 virtual uint getNXA( ) const;
00149 
00154                 virtual uint getNU( ) const;
00155 
00160                 virtual uint getNP( ) const;
00161 
00166                 virtual uint getNW( ) const;
00167 
00172                 virtual uint getNY( ) const;
00173 
00174 
00181                 virtual BooleanType isDynamic( ) const;
00182 
00188                 virtual BooleanType isStatic( ) const;
00189 
00190 
00191 
00192         //
00193         // PROTECTED MEMBER FUNCTIONS:
00194         //
00195         protected:
00196 
00197 
00198 
00199         //
00200         // DATA MEMBERS:
00201         //
00202         protected:
00203 
00204                 DMatrix K;                                              
00206 };
00207 
00208 
00209 CLOSE_NAMESPACE_ACADO
00210 
00211 
00212 
00213 //#include <acado/control_law/linear_state_feedback.ipp>
00214 
00215 
00216 #endif  // ACADO_TOOLKIT_LINEAR_STATE_FEEDBACK_HPP
00217 
00218 /*
00219  *      end of file
00220  */


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 11:59:02