Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.73 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.73 KB

BridgeDiffEq.jl

Build Status Coverage Status codecov.io

This package contains bindings for Bridge.jl to allow it to be used with the JuliaDiffEq common interface. For more information on using the solvers from this package, see the DifferentialEquations.jl documentation.

Common API Usage

This library adds the common interface to Bridge.jl's solvers. See the DifferentialEquations.jl documentation for details on the interface. Following the Black-Scholes example from the SDE tutorial, we can solve this using BridgeEuler via the following:

α=1
β=1
u0=1/2
f(u,p,t) = α*u
g(u,p,t) = β*u
dt = 1//2^(4)
tspan = (0.0,1.0)
prob = SDEProblem(f,g,u0,(0.0,1.0))
sol = solve(prob,BridgeEuler(),dt=dt)
using Plots; plot(sol,vars=(1,2,3))

The options available in solve are documented at the common solver options page. The available methods are documented at the ODE solvers page and at the SDE solvers page.