14#include <guanaqo/linalg/sparsity.hpp>
19using guanaqo::linalg::sparsity::SparseCSC;
43 std::span<const bool> J)
const;
54 std::span<real_t> qr);
Data structure for optimal control problems.
Represents a sparse multiple shooting formulation of the standard optimal control problem.
std::vector< real_t > values
SparseCSC< index_t, index_t > A_sparsity
std::vector< real_t > A_values
std::vector< index_t > A_outer_ptr
static LinearOCPSparseQP build(const LinearOCPStorage &ocp)
std::vector< index_t > outer_ptr
std::vector< index_t > A_inner_idx
std::vector< index_t > inner_idx
SparseCSC< index_t, index_t > Q_sparsity
std::vector< index_t > Q_outer_ptr
std::vector< index_t > Q_inner_idx
SparseCSC< index_t, index_t > sparsity
KKTMatrix build_kkt(real_t S, std::span< const real_t > Σ, std::span< const bool > J) const
Returns the lower part of the symmetric indefinite KKT matrix for the active set J and penalty factor...
std::vector< real_t > Q_values
Storage for a linear-quadratic OCP of the form.