DDE using boost odeint

Is it possible to solve differential equations with time delay using the C ++ Boost - odeint library? For example, below the equation:

x'(t) = r*x(t)*(1 - x(t-tau)), 

where tau is a constant value for time delay.

+3
source share
1 answer

Yes, you can. But odeint is clearly not intended for DDE. There are two options for solving DDE with odeint:

  • You consider x and its discretized history as dependent variables and use steppers directly.
  • You only consider x as a dependent variable and pass the history using a system function (your rhs). But in this case, you should only use steppers that evaluate the state when multiplying timestamps, such as Euler or RK2.

, , , .

+2

All Articles