Skip to content

Commit 537591d

Browse files
authored
Merge pull request #211 from JuliaControl/doc_correction
doc : minor clarifications
2 parents 524fa28 + 8c380f1 commit 537591d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/controller/construct.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ estimate_delays(::SimModel) = 0
458458

459459

460460
@doc raw"""
461-
move_blocking(Hp::Int, Hc::AbstractVector{Int}) -> nb
461+
move_blocking(Hp::Int, Hc::Vector{Int}) -> nb
462462
463463
Get the move blocking vector `nb` from the `Hc` argument, and modify it to match `Hp`.
464464

src/controller/transcription.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ The ``\mathbf{P_u}`` and ``\mathbf{T_u}`` matrices are defined in the Extended H
114114
# Extended Help
115115
!!! details "Extended Help"
116116
With ``n_i``, the ``i``th element of the ``\mathbf{n_b}`` vector defined in [`move_blocking`](@ref)
117-
documentation, we introduce the ``\mathbf{Q}(i)`` matrix of size `(nu*ni, nu)`:
117+
documentation, we introduce the ``\mathbf{Q}(n_i)`` matrix of size `(nu*ni, nu)`:
118118
```math
119-
\mathbf{Q}(i) = \begin{bmatrix}
119+
\mathbf{Q}(n_i) = \begin{bmatrix}
120120
\mathbf{I} \\
121121
\mathbf{I} \\
122122
\vdots \\
@@ -153,10 +153,10 @@ function init_ZtoU(
153153
I_nu = Matrix{NT}(I, nu, nu)
154154
PuDagger = Matrix{NT}(undef, nu*Hp, nu*Hc)
155155
for i=1:Hc
156-
ni = nb[i]
157-
Qi = repeat(I_nu, ni, 1)
156+
ni = nb[i]
157+
Q_ni = repeat(I_nu, ni, 1)
158158
iRows = (1:nu*ni) .+ @views nu*sum(nb[1:i-1])
159-
PuDagger[iRows, :] = [repeat(Qi, 1, i) zeros(nu*ni, nu*(Hc-i))]
159+
PuDagger[iRows, :] = [repeat(Q_ni, 1, i) zeros(nu*ni, nu*(Hc-i))]
160160
end
161161
Pu = init_PUmat(estim, transcription, Hp, Hc, PuDagger)
162162
Tu = repeat(I_nu, Hp)

0 commit comments

Comments
 (0)