dae_optimization_tutorial_c/cfunction.cpp
Go to the documentation of this file.
1 void myAcadoDifferentialEquation( double *xx, double *f, void *user_data ){
2 
3  // x[0] -> time t
4  // x[1] -> v
5  // x[2] -> s
6  // x[3] -> m
7  // x[4] -> L
8  // x[5] -> u
9 
10  double t = xx[0];
11  double x = xx[1];
12  double l = xx[2];
13  double z = xx[3];
14  double u = xx[4];
15 
16 
17 
18  f[0] = -x + 0.5*x*x + u + 0.5*z;
19  f[1] = x*x + 3.0*u*u ;
20  f[2] = z + exp(z) - 1.0 + x ;
21 
22 
23 
24 }
void myAcadoDifferentialEquation(double *xx, double *f, void *user_data)
IntermediateState exp(const Expression &arg)


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:29