- 3.0.2 optimal control module.
TermLoadMacros.hpp File Reference
#include "TermLinear.hpp"
#include "TermQuadratic.hpp"
#include "TermQuadMult.hpp"
#include "TermMixed.hpp"
#include "TermSmoothAbs.hpp"

Go to the source code of this file.

Macros

#define CT_LOADABLE_TERM(SCALAR_EVAL, SCALAR, TERM, TERMNAME)
 
#define CT_LOADABLE_TERMS(SCALAR_EVAL, SCALAR)
 

Macro Definition Documentation

◆ 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, TermLinear, "linear") \
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().