lotkavolterra¶
- probnum.problems.zoo.diffeq.lotkavolterra(t0=0.0, tmax=20.0, y0=None, params=(0.5, 0.05, 0.5, 0.05))[source]¶
Initial value problem (IVP) based on the Lotka-Volterra model.
The Lotka-Volterra (LV) model is defined through
\[\begin{split}f(t, y) = \begin{pmatrix} a y_1 - by_1y_2 \\ -c y_2 + d y_1 y_2 \end{pmatrix}\end{split}\]for some parameters \((a, b, c, d)\). Default is \((a, b)=(0.5, 0.05, 0.5, 0.05)\). This implementation includes the Jacobian \(J_f\) of \(f\).
- Parameters
t0 – Initial time. Default is 0.0
tmax – Final time. Default is 20.0
y0 – (shape=(2, )) – Initial value. Default is
[1., -1.]
.params – Parameter of the Lotka-Volterra model. Default is
(0.2, 0.2, 3.0)
.
- Returns
InitialValueProblem object describing the Lotka-Volterra system with the prescribed configuration.
- Return type