Skip to content

Commit 4fd1054

Browse files
committed
doc: minor improvements
1 parent dc2a634 commit 4fd1054

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/controller/construct.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,9 @@ The Hessian matrix is constant if the model and weights are linear and time inva
540540
+ \mathbf{P̃_{Δu}'} \mathbf{Ñ}_{H_c} \mathbf{P̃_{Δu}}
541541
+ \mathbf{P̃_{u}'} \mathbf{L}_{H_p} \mathbf{P̃_{u}} )
542542
```
543-
The vector ``\mathbf{q̃}`` and scalar ``r`` need recalculation each control period ``k``, see
543+
in which ``\mathbf{Ẽ}``, ``\mathbf{P̃_{Δu}}`` and ``\mathbf{P̃_{u}}`` matrices are defined
544+
at [`relaxŶ`](@ref), [`relaxΔU`](@ref) and [`relaxU`](@ref) documentation, respectively. The
545+
vector ``\mathbf{q̃}`` and scalar ``r`` need recalculation each control period ``k``, see
544546
[`initpred!`](@ref). ``r`` does not impact the minima position. It is thus useless at
545547
optimization but required to evaluate the minimal ``J`` value.
546548
"""

src/controller/execute.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ They are computed with these equations using in-place operations:
180180
\mathbf{F} &= \mathbf{G d_0}(k) + \mathbf{J D̂_0} + \mathbf{K x̂_0}(k)
181181
+ \mathbf{V u_0}(k-1) + \mathbf{B} + \mathbf{Ŷ_s} \\
182182
\mathbf{C_y} &= \mathbf{F} + \mathbf{Y_{op}} - \mathbf{R̂_y} \\
183-
\mathbf{C_u} &= \mathbf{T}\mathbf{u}(k-1) - \mathbf{R̂_u} \\
183+
\mathbf{C_u} &= \mathbf{T_u}\mathbf{u}(k-1) - \mathbf{R̂_u} \\
184184
\mathbf{q̃} &= 2[ (\mathbf{M}_{H_p} \mathbf{Ẽ})' \mathbf{C_y}
185185
+ (\mathbf{L}_{H_p} \mathbf{P̃_U})' \mathbf{C_u} ] \\
186186
r &= \mathbf{C_y'} \mathbf{M}_{H_p} \mathbf{C_y}
187-
+ \mathbf{C_u'} \mathbf{L}_{H_p} \mathbf{C_u}
187+
+ \mathbf{C_u'} \mathbf{L}_{H_p} \mathbf{C_u}
188188
\end{aligned}
189189
```
190190
"""

0 commit comments

Comments
 (0)