From 564f53ae03a811fe4d76f99558dac66e151930fb Mon Sep 17 00:00:00 2001 From: Vaibhav Kumar Dixit Date: Fri, 25 Oct 2024 23:13:53 -0400 Subject: [PATCH] Update docs/src/optimization_packages/evolutionary.md --- docs/src/optimization_packages/evolutionary.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/optimization_packages/evolutionary.md b/docs/src/optimization_packages/evolutionary.md index 03da1985a..86cf27b71 100644 --- a/docs/src/optimization_packages/evolutionary.md +++ b/docs/src/optimization_packages/evolutionary.md @@ -46,7 +46,7 @@ sol = solve(prob, Evolutionary.CMAES(μ = 40, λ = 100)) The Rosenbrock and Ackley functions can be optimized using the `Evolutionary.NSGA2()` as follows: ```@example MOO-Evolutionary -using Optimization, OptimizationEvolutionary +using Optimization, OptimizationEvolutionary, Evolutionary function func(x, p=nothing)::Vector{Float64} f1 = (1.0 - x[1])^2 + 100.0 * (x[2] - x[1]^2)^2 # Rosenbrock function f2 = -20.0 * exp(-0.2 * sqrt(0.5 * (x[1]^2 + x[2]^2))) - exp(0.5 * (cos(2π * x[1]) + cos(2π * x[2]))) + exp(1) + 20.0 # Ackley function