Skip to content

Commit 412c16d

Browse files
committed
add docstring output to setconstraint! example
1 parent 6fecbfe commit 412c16d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/predictive_control.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,14 @@ julia> mpc = LinMPC(setop!(LinModel(tf(3, [30, 1]), 4), uop=[50], yop=[25]));
9393
julia> mpc = setconstraint!(mpc, umin=[0], umax=[100], c_umin=[0.0], c_umax=[0.0]);
9494
9595
julia> mpc = setconstraint!(mpc, Δumin=[-10], Δumax=[+10], c_Δumin=[1.0], c_Δumax=[1.0])
96-
96+
LinMPC controller with a sample time Ts = 4.0 s, SteadyKalmanFilter estimator and:
97+
10 prediction steps Hp
98+
2 control steps Hc
99+
1 manipulated inputs u
100+
2 states x̂
101+
1 measured outputs ym
102+
0 unmeasured outputs yu
103+
0 measured disturbances d
97104
```
98105
"""
99106
function setconstraint!(

0 commit comments

Comments
 (0)