#include <alpaqa/inner/directions/panoc-ocp/lqr.hpp>
template<Config Conf>
struct alpaqa::StatefulLQRFactor< Conf >
Definition at line 38 of file lqr.hpp.
|
| 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) |
◆ Dim
◆ StatefulLQRFactor()
◆ factor_masked()
template<Config Conf>
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 ) |
|
inline |
- Parameters
-
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 |
Definition at line 59 of file lqr.hpp.
◆ solve_masked()
template<Config Conf>
void solve_masked |
( |
auto && | AB, |
|
|
auto && | J, |
|
|
rvec | Δu_eq, |
|
|
rvec | Δx ) |
|
inline |
◆ dim
◆ gain_K
template<Config Conf>
mat gain_K {dim.nu * dim.nx, dim.N} |
◆ R̅_sto
template<Config Conf>
vec R̅_sto {dim.nu * dim.nu} |
◆ S̅_sto
template<Config Conf>
vec S̅_sto {dim.nu * dim.nx} |
◆ BiJ_sto
template<Config Conf>
vec BiJ_sto {dim.nx * dim.nu} |
◆ PBiJ_sto
template<Config Conf>
vec PBiJ_sto {dim.nx * dim.nu} |
◆ PA
◆ min_rcond
The documentation for this struct was generated from the following file:
- src/alpaqa/include/alpaqa/inner/directions/panoc-ocp/lqr.hpp