#include <alpaqa/inner/directions/panoc-ocp/lqr.hpp>
Public Types | |
using | Dim = alpaqa::Dim< config_t > |
Public Member Functions | |
StatefulLQRFactor (Dim d) | |
void | factor_masked (auto &&AB, auto &&Q, auto &&R, auto &&S, auto &&R_prod, auto &&S_prod, auto &&q, auto &&r, auto &&u, auto &&J, auto &&K, bool use_cholesky) |
void | solve_masked (auto &&AB, auto &&J, rvec Δu_eq, rvec Δx) |
Public Attributes | |
Dim | dim |
mat | P {dim.nx, dim.nx} |
mat | gain_K {dim.nu * dim.nx, dim.N} |
mat | e {dim.nu, dim.N} |
vec | s {dim.nx} |
vec | c {dim.nx} |
vec | y {dim.nx} |
vec | t {dim.nu} |
vec | R̅_sto {dim.nu * dim.nu} |
vec | S̅_sto {dim.nu * dim.nx} |
vec | BiJ_sto {dim.nx * dim.nu} |
vec | PBiJ_sto {dim.nx * dim.nu} |
mat | PA {dim.nx, dim.nx} |
real_t | min_rcond = 1 |
using Dim = alpaqa::Dim<config_t> |
|
inline |
|
inline |
AB | System matrix A & input matrix B |
Q | State cost matrix Q |
R | Input cost matrix R |
S | Cross cost matrix S |
R_prod | Product with input cost matrix R |
S_prod | Product with cross cost matrix S |
q | Linear state factor q |
r | Linear input factor r |
u | Fixed inputs u |
J | Index set of inactive constraints |
K | Index set of active constraints |
use_cholesky | Use Cholesky instead of LU solver |