Hi
We have a very large number of parameters in some of our applications. Most of them do not change during runtime and need only to be loaded into the solver once at the initialization or first call. This is related to this discussion: https://discourse.acados.org/t/solver-getting-slow-with-a-large-number-of-parameters/290/2
I can see in the generated acados_solver_…c file that there is a function called …_acados_update_params_sparse( … ). As I understand it this function only updates a subset of the parameters. Would it be possible to change the Matlab and Simulink interfaces to use this function? For Simulink we would need to specify e.g. an index matrix with ones for the parameters that we want to update, I guess.
Also, when some functions, derivatives, etc. depend on the parameters; is it possible to avoid that these will be re-calculated at every solve if the parameters have not been updated?
What do you think about this?
Thanks for your great work!