collocation_method.cpp
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 
36 
37 
39 
40 
41 //
42 // PUBLIC MEMBER FUNCTIONS:
43 //
44 
45 
47 {
48 }
49 
50 
52 {
53 }
54 
55 
57  :DynamicDiscretization ( rhs ){
58 
59 
60 }
61 
62 
64 
65 }
66 
67 
68 
70 
71  return *this;
72 }
73 
74 
76 
77  return new CollocationMethod(*this);
78 }
79 
80 
81 
83  const Grid &stageIntervals,
84  const IntegratorType &integratorType_ ){
85 
87 }
88 
89 
91 
93 }
94 
95 
96 
98 
100 }
101 
102 
103 
105 
107 }
108 
109 
110 
112 
114 }
115 
116 
118 
120 }
121 
122 
124 
126 }
127 
128 
130 
131 // setForwardSeed( 0, 0, 0, 0, 1 );
132 // setForwardSeed( 0, 0, 0, 0, 2 );
133 // setBackwardSeed( 0, 1 );
134 // setBackwardSeed( 0, 2 );
135 
136  // delete seeds of member classes ...
137 
138  return SUCCESSFUL_RETURN;
139 }
140 
141 
142 
144 
146 }
147 
148 
149 
151 {
152  return BT_FALSE;
153 }
154 
155 
156 
158 
159 // end of file.
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
#define BT_FALSE
Definition: acado_types.hpp:49
Discretizes a DifferentialEquation by means of a collocation scheme.
#define ACADOERROR(retval)
virtual returnValue deleteAllSeeds()


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