A finite element solution of the predator-prey equation (the Lotke-Voltera system of ODEs) in MATLAB and FEniCS
The two versions of the solution implemented in matlab is for a siplified version of the equation. mkI is implemented in one dimension, omitting time dependent and non-linear terms, while mkII only assumes a constant predator population v = 1.
The solution implemented in Python for the following equation:
where delta_1, delta_2, alpha, and beta are constants, f and g some given source terms, and u_0 and v_0 some given initial conditions.