Skip to content

Commit c43034b

Browse files
committed
added: nonlinear constraint vectors in getinfo
1 parent ea1f2e3 commit c43034b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/controller/execute.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,10 @@ are also available:
112112
- `:gc`: custom nonlinear constraints values at the optimum, ``\mathbf{g_c}``
113113
- `:∇J` or *`:nablaJ`* : optimal gradient of the objective function, ``\mathbf{\nabla} J``
114114
- `:∇²J` or *`:nabla2J`* : optimal Hessian of the objective function, ``\mathbf{\nabla^2}J``
115+
- `:g` : optimal nonlinear inequality constraint values, ``\mathbf{g}``
115116
- `:∇g` or *`:nablag`* : optimal Jacobian of the inequality constraint, ``\mathbf{\nabla g}``
116117
- `:∇²ℓg` or *`:nabla2lg`* : optimal Hessian of the inequality Lagrangian, ``\mathbf{\nabla^2}\ell_{\mathbf{g}}``
118+
- `:geq` : optimal nonlinear equality constraint values, ``\mathbf{g_{eq}}``
117119
- `:∇geq` or *`:nablageq`* : optimal Jacobian of the equality constraint, ``\mathbf{\nabla g_{eq}}``
118120
- `:∇²ℓgeq` or *`:nabla2lgeq`* : optimal Hessian of the equality Lagrangian, ``\mathbf{\nabla^2}\ell_{\mathbf{g_{eq}}}``
119121

src/controller/nonlinmpc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ end
526526
"""
527527
addinfo!(info, mpc::NonLinMPC) -> info
528528
529-
For [`NonLinMPC`](@ref), add `:sol`, the custom nonlinear objective `:JE`, the custom
530-
constraint `:gc`, and the various derivatives.
529+
For [`NonLinMPC`](@ref), add `:sol`, the custom nonlinear objective `:JE`, the nonlinear
530+
constraint vectors and the various derivatives.
531531
"""
532532
function addinfo!(info, mpc::NonLinMPC{NT}) where NT<:Real
533533
# --- variables specific to NonLinMPC ---

0 commit comments

Comments
 (0)