Updates: I can now run the example in a somewhat isolated form, by putting the needed libs on the same folder as the generated .exe .
However, on starting to code the NMPC problem, I have some doubts:
1) On the nlp_codegen example, "f" is the function ot minimize (the cost function), but in other examples (nmpc_ipopt.py) F is used as the dynamics function - which is right?
2) I want to use a system dynamics in the DAE form, therefore I should use the DaeBuilder, can you confirm this?
3) I shall define as SX::sym my state and control input, or only the control input?
4) How shall I build the graph for the dynamics over an horizon NU? I was trying to do it as suggested on the rocket_ipopt example, but I did not understand how the whole dynamics are simulated for all the iterations, or how they are not all used (also they are put in the G function and not in F)
Thank you in advance for any info!
Best regards,
Pedro