Package org.opt4j.optimizer.ea
Class AlternativeNsga2
java.lang.Object
org.opt4j.optimizer.ea.AlternativeNsga2
- All Implemented Interfaces:
Selector
- Direct Known Subclasses:
ScalingNsga2
Deprecated.
The
Nsga2
Selector
.- See Also:
-
Nsga2Module
- "A Fast Elitist Non-Dominated Sorting Genetic Algorithm for Multi-Objective Optimization: NSGA-II, K. Deb, Samir Agrawal, Amrit Pratap, and T. Meyarivan, Parallel Problem Solving from Nature, 2000"
-
Field Summary
Modifier and TypeFieldDescriptionprotected double[]
Deprecated.Deprecated.protected Individual[]
Deprecated.protected Integer
Deprecated.protected final Map<Individual,
Integer> Deprecated.protected final Random
Deprecated.protected int[]
Deprecated.protected final int
Deprecated. -
Constructor Summary
ConstructorDescriptionAlternativeNsga2
(Rand random, int tournament) Deprecated.Constructs aNsga2
Selector
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
calcDistance
(List<Integer> list) Deprecated.fronts()
Deprecated.Evaluate the fronts and set the correspondent rank values.getLames
(int n, Collection<Individual> population) Deprecated.getParents
(int mu, Collection<Individual> population) Deprecated.Selects a subset ofIndividual
s and returns it as a newCollection
.void
init
(int maxsize) Deprecated.Sets the maximal number ofIndividual
s.protected boolean
synchronize
(Collection<Individual> population) Deprecated.
-
Field Details
-
random
Deprecated. -
tournament
protected final int tournamentDeprecated. -
map
Deprecated. -
ind
Deprecated. -
rank
protected int[] rankDeprecated. -
dist
protected double[] distDeprecated. -
m
Deprecated. -
fronts
Deprecated.
-
-
Constructor Details
-
AlternativeNsga2
Deprecated.Constructs aNsga2
Selector
.- Parameters:
random
- the random number generatortournament
- the tournament value
-
-
Method Details
-
init
public void init(int maxsize) Deprecated.Description copied from interface:Selector
Sets the maximal number ofIndividual
s. -
getParents
Deprecated.Description copied from interface:Selector
Selects a subset ofIndividual
s and returns it as a newCollection
. These so called parents can be used to form the next generation.- Specified by:
getParents
in interfaceSelector
- Parameters:
mu
- the number of parents to selectpopulation
- the list of individuals- Returns:
- the parents
-
getLames
Deprecated.Description copied from interface:Selector
Selects a subset oflambda
Individual
s and returns it as a newCollection
. These individuals can be erased in the next generation. -
fronts
Deprecated.Evaluate the fronts and set the correspondent rank values.- Returns:
- the fronts
-
calcDistance
Deprecated. -
synchronize
Deprecated.
-
ScalingNsga2
. TODO: delete this and baseScalingNsga2
onNsga2
.