我正在尝试解决一个简单的 Lotka Volterra 模型
using DifferentialEquations
f2 = @ode_def_nohes LVtest begin
dx = x*(1.0 - A*x - B*y)
dy = y*(rho - C*x - D*y)
end A B C D rho
u0 = [1;1]
tspan = (0.0,300.0)
p = [0.2,0.3,0.35,0.2,0.25]
prob = ODEProblem(f2,u0,tspan,p)
sol = solve(prob,Tsit5())
这将返回错误:
错误:加载错误:不精确错误()