-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Currently, the one example in the docs redefines a method that already exists in the package:
MetaheuristicsAlgorithms.jl/docs/src/example.md
Lines 14 to 27 in a321912
function Ackley(x::Vector{Float64})::Float64 | |
n = length(x) | |
a = 20.0 | |
b = 0.2 | |
c = 2 * π | |
sum1 = sum(xi^2 for xi in x) | |
sum2 = sum(cos(c * xi) for xi in x) | |
term1 = -a * exp(-b * sqrt(sum1 / n)) | |
term2 = -exp(sum2 / n) | |
return term1 + term2 + a + exp(1) | |
end |
Why not use the package-defined method for the Ackley function, i.e.,
Ackley Function. |
This way the example will showcase how other package-defined methods can be used.
Metadata
Metadata
Assignees
Labels
No labels