coin-or / qpOASES

Open-source C++ implementation of the recently proposed online active set strategy
GNU Lesser General Public License v2.1
397 stars 132 forks source link

Output Lagrange multipliers from the Simulink interface #146

Closed Giapducnguyen closed 5 months ago

Giapducnguyen commented 5 months ago

Dear Authors and the Community,

I would appreciate it if anyone could guide me on modifying the file named "qpOASES_SQProblem.cpp" to output Lagrange multipliers. Another request is to identify the indices for variable bounds and constraints inside the outputted Lagrange multiplier of the Simulink interface. I could not find this information in the provided examples and manual.

Thank you very much in advance.

Giapducnguyen commented 5 months ago

Those who have the same problems can refer to the following images. Hopefully, the modification is correct. Additionally, the Lagrange multiplier order is as [variable bounds; constraints]. image image