Skip to content

Commit

Permalink
add missing ADNLPModels
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot committed Apr 12, 2024
1 parent 1f52b45 commit 9158963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/resolve.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Using L-BFGS, the problem is locally solved.
Note that when passing Julia functions as input to `minimize`, the problem is modeled as an `ADNLPModel`.
So, the following would be equivalent:
```@example ex2
using JSOSuite
using ADNLPModels, JSOSuite
f(x) = x[2]^2 * exp(x[1]^2)
x0 = ones(Float64, 2)
nlp = ADNLPModel(f, x0)
Expand Down

0 comments on commit 9158963

Please sign in to comment.