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
julia> model = NonLinModel((x,u,_,_)->0.5x+u, (x,_,_)->2x, 10.0, 1, 1, 1, solver=nothing);
@@ -253,7 +250,7 @@ NonLinMPC controller with a sample time Ts = 10.0 s, Ipopt optimizer, UnscentedK
253
250
By default, the optimization relies on dense [`ForwardDiff`](https://github.com/JuliaDiff/ForwardDiff.jl)
254
251
automatic differentiation (AD) to compute the objective and constraint derivatives. One
255
252
exception: if `transcription` is not a [`SingleShooting`](@ref), the `jacobian` argument
256
-
defaults to this [sparse backend][2]:
253
+
defaults to this [sparse backend](@extref DifferentiationInterface Sparsity):
257
254
```julia
258
255
AutoSparse(
259
256
AutoForwardDiff();
@@ -262,14 +259,11 @@ NonLinMPC controller with a sample time Ts = 10.0 s, Ipopt optimizer, UnscentedK
262
259
)
263
260
```
264
261
Optimizers generally benefit from exact derivatives like AD. However, the [`NonLinModel`](@ref)
265
-
state-space functions must be compatible with this feature. See `JuMP` [documentation][3]
262
+
state-space functions must be compatible with this feature. See [`JuMP` documentation](@extref JuMP Common-mistakes-when-writing-a-user-defined-operator)
266
263
for common mistakes when writing these functions.
267
264
268
265
Note that if `Cwt≠Inf`, the attribute `nlp_scaling_max_gradient` of `Ipopt` is set to
269
266
`10/Cwt` (if not already set), to scale the small values of ``ϵ``.
Copy file name to clipboardexpand all lines: src/model/linearization.jl
+1-3
Original file line number
Diff line number
Diff line change
@@ -131,10 +131,8 @@ julia> linmodel.A
131
131
equations are similar if the nonlinear model has nonzero operating points.
132
132
133
133
Automatic differentiation (AD) allows exact Jacobians. The [`NonLinModel`](@ref) `f` and
134
-
`h` functions must be compatible with this feature though. See `JuMP` [documentation][3]
134
+
`h` functions must be compatible with this feature though. See [`JuMP` documentation][@extref JuMP Common-mistakes-when-writing-a-user-defined-operator]
0 commit comments