Hi, your code cannot work, because: - the objective function (cost) does not call the ode solver - names between data and model output do not match The docs (for example Vignette 2, p14) shows you how to write an objective function. thpe