Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
interfaces
matlab
examples
ocp
discrete_time_rocket_c
discrete_time_rocket_c/cfunction.cpp
Go to the documentation of this file.
1
void
myAcadoDifferentialEquation
(
double
*x,
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] -> u
8
9
double
h = 0.01;
10
11
double
t = x[0];
12
double
v
= x[1];
13
double
s = x[2];
14
double
m = x[3];
15
double
u = x[4];
16
17
f[0] = s + h*
v
;
18
f[0] = v + h*(u-0.02*v*
v
)/m;
19
f[0] = m - h*0.01*u*u;
20
21
}
myAcadoDifferentialEquation
void myAcadoDifferentialEquation(double *x, double *f, void *user_data)
Definition:
discrete_time_rocket_c/cfunction.cpp:1
v
#define v
acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:29