I have a model that uses a lookup table as part of a nonlinear constraint. This is working well in Matlab, and solves correctly. Now I would like to look at a large number of different cases, where each case has different values in the lookup table. So far I haven’t been able to figure out how to update the interpolation data without rebuilding the ocp object. This is an issue because the actual solve is much faster than the compile, so recompiling is costing me a lot of time with many repetitions. I tried passing the new data as a parameter, but Casadi’s interpolation only accepts numerical inputs, not symbolic.
Is it possible to update interpolation data inside a model without recompiling?