I’m trying to make a lot of ODE simulations and each has a specific callback condition. In
affect!, I need to change a few compartments of
integrator.u according to some known values. How can I do this?
For instance, how can I make
T4_dose below an input parameter for
affect!? This callback function adds
T4_dose to compartment 10 every 24 hours.
function affect!(integrator) T4_dose = 400.0 / 777.0 integrator.u += T4_dose end cbk = PeriodicCallback(affect!, 24.0);