Skip to content

Commit

Permalink
Merge pull request #36 from rafaelbailo/main
Browse files Browse the repository at this point in the history
Remove optimise alias
  • Loading branch information
rafaelbailo authored Jun 7, 2024
2 parents a5bc13a + 9ce77f9 commit c45084b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 12 deletions.
5 changes: 0 additions & 5 deletions docs/src/function_minimisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ This is a version of the full-code example above, using `config` instead:
{{basic_usage/minimise_with_config.jl}}


## Aliases

ConsensusBasedX.jl also defines `optimise` as an alias of `minimise`.


## Receiving extended output

It is possible to receive extended output from `minimise` by passing the option `extended_output = true`:
Expand Down
3 changes: 1 addition & 2 deletions src/CBS/CBS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ end

if Symbol(CBS_mode) == :sampling
λ = 1 / (1 + α)
elseif Symbol(CBS_mode) in
[:minimise, :minimisation, :optimise, :optimisation]
elseif Symbol(CBS_mode) in [:minimise, :minimisation]
λ = 1
else
explanation = "`CBS_mode` should be either `:sampling` or `:minimise`."
Expand Down
1 change: 0 additions & 1 deletion src/ConsensusBasedX.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ include("./interface/config.jl")
include("./interface/initialise_particles.jl")
include("./interface/maximise.jl")
include("./interface/minimise.jl")
include("./interface/optimise.jl")
include("./interface/parse_config.jl")
include("./interface/sample.jl")

Expand Down
2 changes: 0 additions & 2 deletions src/interface/minimise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Minimise the function `f` using Consensus-Based Optimisation (see [Function mini
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).
`optimise` is an alias for `minimise`.
# Examples
```julia
Expand Down
2 changes: 0 additions & 2 deletions src/interface/optimise.jl

This file was deleted.

0 comments on commit c45084b

Please sign in to comment.