collocation_method.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 
27 
34 #ifndef ACADO_TOOLKIT_COLLOCATION_METHOD_HPP
35 #define ACADO_TOOLKIT_COLLOCATION_METHOD_HPP
36 
38 
39 
41 
42 
54 {
55 
56 //
57 // PUBLIC MEMBER FUNCTIONS:
58 //
59 
60 public:
61 
64 
65  CollocationMethod( UserInteraction* _userInteraction
66  );
67 
70 
72  virtual ~CollocationMethod( );
73 
76 
78  virtual DynamicDiscretization* clone() const;
79 
80 
81 
83  virtual returnValue addStage( const DynamicSystem &dynamicSystem_,
84  const Grid &stageIntervals,
85  const IntegratorType &integratorType_ = INT_UNKNOWN );
86 
88  virtual returnValue addTransition( const Transition& transition_ );
89 
90 
92  virtual returnValue clear();
93 
94 
95 
107  virtual returnValue evaluate( OCPiterate &iter );
108 
109 
110 
111 
118 
119 
126 
127 
133  virtual returnValue evaluateSensitivities( const BlockMatrix &seed, BlockMatrix &hessian );
134 
135 
136  virtual BooleanType isAffine( ) const;
137 
138 
139 
140  virtual returnValue unfreeze( );
141  virtual returnValue deleteAllSeeds();
142 
143 
144 protected:
145 
146 
147 };
148 
149 
151 
152 
153 
154 #include <acado/dynamic_discretization/collocation_method.ipp>
155 
156 
157 #endif // ACADO_TOOLKIT_COLLOCATION_METHOD_HPP
158 
159 // end of file
160 
Data class for storing generic optimization variables.
Definition: ocp_iterate.hpp:57
Implements a very rudimentary block sparse matrix class.
virtual returnValue addStage(const DynamicSystem &dynamicSystem_, const Grid &stageIntervals, const IntegratorType &integratorType_=INT_UNKNOWN)
Stores a DifferentialEquation together with an OutputFcn.
virtual returnValue unfreeze()
Allows to pass back messages to the calling function.
Allows to conveniently handle (one-dimensional) grids consisting of time points.
Definition: grid.hpp:58
#define CLOSE_NAMESPACE_ACADO
Base class for discretizing a DifferentialEquation for use in optimal control algorithms.
virtual BooleanType isAffine() const
virtual returnValue evaluate(OCPiterate &iter)
virtual returnValue evaluateSensitivitiesLifted()
IntegratorType
virtual returnValue clear()
CollocationMethod & operator=(const CollocationMethod &rhs)
Encapsulates all user interaction for setting options, logging data and plotting results.
virtual returnValue evaluateSensitivities()
virtual DynamicDiscretization * clone() const
void rhs(const real_t *x, real_t *f)
virtual returnValue addTransition(const Transition &transition_)
Allows to setup and evaluate transition functions based on SymbolicExpressions.
Definition: transition.hpp:53
#define BEGIN_NAMESPACE_ACADO
Discretizes a DifferentialEquation by means of a collocation scheme.
virtual returnValue deleteAllSeeds()


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