Integrate stiff ODEs with Python

前端 未结 4 1583
深忆病人
深忆病人 2020-12-13 15:18

I\'m looking for a good library that will integrate stiff ODEs in Python. The issue is, scipy\'s odeint gives me good solutions sometimes, but the slightest change

4条回答
  •  一生所求
    2020-12-13 15:20

    PyDSTool wraps the Radau solver, which is an excellent implicit stiff integrator. This has more setup than odeint, but a lot less than PyGSL. The greatest benefit is that your RHS function is specified as a string (typically, although you can build a system using symbolic manipulations) and is converted into C, so there are no slow python callbacks and the whole thing will be very fast.

提交回复
热议问题