Skip to content

Commit 78fd705

Browse files
committed
mistake in prediction matrices corrected
1 parent f5710a3 commit 78fd705

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/predictive_control.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ The controller minimizes the following objective function at each discrete time
151151
+ \mathbf{(R̂_u - U)}' \mathbf{L}_{H_p} \mathbf{(R̂_u - U)}
152152
+ C ϵ^2
153153
```
154-
in which the weight matrices are repeated ``H_p`` or ``H_c`` times :
154+
in which the weight matrices are repeated ``H_p`` or ``H_c`` times:
155155
```math
156156
\begin{aligned}
157157
\mathbf{M}_{H_p} &= \text{diag}\mathbf{(M,M,...,M)} \\
@@ -660,7 +660,7 @@ matrices are computed by :
660660
\begin{aligned}
661661
\mathbf{E} &= \begin{bmatrix}
662662
\mathbf{W}_{0} & \mathbf{0} & \cdots & \mathbf{0} \\
663-
\mathbf{W}_{1} & \mathbf{0} & \cdots & \mathbf{0} \\
663+
\mathbf{W}_{1} & \mathbf{W}_{0} & \cdots & \mathbf{0} \\
664664
\vdots & \vdots & \ddots & \vdots \\
665665
\mathbf{W}_{H_p-1} & \mathbf{W}_{H_p-2} & \cdots & \mathbf{W}_{H_p-H_c+1}
666666
\end{bmatrix}

0 commit comments

Comments
 (0)