Control MPC solve method
I wonder why use osqp method to solve the MPC matrix without build QP problem like before which used QPOASES and made an H & f with reference to matrix A and B. Now we just use matrix Q & P to solve. I can not understand the QP progress. Could u give me a reference, like a paper or something? Very appreciate!
I comprehend it already. The solve method with osqp build the QP problem with x & u together. And make the A & B matrix into the equality constraint. The qpoases method before build the QP problem just with the input matrix u as the optimize variable.
I comprehend it already. The solve method with osqp build the QP problem with x & u together. And make the A & B matrix into the equality constraint. The qpoases method before build the QP problem just with the input matrix u as the optimize variable.
I encountered the same question. In apollo mpc I could not find any code about prediction, in controller only matrix_ad_ and matrix_bd_ were calculated at time k, but no prediction future action and pass inot osqp. Did you get the ider of these codes?
I comprehend it already. The solve method with osqp build the QP problem with x & u together. And make the A & B matrix into the equality constraint. The qpoases method before build the QP problem just with the input matrix u as the optimize variable.
I encountered the same question. In apollo mpc I could not find any code about prediction, in controller only matrix_ad_ and matrix_bd_ were calculated at time k, but no prediction future action and pass inot osqp. Did you get the ider of these codes?
You may take a look at mpc_solver. It contains equality constraint matrix by which the relation Xk+1 = AXk+BU is stated.
I comprehend it already. The solve method with osqp build the QP problem with x & u together. And make the A & B matrix into the equality constraint. The qpoases method before build the QP problem just with the input matrix u as the optimize variable.
I encountered the same question. In apollo mpc I could not find any code about prediction, in controller only matrix_ad_ and matrix_bd_ were calculated at time k, but no prediction future action and pass inot osqp. Did you get the ider of these codes?
You may take a look at mpc_solver. It contains equality constraint matrix by which the relation Xk+1 = A_Xk+B_U is stated.
That's the truth.