BVP Solver

323 views
Skip to first unread message

BB

unread,
Aug 27, 2019, 2:08:38 PM8/27/19
to pystatsmodels
Hi all, 

This might be a little out-of-topic here but, does anyone know the most widely used boundary-value problem solver for Python, the equivalent of BVP4C in Matlab? Preferably a package with lots of documented examples. 

Thanks,

Warren Weckesser

unread,
Aug 27, 2019, 9:03:17 PM8/27/19
to pystat...@googlegroups.com
Take a look at the SciPy function 'scipy.integrate.solve_bvp':

https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_bvp.html

The docstring has a couple of examples, and for a couple more, you can
check out these answers on stackoverflow:

https://stackoverflow.com/questions/44867171/solving-a-bvp-with-scipys-solve-bvp/44867572#44867572
https://stackoverflow.com/questions/51733696/specify-different-timepoints-for-boundary-conditions-of-scipys-odeint/51734783#51734783


Warren



> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "pystatsmodels" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pystatsmodel...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pystatsmodels/a3db9523-0f71-4472-b73a-f61c1742e746%40googlegroups.com.
>

BB

unread,
Aug 28, 2019, 5:10:16 AM8/28/19
to pystatsmodels
Thank you. Much appreciated.


On Wednesday, August 28, 2019 at 4:03:17 AM UTC+3, Warren wrote:
On 8/27/19, BB <burakb...@gmail.com> wrote:
> Hi all,
>
> This might be a little out-of-topic here but, does anyone know the most
> widely used boundary-value problem solver for Python, the equivalent of
> BVP4C in Matlab? Preferably a package with lots of documented examples.
>


Take a look at the SciPy function 'scipy.integrate.solve_bvp':

    https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_bvp.html

The docstring has a couple of examples, and for a couple more, you can
check out these answers on stackoverflow:

    https://stackoverflow.com/questions/44867171/solving-a-bvp-with-scipys-solve-bvp/44867572#44867572
    https://stackoverflow.com/questions/51733696/specify-different-timepoints-for-boundary-conditions-of-scipys-odeint/51734783#51734783


Warren



> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "pystatsmodels" group.
> To unsubscribe from this group and stop receiving emails from it, send an
Reply all
Reply to author
Forward
0 new messages