Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnebro committed Jan 30, 2024
1 parent ce0b84f commit 1412ffe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/NSGAIIAsAnEvolutionaryAlgorithmExample.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include("../src/utils.jl")
using Dates

# NSGA-II algorithm configured from the evolutionary algorithm template
problem = zdt1Problem(100)
problem = zdt1Problem()

solver::EvolutionaryAlgorithm = EvolutionaryAlgorithm()
solver.name = "NSGA-II"
Expand All @@ -22,7 +22,7 @@ solver.solutionsCreation = DefaultSolutionsCreation((problem = solver.problem, n

solver.evaluation = SequentialEvaluation((problem = solver.problem, ))

solver.termination = TerminationByEvaluations((numberOfEvaluationsToStop = 200000, ))
solver.termination = TerminationByEvaluations((numberOfEvaluationsToStop = 25000, ))

mutation = PolynomialMutation((probability=1.0/numberOfVariables(problem), distributionIndex=20.0, bounds=problem.bounds))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using Dates

# NSGA-II algorithm configured from the evolutionary algorithm template. It incorporates an external archive to store the non-dominated solution found. This archive will be the algorithm output.

problem = zdt4Problem()
problem = zdt1Problem()

solver::EvolutionaryAlgorithm = EvolutionaryAlgorithm()
solver.name = "NSGA-II"
Expand Down

0 comments on commit 1412ffe

Please sign in to comment.