Hello
I am ODE model fitting using autodiff with Optimization.jl and was looking to improve my code with the use of StaticArrays. The code runs slower than I hoped and has a lot of memory allocations (initially 4G before being cut down to 1g). StaticArrays helped a lot with reducing allocations, but that didn’t have much of an effect on runtime unless I make initial guess of parameter values an MVector. This nearly cuts runtime in half and I was super excited until I found that my parameter estimates have diverged from the original code significantly. Some are nearly 200% lower while others stay close. Loss was also very similar to when I used a regular vector. Parameter values get further from the previous codes estimates the more iterations I optimize for. Has anyone encountered this before? There 13 parameters being fit and initialized by my guess vector for a system of 81 equations. It’s quite a large script and uses data I am not comfortable sharing, but if this sounds familiar to anyone I would love some advice.