Hello,
I have a series of differential equations, and I can change the value of the integrator with a back call like this:
condition(u, t, integrator) = t==1000 # time of alteration
affect!(integrator) = integrator.u[4] += 500 # alter 4th value of the integrator
cb = DiscreteCallback(condition,affect!)
prob = ODEProblem(myFun!, u0, tspan, parms)
soln = solve(prob, AutoVern7(Rodas5()), callback=cb)
Is it possible to change the value of a parameter at a given time, let’s say t=1000? That is, instead of changing the whole integrator, I simply change the value of one parameter.
Thanks