Skip to content

Commit ed38bee

Browse files
Update multistartoptimization.md
1 parent abb3b21 commit ed38bee

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

docs/src/optimization_packages/multistartoptimization.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55

66
Currently, only one global method (`TikTak`) is implemented and called by `MultiStartOptimization.TikTak(n)` where `n` is the number of initial Sobol points.
77

8-
9-
!!! note
10-
11-
If you checkout the master branch of `MultiStartOptimization` or have version `>=0.1.3` you can use all optimizers found in the `GalacticOptim` which work with an initial parameter set. See an example of this below.
12-
13-
148
## Installation: GalacticMultiStartOptimization.jl
159

1610
To use this package, install the GalacticMultiStartOptimization package:
@@ -38,10 +32,10 @@ x0 = zeros(2)
3832
p = [1.0, 100.0]
3933
f = OptimizationFunction(rosenbrock)
4034
prob = GalacticOptim.OptimizationProblem(f, x0, p, lb = [-1.0,-1.0], ub = [1.0,1.0])
41-
sol = solve(prob, MultistartOptimization.TikTak(100), local_method = NLopt.LD_LBFGS())
35+
sol = solve(prob, MultistartOptimization.TikTak(100), NLopt.LD_LBFGS())
4236
```
4337

44-
If you have checked out the master branch `MultiStartOptimization` version `0.1.2` or have version `>=0.1.3` you can use any `GalactimOptim` optimizers you like. The global method of the `MultiStartOptimization` is a positional argument and if the given method has a local method it can be easily defined via the `local_method` keyword argument as you would without `MultiStartOptimization`. This for example means we can perform a multistartoptimization with LBFGS as the optimizer using either the `NLopt.jl` or `Optim.jl` implementation as follows. Moreover, this interface allows you access and adjust all the optimizer settings as you normally would:
38+
You can use any `GalacticOptim` optimizers you like. The global method of the `MultiStartOptimization` is a positional argument and followed by the local method. This for example means we can perform a multistartoptimization with LBFGS as the optimizer using either the `NLopt.jl` or `Optim.jl` implementation as follows. Moreover, this interface allows you access and adjust all the optimizer settings as you normally would:
4539

4640
```julia
4741
rosenbrock(x, p) = (p[1] - x[1])^2 + p[2] * (x[2] - x[1]^2)^2

0 commit comments

Comments
 (0)