Skip to content

Commit c45084b

Browse files
authored
Merge pull request #36 from rafaelbailo/main
Remove optimise alias
2 parents a5bc13a + 9ce77f9 commit c45084b

File tree

5 files changed

+1
-12
lines changed

5 files changed

+1
-12
lines changed

docs/src/function_minimisation.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ This is a version of the full-code example above, using `config` instead:
2929
{{basic_usage/minimise_with_config.jl}}
3030

3131

32-
## Aliases
33-
34-
ConsensusBasedX.jl also defines `optimise` as an alias of `minimise`.
35-
36-
3732
## Receiving extended output
3833

3934
It is possible to receive extended output from `minimise` by passing the option `extended_output = true`:

src/CBS/CBS.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ end
2929

3030
if Symbol(CBS_mode) == :sampling
3131
λ = 1 / (1 + α)
32-
elseif Symbol(CBS_mode) in
33-
[:minimise, :minimisation, :optimise, :optimisation]
32+
elseif Symbol(CBS_mode) in [:minimise, :minimisation]
3433
λ = 1
3534
else
3635
explanation = "`CBS_mode` should be either `:sampling` or `:minimise`."

src/ConsensusBasedX.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ include("./interface/config.jl")
2121
include("./interface/initialise_particles.jl")
2222
include("./interface/maximise.jl")
2323
include("./interface/minimise.jl")
24-
include("./interface/optimise.jl")
2524
include("./interface/parse_config.jl")
2625
include("./interface/sample.jl")
2726

src/interface/minimise.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Minimise the function `f` using Consensus-Based Optimisation (see [Function mini
1111
1212
You must specify the dimension `D` of the problem. Other parameters (e.g. the number of particles `N` or the number of ensembles `M`) can also be specified; see [Summary of options](@ref).
1313
14-
`optimise` is an alias for `minimise`.
15-
1614
# Examples
1715
1816
```julia

src/interface/optimise.jl

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)