Go to the source code of this file.
◆ CT_LOADABLE_TERM
#define CT_LOADABLE_TERM |
( |
|
SCALAR_EVAL, |
|
|
|
SCALAR, |
|
|
|
TERM, |
|
|
|
TERMNAME |
|
) |
| |
Value:if (termKind == TERMNAME) \
{ \
term = std::shared_ptr<TERM<STATE_DIM, CONTROL_DIM, SCALAR_EVAL, SCALAR>>( \
new TERM<STATE_DIM, CONTROL_DIM, SCALAR_EVAL, SCALAR>()); \
term->setName(TERMNAME); \
}
◆ CT_LOADABLE_TERMS
#define CT_LOADABLE_TERMS |
( |
|
SCALAR_EVAL, |
|
|
|
SCALAR |
|
) |
| |
Value: CT_LOADABLE_TERM(SCALAR_EVAL,
SCALAR, TermQuadratic,
"quadratic") \
CT_LOADABLE_TERM(SCALAR_EVAL,
SCALAR, TermMixed,
"mixed") \
CT_LOADABLE_TERM(SCALAR_EVAL,
SCALAR, TermQuadMult,
"quadratic-multiplicative") \
CT_LOADABLE_TERM(SCALAR_EVAL,
SCALAR, TermSmoothAbs,
"smooth-abs")
CppAD::AD< CppAD::cg::CG< double > > SCALAR
#define CT_LOADABLE_TERM(SCALAR_EVAL, SCALAR, TERM, TERMNAME)
Definition: TermLoadMacros.hpp:10
Referenced by ct::optcon::CostFunctionAnalytical< STATE_DIM, CONTROL_DIM, SCALAR >::loadFromConfigFile().