@@ -96,9 +96,10 @@ is given below:
96
96
We can also explore other methods in a similar way:
97
97
98
98
``` julia
99
- f = OptimizationFunction (rosenbrock, GalacticOptim. AutoForwardDiff ())
100
- prob = OptimizationProblem (f, x0, p)
101
- sol = solve (prob,BFGS ())
99
+ using ForwardDiff
100
+ f = OptimizationFunction (rosenbrock, GalacticOptim. AutoForwardDiff ())
101
+ prob = OptimizationProblem (f, x0, p)
102
+ sol = solve (prob,BFGS ())
102
103
```
103
104
For instance, the above optimization task produces the following output:
104
105
@@ -126,8 +127,8 @@ For instance, the above optimization task produces the following output:
126
127
```
127
128
128
129
``` julia
129
- prob = OptimizationProblem (f, x0, p, lb = [- 1.0 ,- 1.0 ], ub = [1.0 ,1.0 ])
130
- sol = solve (prob, Fminbox (GradientDescent ()))
130
+ prob = OptimizationProblem (f, x0, p, lb = [- 1.0 ,- 1.0 ], ub = [1.0 ,1.0 ])
131
+ sol = solve (prob, Fminbox (GradientDescent ()))
131
132
```
132
133
The examples clearly demonstrate that GalacticOptim.jl provides an intuitive
133
134
way of specifying optimization tasks and offers a relatively
0 commit comments