A sparse MPC solver for walking motion generation (old version).
|
Note, that parts of state and control matrices (Model of the system) corresponding to x and y coordinates are identical. This property is preserved in all subsequent transformations, hence there is no need to compute and store all elements of static matrices (Cholesky factor for example). Consequently, we mainly operate on 3x3 matrices, which are stored in the following way:
0 3 6 1 4 7 2 5 8
The Cholesky factor consists of two parts:
full L | compressed L a | 0 a | a b 0 c 0 | b c 0 b 0 c | ===> d e d 0 e | ===> f g 0 d 0 e | ... 0 f 0 g | 0 f 0 g | .... |
0 3 6 1 4 7 2 5 8 9 12 15 18 21 24 10 13 16 19 22 25 11 14 17 20 23 26 ... ...
Consider the variable
Suppose that variables and have simple bounds (and the rest of the variables are are not subject to inequality constraints), i.e.,
The above four inequality constraints can be written as
where
Note that both and can not be in the working set at the same time (because if we are on one of the bounds we can not be on the other one).