|
CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
|
#include <loop_free_model.hpp>

Public Types | |
| using | CGB = CppAD::cg::CG< Base > |
| using | Arg = Argument< Base > |
| using | VectorSet = std::vector< std::set< size_t > > |
Protected Attributes | |
| ADFun< CGB > *const | fun_ |
| std::vector< size_t > | dependentIndexes_ |
| std::map< size_t, size_t > | dependentOrig2Local |
| VectorSet | jacTapeSparsity_ |
| bool | jacSparsity_ |
| VectorSet | hessTapeTempSparsity_ |
| VectorSet | hessTapeOrigEqSparsity_ |
| bool | hessSparsity_ |
Altered model without the loop equations and with extra dependents for the non-indexed temporary variables used by loops
Definition at line 29 of file loop_free_model.hpp.
| using CppAD::cg::LoopFreeModel< Base >::Arg = Argument<Base> |
Definition at line 32 of file loop_free_model.hpp.
| using CppAD::cg::LoopFreeModel< Base >::CGB = CppAD::cg::CG<Base> |
Definition at line 31 of file loop_free_model.hpp.
| using CppAD::cg::LoopFreeModel< Base >::VectorSet = std::vector<std::set<size_t> > |
Definition at line 33 of file loop_free_model.hpp.
|
inline |
Creates a model for the non-indexed operations
| fun | |
| dependentOrigIndexes |
Definition at line 69 of file loop_free_model.hpp.
|
inlinevirtual |
Definition at line 392 of file loop_free_model.hpp.
|
inline |
hessian - original equations
Definition at line 348 of file loop_free_model.hpp.
|
inline |
Determines the Hessian for the temporary variables only used by each loop
| loopHessInfo | |
| x | the independent variables |
| temps | |
| noLoopEvalJacSparsity | |
| individualColoring | |
| iterationIndexOp |
Hessian - temporary variables
Some equations are not present in all iterations
Definition at line 235 of file loop_free_model.hpp.
|
inline |
Creates conditional nodes for temporary variables
| handler | source code handler |
| iterations | the iterations where the value should be evaluated |
| iterCount | the number of iteration of the loop |
| value | the value determined inside the loop |
| iterationIndexOp | the iteration index operation for this loop |
must create a conditional element so that this contribution is only evaluated at the relevant iterations
Definition at line 173 of file loop_free_model.hpp.
Referenced by CppAD::cg::LoopFreeModel< Base >::calculateJacobianHessianUsedByLoops().
|
inline |
Definition at line 124 of file loop_free_model.hpp.
|
inline |
Definition at line 113 of file loop_free_model.hpp.
|
inline |
Definition at line 158 of file loop_free_model.hpp.
|
inline |
Definition at line 153 of file loop_free_model.hpp.
|
inline |
Definition at line 120 of file loop_free_model.hpp.
|
inline |
Definition at line 109 of file loop_free_model.hpp.
|
inline |
Provides the dependent variables indexes present in the original model
Definition at line 105 of file loop_free_model.hpp.
|
inline |
Definition at line 85 of file loop_free_model.hpp.
|
inline |
Definition at line 89 of file loop_free_model.hpp.
|
inline |
Definition at line 97 of file loop_free_model.hpp.
|
inline |
Definition at line 93 of file loop_free_model.hpp.
|
protected |
The dependent variables in this tape to their original indexes
Definition at line 42 of file loop_free_model.hpp.
Referenced by CppAD::cg::LoopFreeModel< Base >::calculateHessian4OrignalEquations(), CppAD::cg::LoopFreeModel< Base >::calculateJacobianHessianUsedByLoops(), CppAD::cg::LoopFreeModel< Base >::getOrigDependentIndexes(), and CppAD::cg::LoopFreeModel< Base >::LoopFreeModel().
|
protected |
Definition at line 43 of file loop_free_model.hpp.
|
protected |
The tape
Definition at line 38 of file loop_free_model.hpp.
Referenced by CppAD::cg::LoopFreeModel< Base >::calculateHessian4OrignalEquations(), and CppAD::cg::LoopFreeModel< Base >::calculateJacobianHessianUsedByLoops().
|
protected |
Definition at line 60 of file loop_free_model.hpp.
|
protected |
Hessian sparsity pattern for the original model equations in the tape (ignores the equations for the temporaries)
Definition at line 58 of file loop_free_model.hpp.
Referenced by CppAD::cg::LoopFreeModel< Base >::calculateHessian4OrignalEquations().
|
protected |
Hessian sparsity pattern for equations used to determine the temporaries (ignores the the original model equations)
Definition at line 53 of file loop_free_model.hpp.
Referenced by CppAD::cg::LoopFreeModel< Base >::calculateJacobianHessianUsedByLoops().
|
protected |
Definition at line 48 of file loop_free_model.hpp.
|
protected |
Jacobian sparsity pattern of the tape
Definition at line 47 of file loop_free_model.hpp.