sparse_solver.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 
33 #ifndef ACADO_TOOLKIT_SPARSE_SOLVER_HPP
34 #define ACADO_TOOLKIT_SPARSE_SOLVER_HPP
35 
36 
38 
39 
41 
42 
67 
68 
69  //
70  // PUBLIC MEMBER FUNCTIONS:
71  //
72  public:
73 
75  SparseSolver( );
76 
78  virtual ~SparseSolver( );
79 
81  virtual SparseSolver* clone() const = 0;
82 
83 
88  virtual returnValue setDimension( const int &n ) = 0;
89 
90 
96  virtual returnValue setNumberOfEntries( const int &nDense_ ) = 0;
97 
98 
99 
103  virtual returnValue setIndices( const int *rowIdx_,
104  const int *colIdx_ ) = 0;
105 
106 
107 
112  virtual returnValue setMatrix( double *A_ ) = 0;
113 
114 
115 
121  virtual returnValue solve( double *b ) = 0;
122 
123 
129  virtual returnValue solveTranspose( double *b );
130 
131 
136  virtual returnValue getX( double *x ) = 0;
137 
138 
139 
150  virtual returnValue setTolerance( double TOL ) = 0;
151 
152 
157  virtual returnValue setPrintLevel( PrintLevel PrintLevel_ ) = 0;
158 
159 
160 
161 
162  //
163  // PROTECTED MEMBER FUNCTIONS:
164  //
165  protected:
166 
167 
168 
169  //
170  // DATA MEMBERS:
171  //
172  protected:
173 
174 
175 };
176 
177 
179 
180 #include <acado/sparse_solver/sparse_solver.ipp>
181 
182 #endif // ACADO_TOOLKIT_SPARSE_SOLVER_HPP
183 
187 
188 /*
189  * end of file
190  */
191 
virtual returnValue setIndices(const int *rowIdx_, const int *colIdx_)=0
Allows to pass back messages to the calling function.
virtual returnValue setNumberOfEntries(const int &nDense_)=0
#define CLOSE_NAMESPACE_ACADO
virtual ~SparseSolver()
virtual returnValue solveTranspose(double *b)
PrintLevel
virtual returnValue setTolerance(double TOL)=0
virtual SparseSolver * clone() const =0
virtual returnValue getX(double *x)=0
Generic interface for sparse solvers to be coupled with ACADO Toolkit.
#define BEGIN_NAMESPACE_ACADO
virtual returnValue setDimension(const int &n)=0
virtual returnValue setMatrix(double *A_)=0
virtual returnValue solve(double *b)=0
virtual returnValue setPrintLevel(PrintLevel PrintLevel_)=0


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