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
Copy file name to clipboardExpand all lines: docs/src/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,13 @@ All these solvers rely on the `NLPModel API` from [NLPModels.jl](https://github.
15
15
16
16
The package `JSOSuite` exports a function [`solve`](@ref):
17
17
```
18
-
output = solve(args...; kwargs...)
18
+
output = minimize(args...; kwargs...)
19
19
```
20
20
The arguments are used to define the problem, see [Tutorial](@ref tutorial-section).
21
21
22
22
It is also possible to define an `NLPModel` or a `JuMP` model representing the problem, and then call `solve`:
23
23
```
24
-
output = solve(nlpmodel; kwargs...)
24
+
output = minimize(nlpmodel; kwargs...)
25
25
```
26
26
27
27
The `NLPModel API` is a general consistent API for solvers to interact with models by providing flexible data types to represent the objective and constraint functions to evaluate their derivatives, and to provide essentially any information that a solver might request from a model. [JuliaSmoothOrganization's website](https://juliasmoothoptimizers.github.io) or [NLPModels.jl's documentation](https://juliasmoothoptimizers.github.io/NLPModels.jl/dev/) provide more tutorials on this topic.
Note that the length of the residual function is given explictly to avoid any superfluous evaluation of this (potentially very large) function.
45
45
46
46
```@example ex1
47
-
stats = solve(nls)
47
+
stats = minimize(nls)
48
48
```
49
49
50
50
`JSOSuite.jl` uses by default automatic differentiation, so the following code would be equivalent:
51
51
52
52
```@example ex1
53
-
stats = solve(F, x0, nres, c, l, l)
53
+
stats = minimize(F, x0, nres, c, l, l)
54
54
```
55
55
56
56
By default, `JSOSuite.solve` will use a solver tailored for nonlineat least squares problem.
57
57
Nevertheless, it is also possible to specify the solver to be used.
58
58
59
59
```@example ex1
60
60
using NLPModelsIpopt
61
-
stats = solve("IPOPT", F, x0, nres, c, l, l)
61
+
stats = minimize("IPOPT", F, x0, nres, c, l, l)
62
62
```
63
63
64
64
We refer to the documentation of [`ADNLPModels.jl`](https://juliasmoothoptimizers.github.io/ADNLPModels.jl/dev/backend/) for more details on the AD system use and how to modify it.
0 commit comments