45 double t = x_[ 0] + ((
double*)userData)[0];
59 double externalTimeOffset = 100.0;
60 map.setUserData( &externalTimeOffset );
Allows to setup and evaluate a general function based on SymbolicExpressions.
#define USING_NAMESPACE_ACADO
DVector evaluate(const EvaluationPoint &x, const int &number=0)
Allows to setup function evaluation points.
returnValue setX(const DVector &x)
void my_function(double *x_, double *f, void *userData)
virtual returnValue print(std::ostream &stream=std::cout, const std::string &name=DEFAULT_LABEL, const std::string &startString=DEFAULT_START_STRING, const std::string &endString=DEFAULT_END_STRING, uint width=DEFAULT_WIDTH, uint precision=DEFAULT_PRECISION, const std::string &colSeparator=DEFAULT_COL_SEPARATOR, const std::string &rowSeparator=DEFAULT_ROW_SEPARATOR) const
returnValue setT(const double &t)