Skip to content

Commit 640d7f6

Browse files
committed
idem
1 parent a3ea28e commit 640d7f6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/predictive_control.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,11 @@ setnonlincon!(::PredictiveController, ::SimModel) = nothing
250250
251251
Compute the optimal manipulated input value `u` for the current control period.
252252
253-
Solve the optimization problem of `mpc` [`PredictiveController`](@ref) and return the
254-
results ``\mathbf{u}(k)``. Following the receding horizon principle, the algorithm discards
255-
the optimal future manipulated inputs ``\mathbf{u}(k+1), \mathbf{u}(k+2), ...``
253+
Solve the optimization problem of `mpc` [`PredictiveController`](@ref) and return the
254+
results ``\mathbf{u}(k)``. Following the receding horizon principle, the algorithm discards
255+
the optimal future manipulated inputs ``\mathbf{u}(k+1), \mathbf{u}(k+2), ...``. Note that
256+
the method mutates `mpc` internal data but it does not modifies `mpc.estim` states. Call
257+
[`updatestate!(mpc, u, ym, d)`](@ref) to update `mpc` state estimates.
256258
257259
Calling a [`PredictiveController`](@ref) object calls this method.
258260

0 commit comments

Comments
 (0)