Running single functions of the auto-generated code via C-interface

Hi,

Specifically, I’m wondering how I can see what constraints are active and which are not. Is there a simple way of doing this?

One way would be to check the multipliers, an inequality multiplier which is (numerically) bigger than zero indicate that the corresponding constraint is active.

If you want to evaluate the nonlinear constraint h externally, this can indeed be done calling

my_solver_name_constr_h_fun

This boils down to calling a CasADi generated function in C.
Unfortunately, I don’t have a good reference for this right now.

One thing that I agree would be very useful is to add a get functionality for the full inequality residual at a given shooting node. Right now, one can only get the max norm of the residual over all inequalities, which gives not much insight on which constraints are violated.