banded_cp_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 
34 #ifndef ACADO_TOOLKIT_BANDED_CP_SOLVER_HPP
35 #define ACADO_TOOLKIT_BANDED_CP_SOLVER_HPP
36 
39 
42 
43 
44 
45 
47 
48 
64 {
65 
66  //
67  // PUBLIC MEMBER FUNCTIONS:
68  //
69  public:
70 
72  BandedCPsolver( );
73 
74  BandedCPsolver( UserInteraction* _userInteraction
75  );
76 
79 
81  virtual ~BandedCPsolver( );
82 
85 
86 
88  virtual BandedCPsolver* clone() const = 0;
89 
90 
92  virtual returnValue init( const OCPiterate &iter_ ) = 0;
93 
94 
95 
97  virtual returnValue prepareSolve( BandedCP& cp
98  );
99 
109  virtual returnValue solve( BandedCP& cp
110  ) = 0;
111 
113  virtual returnValue finalizeSolve( BandedCP& cp
114  );
115 
116 
117  virtual returnValue getParameters ( DVector &p_ ) const = 0;
118  virtual returnValue getFirstControl ( DVector &u0_ ) const = 0;
119 
120 
126  virtual returnValue getVarianceCovariance( DMatrix &var );
127 
128 
129  virtual returnValue setRealTimeParameters( const DVector& DeltaX,
130  const DVector& DeltaP = emptyConstVector
131  );
132 
133 
134  virtual returnValue freezeCondensing( );
135 
136  virtual returnValue unfreezeCondensing( );
137 
138 
139 
140  protected:
141 
142  virtual returnValue setupOptions( );
143  virtual returnValue setupLogging( );
144 
145 };
146 
147 
149 
150 
151 //#include <acado/conic_solver/banded_cp_solver.ipp>
152 
153 
154 #endif // ACADO_TOOLKIT_BANDED_CP_SOLVER_HPP
155 
156 /*
157  * end of file
158  */
virtual returnValue setupOptions()
Data class for storing generic optimization variables.
Definition: ocp_iterate.hpp:57
virtual returnValue solve(BandedCP &cp)=0
virtual returnValue getVarianceCovariance(DMatrix &var)
virtual returnValue setRealTimeParameters(const DVector &DeltaX, const DVector &DeltaP=emptyConstVector)
Allows to pass back messages to the calling function.
BandedCPsolver & operator=(const BandedCPsolver &rhs)
Base class for all algorithmic modules within the ACADO Toolkit providing some basic functionality...
virtual returnValue unfreezeCondensing()
Base class for algorithms solving banded conic programs arising in optimal control.
#define CLOSE_NAMESPACE_ACADO
virtual ~BandedCPsolver()
static const DVector emptyConstVector
Definition: vector.hpp:336
virtual returnValue finalizeSolve(BandedCP &cp)
virtual returnValue getParameters(DVector &p_) const =0
virtual returnValue getFirstControl(DVector &u0_) const =0
Encapsulates all user interaction for setting options, logging data and plotting results.
void rhs(const real_t *x, real_t *f)
virtual BandedCPsolver * clone() const =0
virtual returnValue freezeCondensing()
#define BEGIN_NAMESPACE_ACADO
virtual returnValue prepareSolve(BandedCP &cp)
virtual returnValue setupLogging()
virtual returnValue init(const OCPiterate &iter_)=0
Data class for storing conic programs arising from optimal control.
Definition: banded_cp.hpp:56


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