#include "ibex.h" using namespace ibex; int main(){ const int n = 2; Variable y(n); IntervalVector state(n); state[0] = 0.0; state[1] = 0.0; // Dynamique d'une voiture avec incertitude sur sa masse + PI Function ydot(y, Return ((1440.0 * (10.0 - y[0]) + 35.0 * y[1] - y[0] * (50.0 + 0.4 * y[0])) / Interval (990, 1010), 10.0 - y[0])); ivp_ode vdp = ivp_ode(ydot, 0.0, state); // Integration numerique ensembliste simulation simu = simulation(&vdp, 10.0, RK4, 1e-6); simu.run_simulation(); simu.export1d_yn("export-closed-loop.txt", 0); return 0; }