Skip to content

Commit 1cac792

Browse files
committed
doc: details on setpoint previews
1 parent 2408604 commit 1cac792

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ for more detailed examples.
9797
- automatic model augmentation with integrating states for offset-free tracking
9898
- support for unmeasured model outputs
9999
- feedforward action with measured disturbances that supports direct transmission
100-
- custom predictions for:
100+
- custom predictions for (or preview):
101101
- output setpoints
102102
- measured disturbances
103+
- input setpoints
103104
- easy integration with `Plots.jl`
104105
- optimization based on `JuMP.jl`:
105106
- quickly compare multiple optimizers

src/controller/execute.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ results ``\mathbf{u}(k)``. Following the receding horizon principle, the algorit
1818
the optimal future manipulated inputs ``\mathbf{u}(k+1), \mathbf{u}(k+2), ...`` Note that
1919
the method mutates `mpc` internal data but it does not modifies `mpc.estim` states. Call
2020
[`preparestate!(mpc, ym, d)`](@ref) before `moveinput!`, and [`updatestate!(mpc, u, ym, d)`](@ref)
21-
after, to update `mpc` state estimates.
21+
after, to update `mpc` state estimates. Setpoint and measured disturbance previews can
22+
be implemented with the `R̂y`, `R̂u` and `D̂` keyword arguments.
2223
2324
Calling a [`PredictiveController`](@ref) object calls this method.
2425

0 commit comments

Comments
 (0)