banded_cp.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_HPP
35 #define ACADO_TOOLKIT_BANDED_CP_HPP
36 
40 
41 
43 
44 
56 class BandedCP{
57 
58 
59  //
60  // PUBLIC MEMBER FUNCTIONS:
61  //
62  public:
63 
65  BandedCP( );
66 
68  BandedCP( const BandedCP& rhs );
69 
71  virtual ~BandedCP( );
72 
74  BandedCP& operator=( const BandedCP& rhs );
75 
76 
78  inline BooleanType isLP () const;
79 
81  inline BooleanType isQP () const;
82 
84  inline BooleanType isSDP() const;
85 
86 
87 
88  //
89  // PUBLIC DATA MEMBERS:
90  //
91  public:
92 
93 
94  // DIMENSIONS OF THE CP:
95  // ---------------------
96  int nS;
100  // BANDED CP IN BLOCK-MATRIX FORMAT:
101  // -----------------------------------------------------------------------------------
102 
121  // SOLUTION OF THE BANDED CP:
122  // ----------------------------------------------------------------------------------
133  // PROTECTED MEMBER FUNCTIONS:
134  // ---------------------------
135  protected:
136 
137  void copy (const BandedCP& rhs);
138  void clean();
139 };
140 
141 
143 
144 
145 #include <acado/conic_program/banded_cp.ipp>
146 
147 
148 #endif // ACADO_TOOLKIT_BANDED_CP_HPP
149 
150 /*
151  * end of file
152  */
void clean()
Definition: banded_cp.cpp:154
Implements a very rudimentary block sparse matrix class.
BlockMatrix upperConstraintResiduum
Definition: banded_cp.hpp:114
BlockMatrix deltaX
Definition: banded_cp.hpp:123
BlockMatrix * lbB
Definition: banded_cp.hpp:117
BlockMatrix objectiveGradient
Definition: banded_cp.hpp:104
virtual ~BandedCP()
Definition: banded_cp.cpp:62
BooleanType isQP() const
BlockMatrix ** B
Definition: banded_cp.hpp:116
BlockMatrix lambdaConstraint
Definition: banded_cp.hpp:126
#define CLOSE_NAMESPACE_ACADO
BlockMatrix hessian
Definition: banded_cp.hpp:103
BlockMatrix lambdaDynamic
Definition: banded_cp.hpp:125
BlockMatrix lowerBoundResiduum
Definition: banded_cp.hpp:106
BooleanType isSDP() const
BlockMatrix ** ylbB
Definition: banded_cp.hpp:128
BlockMatrix * ubB
Definition: banded_cp.hpp:118
BlockMatrix lowerConstraintResiduum
Definition: banded_cp.hpp:113
BlockMatrix lambdaBound
Definition: banded_cp.hpp:124
BlockMatrix upperBoundResiduum
Definition: banded_cp.hpp:107
void rhs(const real_t *x, real_t *f)
BlockMatrix dynResiduum
Definition: banded_cp.hpp:110
BlockMatrix dynGradient
Definition: banded_cp.hpp:109
BooleanType isLP() const
#define BEGIN_NAMESPACE_ACADO
BandedCP & operator=(const BandedCP &rhs)
Definition: banded_cp.cpp:68
BlockMatrix constraintGradient
Definition: banded_cp.hpp:112
BlockMatrix ** yubB
Definition: banded_cp.hpp:129
void copy(const BandedCP &rhs)
Definition: banded_cp.cpp:80
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