Is your feature request related to a problem? Please describe.
I find it hard to translate the help given in FAQ on Optimization/AD and the basic example into code that actually performs optimization of a combination of a subset of parameters and initial states.
Describe the solution you’d like
Modify the basic example where the parameters to optimize comprise only a subset of the tunable parameters of the MTK system but include also a subset of initial parameters of the MTK ODE system.
Describe alternatives you’ve considered
I explored different approaches at [#3952] but got confused with SciMLStructures.Initials() and ODEProblem.u0