Solves $$ \min_u\ || Bu - \nu ||{W\nu}^2 + \gamma^2 || u - u_d ||_{W_u}^2\ s.t.\quad \underbar{u}_i \leq u_i \leq \overline{u}_i \quad \forall i $$
where
- Provides setup routines (
setupWLS.h
) to turn the weighted least-squares control allocation problem above into a standard least-squares form$||Au-b||$ , s.t.$\underbar{u}\leq u \leq\overline{u}$ . - Exploits sparsity from diagonal weighing matrices.
-
QR
andCHOL
choices use efficiently updating QR and Cholesky factorisations.
- Does not solve general active-set problems, since highly optimised for control allocation where diagonal matrix
$W_u$ gives rise to sparsity. -
CG
no reliable. Only available when compiling with with-DAS_INCLUDE_CG
-
CHOL
less numerically stable with single floats. Choose lowcond_bound
and seesolveActiveSet.h