mhe_algorithm.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of ACADO Toolkit.
3  *
4  * ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
5  * Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
6  * Milan Vukov, Rien Quirynen, KU Leuven.
7  * Developed within the Optimization in Engineering Center (OPTEC)
8  * under supervision of Moritz Diehl. All rights reserved.
9  *
10  * ACADO Toolkit is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 3 of the License, or (at your option) any later version.
14  *
15  * ACADO Toolkit is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with ACADO Toolkit; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25 
26 
34 #ifndef ACADO_TOOLKIT_MHE_ALGORITHM_HPP
35 #define ACADO_TOOLKIT_MHE_ALGORITHM_HPP
36 
37 
39 
40 
42 
43 
55 
56  //
57  // PUBLIC MEMBER FUNCTIONS:
58  //
59  public:
60 
62  MHEalgorithm();
63 
65  MHEalgorithm( const OCP& ocp_ );
66 
68  MHEalgorithm( const MHEalgorithm& arg );
69 
71  virtual ~MHEalgorithm( );
72 
74  MHEalgorithm& operator=( const MHEalgorithm& arg );
75 
76 
84  virtual returnValue init( const DVector &eta,
85  const DMatrix &S );
86 
87 
95  virtual returnValue step( const DVector &eta,
96  const DMatrix &S );
97 
98 
101  virtual returnValue shift( );
102 
103 
111  virtual returnValue solve( const DVector &eta,
112  const DMatrix &S );
113 
114 
115  //
116  // PROTECTED MEMBER FUNCTIONS:
117  //
118  protected:
119 
120 
121  virtual returnValue initializeNlpSolver( const OCPiterate& _userInit
122  );
123 
125  );
126 
127 
128  //
129  // DATA MEMBERS:
130  //
131  protected:
132 
133  DVector *eta; // deep copy of the latest initial value.
134  DMatrix *S ; // deep copy of the latest parameter.
135 };
136 
137 
139 
140 
141 
142 //#include <acado/optimization_algorithm/mhe_algorithm.ipp>
143 
144 
145 #endif // ACADO_TOOLKIT_MHE_ALGORITHM_HPP
146 
147 /*
148  * end of file
149  */
Data class for storing generic optimization variables.
Definition: ocp_iterate.hpp:57
MHEalgorithm & operator=(const MHEalgorithm &arg)
virtual returnValue initializeObjective(Objective *F)
User-interface to formulate and solve optimal control problems and static NLPs.
virtual ~MHEalgorithm()
Allows to pass back messages to the calling function.
virtual returnValue init()
#define CLOSE_NAMESPACE_ACADO
virtual returnValue shift()
virtual returnValue initializeNlpSolver(const OCPiterate &_userInit)
Data class for defining optimal control problems.
Definition: ocp.hpp:89
#define BEGIN_NAMESPACE_ACADO
virtual returnValue step(const DVector &eta, const DMatrix &S)
virtual returnValue solve()
Stores and evaluates the objective function of optimal control problems.
Definition: objective.hpp:123
User-interface to formulate and solve moving horizon estimation problems.


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:54