Hi

*Context:*

I’m using multiple shooting with a non-uniform grid (more nodes at the beginning then at the end). This helps me to have a long prediction horizon without adding much more nodes (=> decision variables => computation time.

Since the time between nodes differs along the horizon, the (sample) time at which the dynamic equations are discretized also differs. Acados does this automatically when the dynamics are provided explicitly, using the explicit Runge-Kutta integrator. This results in different A and B matrices for each stage in the horizon, which is what I want. However, the built-in ERK integrator also introduces additional computation time, as the discretization is done online.

*Question:*

To avoid the extra computation time of using ERK, I would like to provide each stage of the OCP with a model that is pre-discretized at a stage-dependent sampling time. Is there a build-in function that allows me to set the A and B matrices for each stage?

Kind regards,

Boudewijn