Allows to setup function evaluation points. More...
#include <evaluation_point.hpp>
Protected Member Functions | |
DVector | backCopy (const int *order, const uint &dim) const |
returnValue | copy (const int *order, const DVector &rhs) |
void | copy (const EvaluationPoint &rhs) |
void | copyIdx (const uint &dim, const int *idx1, int **idx2) |
void | deleteAll () |
double * | getEvaluationPointer () const |
Protected Attributes | |
int ** | idx |
uint | N |
uint | na |
uint | nd |
uint | np |
uint | nu |
uint | nw |
uint | nx |
double * | z |
Friends | |
class | Function |
Allows to setup function evaluation points.
The class EvaluationPoint is an efficient data class for storing points at which
a function can be evaluated. This class can be used in combination with the class
function.
\author Boris Houska, Hans Joachim Ferreau
Definition at line 58 of file evaluation_point.hpp.
BEGIN_NAMESPACE_ACADO EvaluationPoint::EvaluationPoint | ( | ) |
Default constructor.
Definition at line 47 of file evaluation_point.cpp.
EvaluationPoint::EvaluationPoint | ( | const Function & | f, |
uint | nx_ = 0 , |
||
uint | na_ = 0 , |
||
uint | nu_ = 0 , |
||
uint | np_ = 0 , |
||
uint | nw_ = 0 , |
||
uint | nd_ = 0 , |
||
uint | N_ = 0 |
||
) |
Constructor which takes the function.
Definition at line 58 of file evaluation_point.cpp.
EvaluationPoint::EvaluationPoint | ( | const Function & | f, |
const OCPiterate & | iter | ||
) |
Constructor which takes the function.
Definition at line 68 of file evaluation_point.cpp.
EvaluationPoint::EvaluationPoint | ( | const EvaluationPoint & | rhs | ) |
Copy constructor (deep copy).
Definition at line 54 of file evaluation_point.cpp.
|
virtual |
Destructor.
Definition at line 55 of file evaluation_point.cpp.
|
inlineprotected |
|
protected |
Definition at line 189 of file evaluation_point.cpp.
|
protected |
Definition at line 180 of file evaluation_point.cpp.
|
protected |
Definition at line 223 of file evaluation_point.cpp.
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
returnValue EvaluationPoint::init | ( | const Function & | f, |
uint | nx_ = 0 , |
||
uint | na_ = 0 , |
||
uint | np_ = 0 , |
||
uint | nu_ = 0 , |
||
uint | nw_ = 0 , |
||
uint | nd_ = 0 , |
||
uint | N_ = 0 |
||
) |
Initializer which takes the dimensions as arguments.
f | the function to be evaluated. |
nx | number of differential states. |
na | number of algebraic states. |
np | number of parameters. |
nu | number of controls. |
nw | number of disturbances. |
nd | number of diff. state derivatives. |
Definition at line 94 of file evaluation_point.cpp.
returnValue EvaluationPoint::init | ( | const Function & | f, |
const OCPiterate & | iter | ||
) |
Definition at line 87 of file evaluation_point.cpp.
EvaluationPoint & EvaluationPoint::operator= | ( | const EvaluationPoint & | rhs | ) |
Assignment operator (deep copy).
Definition at line 77 of file evaluation_point.cpp.
returnValue EvaluationPoint::print | ( | ) | const |
Prints the data of this object.
Due to the efficient implementation of
this class not everything might be stored.
Please, use this routine for debugging only.
This print routine does only work properly
if ALL values are assigned.
Definition at line 149 of file evaluation_point.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
Definition at line 60 of file evaluation_point.hpp.
|
protected |
index lists (for efficient reordering)
Definition at line 183 of file evaluation_point.hpp.
|
protected |
total number of variables
Definition at line 191 of file evaluation_point.hpp.
|
protected |
number of alg. states
Definition at line 186 of file evaluation_point.hpp.
|
protected |
number of diff. state der.
Definition at line 190 of file evaluation_point.hpp.
|
protected |
number of parameters
Definition at line 188 of file evaluation_point.hpp.
|
protected |
number of controls
Definition at line 187 of file evaluation_point.hpp.
|
protected |
number of disturbances
Definition at line 189 of file evaluation_point.hpp.
|
protected |
number of diff. states
Definition at line 185 of file evaluation_point.hpp.
|
protected |
the function evaluation point.
Definition at line 182 of file evaluation_point.hpp.