Implements the tree-projection operator within the family of SymbolicOperators. More...
#include <tree_projection.hpp>
Protected Member Functions | |
virtual returnValue | ADbackwardProtected (int dim, VariableType *varType, int *component, Operator *seed, Operator **df, int &nNewIS, TreeProjection ***newIS) |
virtual Operator * | ADforwardProtected (int dim, VariableType *varType, int *component, Operator **seed, int &nNewIS, TreeProjection ***newIS) |
virtual returnValue | ADsymmetricProtected (int dim, VariableType *varType, int *component, Operator *l, Operator **S, int dimS, Operator **dfS, Operator **ldf, Operator **H, int &nNewLIS, TreeProjection ***newLIS, int &nNewSIS, TreeProjection ***newSIS, int &nNewHIS, TreeProjection ***newHIS) |
virtual void | copy (const Projection &arg) |
virtual returnValue | setVariableExportName (const VariableType &_type, const std::vector< std::string > &_name) |
Protected Member Functions inherited from Operator | |
returnValue | ADsymCommon (Operator *a, TreeProjection &da, TreeProjection &dda, int dim, VariableType *varType, int *component, Operator *l, Operator **S, int dimS, Operator **dfS, Operator **ldf, Operator **H, int &nNewLIS, TreeProjection ***newLIS, int &nNewSIS, TreeProjection ***newSIS, int &nNewHIS, TreeProjection ***newHIS) |
returnValue | ADsymCommon2 (Operator *a, Operator *b, TreeProjection &dx, TreeProjection &dy, TreeProjection &dxx, TreeProjection &dxy, TreeProjection &dyy, int dim, VariableType *varType, int *component, Operator *l, Operator **S, int dimS, Operator **dfS, Operator **ldf, Operator **H, int &nNewLIS, TreeProjection ***newLIS, int &nNewSIS, TreeProjection ***newSIS, int &nNewHIS, TreeProjection ***newHIS) |
virtual TreeProjection * | convert2TreeProjection (Operator *a) const |
Protected Attributes | |
Operator * | argument |
NeutralElement | ne |
Protected Attributes inherited from Projection | |
CurvatureType | curvature |
MonotonicityType | monotonicity |
std::string | name |
OperatorName | operatorName |
double | scale |
int | variableIndex |
VariableType | variableType |
int | vIndex |
Protected Attributes inherited from Operator | |
BooleanType | initialized |
Static Protected Attributes | |
static int | count = 0 |
Additional Inherited Members | |
Public Attributes inherited from SmoothOperator | |
int | nCount |
Public Attributes inherited from Operator | |
int | nCount |
Implements the tree-projection operator within the family of SymbolicOperators.
The class TreeProjection implements a tree projection within the family of SymbolicOperators.
Definition at line 58 of file tree_projection.hpp.
TreeProjection::TreeProjection | ( | ) |
Default constructor
Definition at line 47 of file tree_projection.cpp.
TreeProjection::TreeProjection | ( | const std::string & | name_ | ) |
Default constructor
Definition at line 58 of file tree_projection.cpp.
TreeProjection::TreeProjection | ( | const TreeProjection & | arg | ) |
Copy constructor (deep copy).
Definition at line 70 of file tree_projection.cpp.
|
virtual |
Default destructor.
Definition at line 87 of file tree_projection.cpp.
|
protectedvirtual |
Automatic Differentiation in backward mode on the symbolic
level. This function generates an expression for a
backward derivative
dim | number of directions |
varType | the variable types |
component | and their components |
seed | the backward seed |
df | the result |
nNewIS | the number of new IS |
newIS | the new IS-pointer |
Reimplemented from Projection.
Definition at line 267 of file tree_projection.cpp.
|
protectedvirtual |
Automatic Differentiation in forward mode on the symbolic
level. This function generates an expression for a
forward derivative
dim | dimension of the seed |
varType | the variable types |
component | and their components |
seed | the forward seed |
nNewIS | the number of new IS |
newIS | the new IS-pointer |
Reimplemented from Projection.
Definition at line 215 of file tree_projection.cpp.
|
protectedvirtual |
Automatic Differentiation in symmetric mode on the symbolic
level. This function generates an expression for a
second order derivative.
dim | number of directions |
varType | the variable types |
component | and their components |
l | the backward seed |
S | forward seed matrix |
dimS | dimension of forward seed |
dfS | first order foward result |
ldf | first order backward result |
H | upper trianglular part of the Hessian |
nNewLIS | the number of newLIS |
newLIS | the new LIS-pointer |
nNewSIS | the number of newSIS |
newSIS | the new SIS-pointer |
nNewHIS | the number of newHIS |
newHIS | the new HIS-pointer |
Reimplemented from Projection.
Definition at line 335 of file tree_projection.cpp.
returnValue TreeProjection::clearStaticCounters | ( | ) |
This function clears all static counters. Although this
function is public it should never be used in C-code.
It is necessary for some Matlab-specific interfaces.
Please have a look into the header file
include/utils/matlab_acado_utils.hpp
for more details.
Definition at line 552 of file tree_projection.cpp.
|
virtual |
Provides a deep copy of the expression.
Reimplemented from Projection.
Definition at line 202 of file tree_projection.cpp.
|
virtual |
Provides a deep copy of a tree projection.
Reimplemented from SmoothOperator.
Definition at line 208 of file tree_projection.cpp.
|
protectedvirtual |
Operator * TreeProjection::getArgument | ( | ) | const |
Get argument from intermediate state
Definition at line 559 of file tree_projection.cpp.
|
virtual |
Reimplemented from Operator.
Definition at line 602 of file tree_projection.cpp.
|
virtual |
Checks whether the expression is depending on a variable
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Reimplemented from Projection.
Definition at line 504 of file tree_projection.cpp.
|
virtual |
Checks whether the expression is linear in
(or not depending on) a variable
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Reimplemented from Projection.
Definition at line 516 of file tree_projection.cpp.
|
virtual |
Checks whether the expression is zero or one
Reimplemented from Projection.
Definition at line 566 of file tree_projection.cpp.
|
virtual |
Checks whether the expression is polynomial in
the specified variables
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Reimplemented from Projection.
Definition at line 528 of file tree_projection.cpp.
|
virtual |
Checks whether the expression is rational in
the specified variables
dim | number of directions |
varType | the variable types |
component | and their components |
implicit_dep | implicit dependencies |
Reimplemented from Projection.
Definition at line 540 of file tree_projection.cpp.
|
virtual |
Reimplemented from Projection.
Definition at line 596 of file tree_projection.cpp.
|
virtual |
The function loadIndices passes an IndexList through
the whole expression tree. Whenever a variable gets the
IndexList it tries to make an entry. However if a
variable recognices that it has already been added
before it will not be allowed to make a second entry.
Note that all variables, in paticular the intermediate
states, will keep in mind whether they were allowed
to make an entry or not. This guarantees that
intermediate states are never evaluated twice if they
occur at several knots of the tree.
THIS FUNCTION IS FOR INTERNAL USE ONLY.
PLEASE CALL THIS FUNTION AT MOST ONES FOR AN EXPRESSION
AS A KIND OF INIT ROUTINE.
indexList | The index list to be filled with entries |
Reimplemented from Projection.
Definition at line 478 of file tree_projection.cpp.
Assignment Operator (deep copy).
Reimplemented from SmoothOperator.
Definition at line 103 of file tree_projection.cpp.
|
virtual |
Sets the argument (note that arg should have dimension 1).
Reimplemented from SmoothOperator.
Definition at line 162 of file tree_projection.cpp.
|
virtual |
Sets the argument (note that arg should have dimension 1).
Reimplemented from SmoothOperator.
Definition at line 193 of file tree_projection.cpp.
|
virtual |
Returns the argument or NULL if no intermediate argument available
Reimplemented from SmoothOperator.
Definition at line 579 of file tree_projection.cpp.
|
protectedvirtual |
Sets the name of the variable that is used for code export.
Reimplemented from Projection.
Definition at line 585 of file tree_projection.cpp.
|
protected |
Definition at line 281 of file tree_projection.hpp.
|
staticprotected |
Definition at line 282 of file tree_projection.hpp.
|
protected |
Definition at line 283 of file tree_projection.hpp.