In the code I wrote there is a ParametricNDSolve with four parameters. I want to minimize an error function with Minimize. If I consider ParametricNDSolve with just one parameter everything works, and Minimize takes nearly 114 s to evaluate. but if I enter other parameters and modify the code to take them into account, NMinimize stops working and continues to evaluate for an unspecified time without giving any results. I tried to change the Method, but nothing changes. Is it possible to get an idea of what the reasons are?
f[x,y] is a result from parametricNDSolve, tobs and fobs are observed quantities.