Skip to content

Commit 9198cb4

Browse files
Update metaheuristics.md
Added required packages for MOO docs.
1 parent 238dcbe commit 9198cb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/optimization_packages/metaheuristics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ While `Metaheuristics.jl` supports such constraints, `Optimization.jl` currently
7676
The zdt1 functions can be optimized using the `Metaheuristics.jl` as follows:
7777

7878
```@example MOO-Evolutionary
79-
using Optimization, OptimizationEvolutionary
79+
using Optimization, OptimizationEvolutionary,OptimizationMetaheuristics, Metaheuristics
8080
function zdt1(x)
8181
f1 = x[1]
8282
g = 1 + 9 * mean(x[2:end])
@@ -103,7 +103,7 @@ nobjectives = 2
103103
npartitions = 100
104104
105105
# reference points (Das and Dennis's method)
106-
weights = gen_ref_dirs(nobjectives, npartitions)
106+
weights = Metaheuristics.gen_ref_dirs(nobjectives, npartitions)
107107
108108
# Choose the algorithm as required.
109109
alg1 = NSGA2()

0 commit comments

Comments
 (0)