irk_4stage_simplified_newton_export.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_EXPORT_IRK_4STAGE_SIMPLIFIED_SOLVER_HPP
35 #define ACADO_TOOLKIT_EXPORT_IRK_4STAGE_SIMPLIFIED_SOLVER_HPP
36 
38 
39 
41 
42 
55 {
56  //
57  // PUBLIC MEMBER FUNCTIONS:
58  //
59  public:
60 
66  ExportIRK4StageSimplifiedNewton( UserInteraction* _userInteraction = 0,
67  const std::string& _commonHeaderName = ""
68  );
69 
72 
73 
78  virtual returnValue setup( );
79 
80 
82  returnValue setEigenvalues( const DMatrix& _eig );
83 
85  returnValue setTransformations( const DMatrix& _transf1, const DMatrix& _transf2, const DMatrix& _transf1_T, const DMatrix& _transf2_T );
86 
88  returnValue setStepSize( double _stepsize );
89 
90 
97  virtual returnValue transformRightHandSide( ExportStatementBlock& code, const ExportVariable& b_mem1, const ExportVariable& b_mem2, const ExportVariable& b_full_, const ExportVariable& transf_, const ExportIndex& index, const bool transpose );
98 
99 
106  virtual returnValue transformSolution( ExportStatementBlock& code, const ExportVariable& b_mem1, const ExportVariable& b_mem2, const ExportVariable& b_full_, const ExportVariable& transf_, const ExportIndex& index, const bool transpose );
107 
108 
116  ExportStruct dataStruct = ACADO_ANY
117  ) const;
118 
119 
127  ) const;
128 
129 
137  );
138 
139 
146  returnValue appendVariableNames( std::stringstream& string );
147 
148 
149  returnValue setImplicit( BooleanType _implicit );
150 
151 
152  //
153  // PROTECTED MEMBER FUNCTIONS:
154  //
155  protected:
156 
157 
158  const std::string getNameSolveComplexFunction();
159  const std::string getNameSolveComplexReuseFunction();
160  const std::string getNameSolveComplexTransposeReuseFunction();
161 
162 
163  protected:
164 
166  double stepsize;
172 
173  // DEFINITION OF THE EXPORTVARIABLES
208 };
209 
210 
212 
213 
214 #endif // ACADO_TOOLKIT_EXPORT_IRK_4STAGE_SIMPLIFIED_SOLVER_HPP
215 
216 // end of file.
virtual returnValue getCode(ExportStatementBlock &code)
returnValue setTransformations(const DMatrix &_transf1, const DMatrix &_transf2, const DMatrix &_transf1_T, const DMatrix &_transf2_T)
Allows to pass back messages to the calling function.
virtual returnValue getDataDeclarations(ExportStatementBlock &declarations, ExportStruct dataStruct=ACADO_ANY) const
#define CLOSE_NAMESPACE_ACADO
Defines a scalar-valued index variable to be used for exporting code.
virtual returnValue transformSolution(ExportStatementBlock &code, const ExportVariable &b_mem1, const ExportVariable &b_mem2, const ExportVariable &b_full_, const ExportVariable &transf_, const ExportIndex &index, const bool transpose)
returnValue setImplicit(BooleanType _implicit)
ExportStruct
Allows to export Gaussian elimination for solving linear systems of specific dimensions.
returnValue appendVariableNames(std::stringstream &string)
ExportIRK4StageSimplifiedNewton(UserInteraction *_userInteraction=0, const std::string &_commonHeaderName="")
Encapsulates all user interaction for setting options, logging data and plotting results.
Allows to export code of an arbitrary function.
virtual returnValue transformRightHandSide(ExportStatementBlock &code, const ExportVariable &b_mem1, const ExportVariable &b_mem2, const ExportVariable &b_full_, const ExportVariable &transf_, const ExportIndex &index, const bool transpose)
#define BEGIN_NAMESPACE_ACADO
Allows to export a tailored IRK solver based on Gaussian elimination of specific dimensions.
Allows to export code for a block of statements.
virtual returnValue getFunctionDeclarations(ExportStatementBlock &declarations) const
Defines a matrix-valued variable to be used for exporting code.


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