Expand description
Two-point boundary value problems y' = f(x, y) on [a, b] with g(y(a), y(b)) = 0.
solve_bvp_shooting: single shooting. The unknown initial state is found by Newton’s method on the boundary residual, each evaluation integrating the initial value problem with an adaptive Dormand-Prince 5(4) method. Simple and accurate for well-conditioned problems; it fails when the initial value problem is unstable over[a, b](e.g. boundary layers).solve_bvp_collocation: global collocation with the fourth-order Hermite-Simpson (Lobatto IIIA) scheme, solved by damped Newton on the whole mesh, with mesh refinement where the defect of the cubic interpolant is large (the method of SciPy’ssolve_bvp). Robust for stiff and boundary-layer problems.
See the book entry Boundary value problems.
Structs§
- BvpOptions
- Options for the boundary value solvers.
- BvpSolution
- A solution on a mesh, with derivatives for cubic Hermite interpolation.
Functions§
- solve_
bvp_ collocation - Solves the boundary value problem by Hermite-Simpson collocation, starting from the mesh
x(strictly monotonic, at least two points) and the guessyat each mesh point. Intervals whose relative defect exceeds the tolerance are split until it is met everywhere or the mesh reachesmax_nodes(thenconvergedis false). - solve_
bvp_ shooting - Solves the boundary value problem by single shooting from the guess
initial_statefory(a).boundary(y(a), y(b))must return as many residuals as there are state components.