Storage for a linear-quadratic OCP of the form.
ₙ₋₁
minimize ∑ [½ uᵢᵀ Rᵢ uᵢ + uᵢᵀ
S xᵢ + ½ xᵢᵀ Qᵢ xᵢ + rᵢᵀuᵢ + qᵢᵀxᵢ] + ½ xₙᵀ Qₙ xₙ + qₙᵀ xₙ
ⁱ⁼⁰
s.t. x₀ = b₀
xᵢ₊₁ = Aᵢ xᵢ + Bᵢ uᵢ + bᵢ₊₁
lᵢ ≤ Cᵢ xᵢ + Dᵢ uᵢ ≤ uᵢ
lₙ ≤ Cₙ xₙ ≤ uₙ
guanaqo::MatrixView< real_t, index_t > S(index_t i)
- Examples
- solve-ocp.cpp.
Definition at line 37 of file ocp.hpp.
|
| guanaqo::MatrixView< real_t, index_t > | H (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | Q (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | R (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | S (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | S_trans (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | CD (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | C (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | D (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | AB (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | A (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | B (index_t i) |
| guanaqo::MatrixView< const real_t, index_t > | H (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | Q (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | R (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | S (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | S_trans (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | CD (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | C (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | D (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | AB (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | A (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | B (index_t i) const |
| index_t | num_variables () const |
| index_t | num_constraints () const |
| index_t | num_dynamics_constraints () const |
| guanaqo::MatrixView< real_t, index_t > | qr () |
| guanaqo::MatrixView< real_t, index_t > | qr (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | q (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | r (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | b () |
| guanaqo::MatrixView< real_t, index_t > | b (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | b_min () |
| guanaqo::MatrixView< real_t, index_t > | b_min (index_t i) |
| guanaqo::MatrixView< real_t, index_t > | b_max () |
| guanaqo::MatrixView< real_t, index_t > | b_max (index_t i) |
| guanaqo::MatrixView< const real_t, index_t > | qr () const |
| guanaqo::MatrixView< const real_t, index_t > | qr (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | q (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | r (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | b () const |
| guanaqo::MatrixView< const real_t, index_t > | b (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | b_min () const |
| guanaqo::MatrixView< const real_t, index_t > | b_min (index_t i) const |
| guanaqo::MatrixView< const real_t, index_t > | b_max () const |
| guanaqo::MatrixView< const real_t, index_t > | b_max (index_t i) const |
| KKTError | compute_kkt_error (const Solution &sol) const |