Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/manual/mtk.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function generate_f_h(model, inputs, outputs)
try
# MTK.jl supports a `u` argument in `h_ip` function but not this package. We set
# `u` as a vector of nothing and `h_ip` function will presumably throw an
# MethodError it this argument is used inside the function
# MethodError if this argument is used inside the function
h_ip(y, x, u_nothing, p, nothing)
catch err
if err isa MethodError
Expand Down
2 changes: 1 addition & 1 deletion src/controller/transcription.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ and disturbances are piecewise constant or linear:
```math
\begin{aligned}
\mathbf{û}_i(k+j) &= \begin{cases}
\mathbf{û_0}(k+1) & h = 0 \\
\mathbf{û_0}(k+j) & h = 0 \\
(1-τ_i)\mathbf{û_0}(k+j) + τ_i\mathbf{û_0}(k+j+1) & h = 1 \end{cases} \\
\mathbf{d̂}_i(k+j) &= (1-τ_i)\mathbf{d̂_0}(k+j) + τ_i\mathbf{d̂_0}(k+j+1)
\end{aligned}
Expand Down
Loading