Hello,
I have been working on the following OCP recently and I have trouble getting a solution when control allocation is implemented into the constraints.
Here is the code repo:
GitHub - ErcBunny/learn_acados.
To reproduce, please run omnihex.py
. Without the allocation part (see the referenced lines below), the code runs nicely.
And this is what I can get when the allocation part is commented out as shown in the above code.
But once the control allocation part is involved, the solver (HPIPM) returns NaN immediately, even if the allocated thrust constraints are not violated as shown above in thrust.png
.
I sincerely look forward to your suggestions. Thank you for reading and have a good day~