You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a problem I've been encountering with more or less every BifurcationKit example online. Here's an example. I try to run the following code:
using Revise, Plots
using BifurcationKit
using Accessors
const BK = BifurcationKit
function Pop!(du, X, p, t = 0)
(;r,K,a,ϵ,b0,e,d) = p
x, y, u, v = X
p = a * x / (b0 * (1 + ϵ * u) + x)
du[1] = r * (1 - x/K) * x - p * y
du[2] = e * p * y - d * y
s = u^2 + v^2
du[3] = u-2pi * v - s * u
du[4] = 2pi * u + v - s * v
du
end
par_pop = ( K = 1., r = 6.28, a = 12.56, b0 = 0.25, e = 1., d = 6.28, ϵ = 0.2, )
z0 = [0.1,0.1,1,0]
prob = BifurcationProblem(Pop!, z0, par_pop, (@optic _.b0);
record_from_solution = (x, p; k...) -> (x = x[1], y = x[2], u = x[3]))
opts_br = ContinuationPar(p_min = 0., p_max = 20.0, ds = 0.002, dsmax = 0.01, n_inversion = 6, nev = 4)
This is a problem I've been encountering with more or less every BifurcationKit example online. Here's an example. I try to run the following code:
and I get the following error:
By the way, I think Accessors.jl is a necessary dependency to get the optic macro now (maybe this was not the case previously).
The text was updated successfully, but these errors were encountered: