@@ -1169,8 +1169,8 @@ The method mutates `Ŷ0`, `x̂0end`, `X̂0`, `Û0` and `K0` arguments. The aug
11691169[`f̂!`](@ref) and [`ĥ!`](@ref) functions is called recursively in a `for` loop:
11701170```math
11711171\b egin{aligned}
1172- \m athbf{x̂_0}(k+1) &= \m athbf{f̂}\B ig(\m athbf{x̂_0}(k), \m athbf{u_0}(k), \m athbf{d_0 }(k) \B ig) \\
1173- \m athbf{ŷ_0}(k) &= \m athbf{ĥ}\B ig(\m athbf{x̂_0}(k), \m athbf{d_0 }(k) \B ig)
1172+ \m athbf{x̂_0}(k+1) &= \m athbf{f̂}\B ig(\m athbf{x̂_0}(k), \m athbf{u_0}(k), \m athbf{d̂_0 }(k) \B ig) \\
1173+ \m athbf{ŷ_0}(k) &= \m athbf{ĥ}\B ig(\m athbf{x̂_0}(k), \m athbf{d̂_0 }(k) \B ig)
11741174\e nd{aligned}
11751175```
11761176"""
@@ -1211,7 +1211,7 @@ Compute vectors if `model` is a [`NonLinModel`](@ref) and other [`TranscriptionM
12111211The method mutates `Ŷ0` and `x̂0end` arguments. The augmented output function [`ĥ!`](@ref)
12121212is called multiple times in a `for` loop:
12131213```math
1214- \m athbf{ŷ_0}(k) = \m athbf{ĥ}\B ig(\m athbf{x̂_0}(k), \m athbf{d_0 }(k) \B ig)
1214+ \m athbf{ŷ_0}(k) = \m athbf{ĥ}\B ig(\m athbf{x̂_0}(k), \m athbf{d̂_0 }(k) \B ig)
12151215```
12161216in which ``\m athbf{x̂_0}`` is the augmented state extracted from the decision variable `Z̃`.
12171217"""
@@ -1332,7 +1332,7 @@ Nonlinear equality constrains for [`NonLinModel`](@ref) and [`MultipleShooting`]
13321332The method mutates the `geq`, `X̂0`, `Û0` and `K0` vectors in argument. The nonlinear
13331333equality constraints `geq` only includes the augmented state defects, computed with:
13341334```math
1335- \m athbf{ŝ}(k+1) = \m athbf{f̂}\B ig(\m athbf{x̂_0}(k), \m athbf{u_0}(k), \m athbf{d_0 }(k)\B ig)
1335+ \m athbf{ŝ}(k+1) = \m athbf{f̂}\B ig(\m athbf{x̂_0}(k), \m athbf{u_0}(k), \m athbf{d̂_0 }(k)\B ig)
13361336 - \m athbf{x̂_0}(k+1)
13371337```
13381338in which the augmented state ``\m athbf{x̂_0}`` are extracted from the decision variables
@@ -1395,8 +1395,8 @@ extracted from the decision variables `Z̃`. The ``\mathbf{k}`` coefficients are
13951395evaluated from the continuous-time function `model.f!` and:
13961396```math
13971397\b egin{aligned}
1398- \m athbf{k}_1 &= \m athbf{f}\B ig(\m athbf{x_0}(k), \m athbf{û_0}(k), \m athbf{d_0 }(k) \B ig) \\
1399- \m athbf{k}_2 &= \m athbf{f}\B ig(\m athbf{x_0}(k+1), \m athbf{û_0}(k+h), \m athbf{d_0 }(k+1)\B ig)
1398+ \m athbf{k}_1 &= \m athbf{f}\B ig(\m athbf{x_0}(k), \m athbf{û_0}(k), \m athbf{d̂_0 }(k) \B ig) \\
1399+ \m athbf{k}_2 &= \m athbf{f}\B ig(\m athbf{x_0}(k+1), \m athbf{û_0}(k+h), \m athbf{d̂_0 }(k+1)\B ig)
14001400\e nd{aligned}
14011401```
14021402in which ``h`` is the hold order `transcription.h` and the disturbed input is:
@@ -1419,7 +1419,6 @@ function con_nonlinprogeq!(
14191419 nk = get_nk (model, transcription)
14201420 D̂0 = mpc. D̂0
14211421 X̂0_Z̃ = @views Z̃[(nΔU+ 1 ): (nΔU+ nX̂)]
1422- # TODO : allow parallel for loop or threads?
14231422 @threadsif f_threads for j= 1 : Hp
14241423 if j < 2
14251424 x̂0 = @views mpc. estim. x̂0[1 : nx̂]
0 commit comments