Skip to content

Commit 9ac2182

Browse files
Merge pull request #87 from mkg33/master
Update optimizers.md
2 parents c480974 + d291546 commit 9ac2182

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/optimizers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Note that the default value of the maximum number of iterations is `1000`. It ca
2222
- [`QuadDIRECT`](https://github.com/timholy/QuadDIRECT.jl): **QuadDIRECT algorithm (inspired by DIRECT and MCS)**
2323
* `solve(problem, QuadDirect(), splits)`
2424
* `splits` is a list of 3-vectors with initial locations at which to evaluate the function (the values must be in strictly increasing order and lie within the specified bounds), for instance:
25-
```
25+
```julia
2626
prob = GalacticOptim.OptimizationProblem(f, x0, p, lb=[-3, -2], ub=[3, 2])
2727
solve(prob, QuadDirect(), splits = ([-2, 0, 2], [-1, 0, 1]))
2828
```
@@ -141,7 +141,7 @@ Note that the default value of the maximum number of iterations is `1000`. It ca
141141
* `P` is an optional preconditioner (for more information, see [this source](https://julianlsolvers.github.io/Optim.jl/v0.9.3/algo/precondition/))
142142
* `precondpred` is used to update `P` as the state variable `x` changes
143143
* defaults to:
144-
```
144+
```julia
145145
alphaguess = LineSearches.InitialHagerZhang(),
146146
linesearch = LineSearches.HagerZhang(),
147147
eta = 0.4,
@@ -169,7 +169,7 @@ Note that the default value of the maximum number of iterations is `1000`. It ca
169169
* `P` is an optional preconditioner (for more information, see [this source](https://julianlsolvers.github.io/Optim.jl/v0.9.3/algo/precondition/))
170170
* `precondpred` is used to update `P` as the state variable `x` changes
171171
* defaults to:
172-
```
172+
```julia
173173
alphaguess = LineSearches.InitialPrevious(),
174174
linesearch = LineSearches.HagerZhang(),
175175
P = nothing,
@@ -238,7 +238,7 @@ Note that the default value of the maximum number of iterations is `1000`. It ca
238238

239239
* `solve(problem, SAMIN(nt, ns, rt, neps, f_tol, x_tol, coverage_ok, verbosity))`
240240
* defaults to:
241-
```
241+
```julia
242242
SAMIN(; nt::Int = 5 # reduce temperature every nt*ns*dim(x_init) evaluations
243243
ns::Int = 5 # adjust bounds every ns*dim(x_init) evaluations
244244
rt::T = 0.9 # geometric temperature reduction factor: when temp changes, new temp is t=rt*t

0 commit comments

Comments
 (0)