Skip to content

Commit c34531f

Browse files
committed
doc: mention defaults in manual
1 parent 781f43b commit c34531f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/src/manual/linmpc.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ mpc = setconstraint!(mpc, ymin=[48, -Inf])
7878

7979
in which `Hp` and `Hc` keyword arguments are respectively the predictive and control
8080
horizons, and `Mwt` and `Nwt`, the output setpoint tracking and move suppression weights. By
81-
default, [`LinMPC`](@ref) controllers use [`OSQP`](https://osqp.org/) to solve the problem,
82-
soft constraints on output predictions ``\mathbf{ŷ}`` to ensure feasibility, and a
81+
default, [`LinMPC`](@ref) controllers use [`OSQP`](https://osqp.org/) and a direct
82+
[`SingleShooting`](@ref) transcription method to solve the optimal control problem, soft
83+
constraints on output predictions ``\mathbf{ŷ}`` to ensure feasibility, and a
8384
[`SteadyKalmanFilter`](@ref) to estimate the plant states[^1]. An attentive reader will also
8485
notice that the Kalman filter estimates two additional states compared to the plant model.
8586
These are the integrating states for the unmeasured plant disturbances, and they are

docs/src/manual/nonlinmpc.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ umin, umax = [-1.5], [+1.5]
119119
nmpc = setconstraint!(nmpc; umin, umax)
120120
```
121121

122-
The option `Cwt=Inf` disables the slack variable `ϵ` for constraint softening. We test `mpc`
123-
performance on `plant` by imposing an angular setpoint of 180° (inverted position):
122+
The option `Cwt=Inf` disables the slack variable `ϵ` for constraint softening. By default,
123+
[`NonLinMPC`](@ref) controllers use [`Ipopt`](https://coin-or.github.io/Ipopt/) and a direct
124+
[`SingleShooting`](@ref) transcription method to solve the optimal control problem. We test
125+
`mpc` performance on `plant` by imposing an angular setpoint of 180° (inverted position):
124126

125127
```@example man_nonlin
126128
using JuMP; unset_time_limit_sec(nmpc.optim) # hide

0 commit comments

Comments
 (0)