Skip to content

Commit f362878

Browse files
committed
minor doc correction
1 parent b6a92cb commit f362878

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/predictive_control.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,13 @@ Compute the optimal manipulated input value `u` for the current control period.
269269
270270
Solve the optimization problem of `mpc` [`PredictiveController`](@ref) and return the
271271
results ``\mathbf{u}(k)``. Following the receding horizon principle, the algorithm discards
272-
the optimal future manipulated inputs ``\mathbf{u}(k+1), \mathbf{u}(k+2), ...``. Note that
272+
the optimal future manipulated inputs ``\mathbf{u}(k+1), \mathbf{u}(k+2), ...`` Note that
273273
the method mutates `mpc` internal data but it does not modifies `mpc.estim` states. Call
274274
[`updatestate!(mpc, u, ym, d)`](@ref) to update `mpc` state estimates.
275275
276276
Calling a [`PredictiveController`](@ref) object calls this method.
277277
278-
See also [`LinMPC`](@ref), [`ExplicitMPC`](@ref) [`NonLinMPC`](@ref).
278+
See also [`LinMPC`](@ref), [`ExplicitMPC`](@ref), [`NonLinMPC`](@ref).
279279
280280
# Arguments
281281
- `mpc::PredictiveController` : solve optimization problem of `mpc`.
@@ -339,7 +339,8 @@ The function should be called after calling [`moveinput!`](@ref). It returns the
339339
- `:R̂u` : predicted manipulated input setpoint over `Hp` ``(\mathbf{R̂_u})``
340340
341341
For [`LinMPC`](@ref) and [`NonLinMPC`](@ref), the field `:sol` also contains the optimizer
342-
solution summary that can be printed.
342+
solution summary that can be printed. Lastly, the optimal economic cost `:JE` is also
343+
available for [`NonLinMPC`](@ref).
343344
344345
# Examples
345346
```jldoctest

0 commit comments

Comments
 (0)