Avoiding unnecessary code generation

Hi :wave:

I am using the Matlab interface of acados and I see that the latest changes on using the template based interface currently force the code generation and compilation, every time the ocp object is initialized. It would be really nice if the settings compile_interface and codgen_model worked properly again, so that to give the possibility to skip the code generation and compilation.

Looking forward for this feature!
Thanks.

We’ll try to make it happen soon.
@yzwang

Hi! Any update about this?

Hi,

Sorry for the long silence.

I think codgen_model is not something we can bring back after switching to the template based backend in Matlab full template based OCP solver by yzuuang · Pull Request #934 · acados/acados · GitHub
The option compile_interface should work properly still.
What we should implement is to load a compiled acados OCP solver (or integrator) from a previous run, as it is supported in Python.

Best,
Jonathan