Skip to content

Commit c55454d

Browse files
committed
fixed & updated docs
1 parent 37d8797 commit c55454d

File tree

7 files changed

+11
-12
lines changed

7 files changed

+11
-12
lines changed

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ makedocs(
99
"Home" => "index.md",
1010
"Tutorial" => "tutorial.md",
1111
"Constraints" => "constraints.md",
12-
"COnvergence" => "convergence.md",
12+
"Convergence" => "convergence.md",
1313
"Algorithms" => [
1414
"Genetic Algorithm" => "ga.md",
1515
"Differential Evolution" => "de.md",

docs/src/constraints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ con = WorstFitnessConstraints(lx, ux, lc, uc, c)
110110
results = Evolutionary.optimize(f, con, x0, ga)
111111
```
112112

113-
## Auxiliary Functions
113+
## [Auxiliary Functions](@id cons_aux_funcs)
114114

115115
```@docs
116116
value(c::Evolutionary.AbstractConstraints, x)

docs/src/crossover.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ BSX
4040
### Real-valued Crossovers
4141

4242
```@docs
43-
identity
43+
Evolutionary.genop(::T,::T) where {T<:AbstractVector}
4444
DC
4545
AX
4646
WAX

docs/src/dev.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,10 @@ initial_population
5353
### Constraints
5454

5555
All constraints derived from the `AbstractConstraints` abstract type.
56-
Usually the derived type wraps a `ConstraintBounds` object, so the
57-
58-
Following methods can be overridden for the derived types:
59-
60-
```@docs
61-
value(::AbstractConstraints, x)
62-
```
56+
For the derived type, the [`constraints interface functions`](@ref cons_aux_funcs)
57+
have to be implemented.
58+
If the derived type wraps a `ConstraintBounds` object, the [`bounds`](@ref) method
59+
should be implemented.
6360

6461
Following auxiliary functions are available for every derived type of `AbstractConstraints`.
6562

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ using Evolutionary
1717
result = Evolutionary.optimize(
1818
x -> sum(x.^2), ones(3),
1919
GA(populationSize = 100, selection = susinv,
20-
crossover = discrete, mutation = domainrange(ones(3))))
20+
crossover = DC, mutation = PLM()))
2121
```

docs/src/mutation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See [Strategies](@ref) section for detailed description of ES strategies.
1414
List of ES mutation operations:
1515

1616
```@docs
17+
Evolutionary.nop(::AbstractVector, ::AbstractStrategy)
1718
gaussian(::AbstractVector, ::IsotropicStrategy)
1819
gaussian(::AbstractVector, ::AnisotropicStrategy)
1920
cauchy(::AbstractVector, ::IsotropicStrategy)

docs/src/tutorial.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ We currently recommend the statically dispatched interface by using the `Evoluti
8787
```julia
8888
res = Evolutionary.optimize(x->-sum(x),
8989
BitVector(zeros(30)),
90-
GA(selection=uniformranking(5),mutation=flip,crossover=singlepoint),
90+
GA(selection=uniformranking(5),
91+
mutation=flip, crossover=SPX),
9192
Evolutionary.Options(iterations=10))
9293
```
9394

0 commit comments

Comments
 (0)