cfunction.cpp
Go to the documentation of this file.
00001 void myAcadoDifferentialEquation( double *x, double *f, void *user_data ){
00002 
00003     // x[0] -> time t
00004     // x[1] -> v
00005     // x[2] -> s
00006     // x[3] -> m
00007     // x[4] -> L
00008     // x[5] -> u
00009     
00010     double t = x[0];
00011     double v = x[1];
00012     double s = x[2];
00013     double m = x[3];
00014     double L = x[4];
00015     double u = x[5];
00016 
00017     f[0] =  (u-0.02*v*v)/(m);       //dot(v)
00018     f[1] =  v;                      //dot(s)
00019     f[2] =  -0.01*u*u;              //dot(m)
00020     f[3] =  u*u;                    //dot(L)
00021 
00022 }


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 11:57:54