Skip to content

Commit 4aee803

Browse files
authored
Merge pull request #338 from JuliaControl/doc_correction
doc: minor correction
2 parents 049514c + 02d4dd4 commit 4aee803

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/manual/mtk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function generate_f_h(model, inputs, outputs)
8686
try
8787
# MTK.jl supports a `u` argument in `h_ip` function but not this package. We set
8888
# `u` as a vector of nothing and `h_ip` function will presumably throw an
89-
# MethodError it this argument is used inside the function
89+
# MethodError if this argument is used inside the function
9090
h_ip(y, x, u_nothing, p, nothing)
9191
catch err
9292
if err isa MethodError

src/controller/transcription.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ and disturbances are piecewise constant or linear:
15671567
```math
15681568
\begin{aligned}
15691569
\mathbf{û}_i(k+j) &= \begin{cases}
1570-
\mathbf{û_0}(k+1) & h = 0 \\
1570+
\mathbf{û_0}(k+j) & h = 0 \\
15711571
(1-τ_i)\mathbf{û_0}(k+j) + τ_i\mathbf{û_0}(k+j+1) & h = 1 \end{cases} \\
15721572
\mathbf{d̂}_i(k+j) &= (1-τ_i)\mathbf{d̂_0}(k+j) + τ_i\mathbf{d̂_0}(k+j+1)
15731573
\end{aligned}

0 commit comments

Comments
 (0)