Skip to main content

Module boundary_value_problems

Module boundary_value_problems 

Source
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’s solve_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 guess y at each mesh point. Intervals whose relative defect exceeds the tolerance are split until it is met everywhere or the mesh reaches max_nodes (then converged is false).
solve_bvp_shooting
Solves the boundary value problem by single shooting from the guess initial_state for y(a). boundary(y(a), y(b)) must return as many residuals as there are state components.