I’m modelling cell population dynamics. Cells die and divide so the size of system is always changing. I love DifferentialEquations.jl because it is the only library I know of that has an API for this. Most of my state variables can trigger events (i.e. death or division) so it seems that VectorContinuousCallback
is the way to go. Unfortunately, the constructor for VectorContinuousCallback requires the length of the returned vector which in my case will change frequently. I could specify a very large length and pad the return vector with non-zero values but that seems inelegant and inefficient.
Have I missed something in the API? Can I simple change VectorContinuousCallback.len
in an affect!
call? What is the best way to handle this?