DDE使用boost odeint [英] DDE using boost odeint
本文介绍了DDE使用boost odeint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能使用C ++升压解决时间延迟微分方程 - odeint
图书馆 ?对于下面的等式一个实例:
Is it possible to solve a time delay differential equations using C++ Boost - odeint library ? For an instance below equation:
x'(t) = r*x(t)*(1 - x(t-tau)),
,其中tau蛋白为时间延迟恒定值
where tau is a constant value for time delay.
推荐答案
是的,可以。但odeint未明确设计为延迟微分方程。有两种可能性来解决odeint延迟微分方程:
Yes, you can. But odeint is not explicitly designed for DDEs. There are two possibilities to solve DDEs with odeint:
- 您考虑x和它的离散历史dependend变量,直接使用步进电机。
- 您只考虑x作为因变量,通过历史与系统功能(你r.h.s.)。但在这种情况下,你应该只使用它你时间步长乘以评估状态步进,像欧拉或RK2。
如果我有时间,我会写一个更具体的答案,也许有些code片段。
If I have time I will write a more concrete answer, maybe with some code snippets.
这篇关于DDE使用boost odeint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文