alexliniger / MPCC

Model Predictive Contouring Controller (MPCC) for Autonomous Racing
Apache License 2.0
1.29k stars 364 forks source link

Normalisation for QP #52

Closed dwirya closed 3 years ago

dwirya commented 3 years ago

Hi Alex,

I'm currently new to optimisation theory and I don't quite follow why we need to normalise the QP problem as seen in your C++ code. Does this result in obtaining the solution faster ? Additionally, how did you get the normalisation parameters ? Thank you in advance.

Regards, Dennis

alexliniger commented 3 years ago

Sometimes normalization can help, especially if some of the states and actions are in completely different ranges, but this is more related to numerical issues. The normalization parameters are just chosen such that the states are in the +/- 1 range. But generally it is not really necessary, in the full size version it works good without normalization. The main branch does not work well for full sized cars. Best, Alex

dwirya commented 3 years ago

I see, thank you for the clarification!

Kind regards, Dennis