sometimes I have to try different runtime parameters (via
ocp.set('p', p)) with a solver whose structure remains the same. Currently, the solver is rebuilt every time I restart the simulation in Matlab. But in fact rebuilding is unnecessary in these cases and time consuming.
How can I obtain the OCP-object from existing MEX-files and the corresponding shared library?