Use solver in C++ environment

Hi Jonathan,

for me it is essential to get the solver running in C++ as soon as possible. I understand if you do not have the time to solve this immediately. So could you please give me some hints in which files I have to add what?

At the moment I really don’t know where to start and what to do.

Regarding the problems in my initial post:

1st issue: Invalid MEX-File error

In Linux (Ubuntu 18.04) the current Matlab (R2019b) working directory seems to be not considered as runtime search path for libraries. However, it uses the environment variable LD_RUN_PATH. Therefore, adding export LD_RUN_PATH="$(pwd)"/c_generated_code to “env.sh” solves this problem on my machine.

2nd issue: solver in “main_pendulum_12” fails

In file “main_pendulum_12.c” one can see that the initial guess of the x-trajectory is set to zero. If it is set to the same value as in the Matlab script (“test_template_pendulum_exact_hess.m”) the solver succeeds.

BR
Martin