You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output function ``\mathbf{h}`` converts the ``θ`` angle to degrees. Note that special
61
60
characters like ``θ`` can be typed in the Julia REPL or VS Code by typing `\theta` and
62
61
pressing the `<TAB>` key. The tuple `par` is constant here to improve the [performance](https://docs.julialang.org/en/v1/manual/performance-tips/#Avoid-untyped-global-variables).
62
+
Note that a 4th order [`RungeKutta`](@ref) differential equation solver is used by default.
63
63
It is good practice to first simulate `model` using [`sim!`](@ref) as a quick sanity check:
64
64
65
65
```@example 1
@@ -92,7 +92,7 @@ estimator tuning is tested on a plant with a 25 % larger friction coefficient ``
NonLinMPC controller with a sample time Ts = 10.0 s, Ipopt optimizer, UnscentedKalmanFilter estimator and:
@@ -166,8 +166,8 @@ NonLinMPC controller with a sample time Ts = 10.0 s, Ipopt optimizer, UnscentedK
166
166
167
167
The optimization relies on [`JuMP`](https://github.com/jump-dev/JuMP.jl) automatic
168
168
differentiation (AD) to compute the objective and constraint derivatives. Optimizers
169
-
generally benefit from exact derivatives like AD. However, the [`NonLinModel`](@ref) `f`
170
-
and `h` functions must be compatible with this feature. See [Automatic differentiation](https://jump.dev/JuMP.jl/stable/manual/nlp/#Automatic-differentiation)
169
+
generally benefit from exact derivatives like AD. However, the [`NonLinModel`](@ref)
170
+
state-space functions must be compatible with this feature. See [Automatic differentiation](https://jump.dev/JuMP.jl/stable/manual/nlp/#Automatic-differentiation)
171
171
for common mistakes when writing these functions.
172
172
173
173
Note that if `Cwt≠Inf`, the attribute `nlp_scaling_max_gradient` of `Ipopt` is set to
@@ -221,7 +221,7 @@ Use custom state estimator `estim` to construct `NonLinMPC`.
221
221
222
222
# Examples
223
223
```jldoctest
224
-
julia> model = NonLinModel((x,u,_)->0.5x+u, (x,_)->2x, 10.0, 1, 1, 1);
224
+
julia> model = NonLinModel((x,u,_)->0.5x+u, (x,_)->2x, 10.0, 1, 1, 1, solver=nothing);
0 commit comments