normalized state and input
DreamonZhu opened this issue · 2 comments
DreamonZhu commented
Hi alexliniger,
Line 73 in 3ec7805
In this place, you did the normalization for the problem. And I guess it was done by replacig "x'=T_x \times x", "u'=T_u \times u" and "s'=T_s*s".
Then,
Line 235 in 3ec7805
but here you just dealt with state x while doing nothing with input x and slack variable s? I don't know why?
alexliniger commented
The first part is normalizing the matrices of the optimization problem and thereby indirectly the optimization variables, the second line is normalizing the "measured" state x0
This function
Line 119 in 3ec7805
is then de-normalizing all the variables back to their metric values.
Normalizing the optimization variables is only depending on the matrices and the initial state x0, so I don't have to normalize anything else. But once I get the solution I have to get it back to my normal space.
I hope this helps, otherwise I suggest you just write down all the math for normalizing a QP.
DreamonZhu commented
Thanks a lot. I got it.