Connections between control allocation and linear quadratic control for weakly redundant systems. (March 2019)