Skip to content

Commit de9d767

Browse files
committed
doc: debug latex equation
1 parent 6e2ef10 commit de9d767

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

src/controller/construct.jl

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -694,31 +694,29 @@ end
694694
695695
Init the matrices for computing the defects over the predicted states.
696696
697-
The defects are calculated with an equation similar to the prediction matrices (see
698-
[`init_predmat`](@ref)):
697+
An equation similar to the prediction matrices (see
698+
[`init_predmat`](@ref)) computes the defects over the predicted states:
699699
```math
700-
\begin{aligned*}
700+
\begin{aligned}
701701
\mathbf{Ŝ} &= \mathbf{E_ŝ Z} + \mathbf{G_ŝ d_0}(k) + \mathbf{J_ŝ D̂_0}
702-
+ \mathbf{K_ŝ x̂_0}(k) + \mathbf{V_ŝ u_0}(k-1)
703-
+ \mathbf{B_ŝ}
702+
+ \mathbf{K_ŝ x̂_0}(k) + \mathbf{V_ŝ u_0}(k-1)
703+
+ \mathbf{B_ŝ} \\
704704
&= \mathbf{E_ŝ Z} + \mathbf{F_ŝ}
705-
706-
\end{aligned*}
705+
\end{aligned}
707706
```
708-
They are forced to be ``\mathbf{Ŝ = 0}`` using the equality constraints of the optimizer.
709-
The matrices ``\mathbf{E_ŝ, G_ŝ, J_ŝ, K_ŝ, V_ŝ, B_ŝ}`` are defined in the Extended Help
710-
section.
707+
They are forced to be ``\mathbf{Ŝ = 0}`` using the optimization equality constraints. The
708+
matrices ``\mathbf{E_ŝ, G_ŝ, J_ŝ, K_ŝ, V_ŝ, B_ŝ}`` are defined in the Extended Help section.
711709
712710
# Extended Help
713711
!!! details "Extended Help"
714712
The matrices are computed by:
715713
```math
716714
\begin{aligned}
717715
\mathbf{E_ŝ} &= \begin{bmatrix}
718-
\mathbf{B̂_u} & \mathbf{0} & \cdots & \mathbf{0} & -\mathbf{I} & \mathbf{0} & \cdots & \mathbf{0} \\
719-
\mathbf{0} & \mathbf{B̂_u} & \cdots & \mathbf{0} & \mathbf{Â} & -\mathbf{I} & \cdots & \mathbf{0} \\
720-
\vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \ddots & \vdots \\
721-
\mathbf{0} & \mathbf{0} & \cdots & \mathbf{B̂_u} \mathbf{0} & \mathbf{0} & \cdots & -\mathbf{I} \end{bmatrix} \\
716+
\mathbf{B̂_u} & \mathbf{0} & \cdots & \mathbf{0} & -\mathbf{I} & \mathbf{0} & \cdots & \mathbf{0} \\
717+
\mathbf{0} & \mathbf{B̂_u} & \cdots & \mathbf{0} & \mathbf{Â} & -\mathbf{I} & \cdots & \mathbf{0} \\
718+
\vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \ddots & \vdots \\
719+
\mathbf{0} & \mathbf{0} & \cdots & \mathbf{B̂_u} & \mathbf{0} & \mathbf{0} & \cdots & -\mathbf{I} \end{bmatrix} \\
722720
\mathbf{G_ŝ} &= \begin{bmatrix}
723721
\mathbf{B̂_d} \\ \mathbf{0} \\ \vdots \\ \mathbf{0} \end{bmatrix} \\
724722
\mathbf{J_ŝ} &= \begin{bmatrix}
@@ -729,7 +727,7 @@ section.
729727
\mathbf{K_ŝ} &= \begin{bmatrix}
730728
\mathbf{Â} \\ \mathbf{0} \\ \vdots \\ \mathbf{0} \end{bmatrix} \\
731729
\mathbf{V_ŝ} &= \begin{bmatrix}
732-
\mathbf{B̂_u} \\ \mathbf{B̂_u} \\ \mathbf{B̂_u} \\ \mathbf{B̂_u} \end{bmatrix} \\
730+
\mathbf{B̂_u} \\ \mathbf{B̂_u} \\ \vdots \\ \mathbf{B̂_u} \end{bmatrix} \\
733731
\mathbf{B_ŝ} &= \begin{bmatrix}
734732
\mathbf{f̂_{op} - x̂_{op}} \\ \mathbf{f̂_{op} - x̂_{op}} \\ \vdots \\ \mathbf{f̂_{op} - x̂_{op}} \end{bmatrix}
735733
\end{aligned}

0 commit comments

Comments
 (0)