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
FieldsModifier and TypeFieldDescriptionprotected double[]Deprecated.Deprecated.protected Individual[]Deprecated.protected IntegerDeprecated.protected final Map<Individual,Integer> Deprecated.protected final RandomDeprecated.protected int[]Deprecated.protected final intDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionAlternativeNsga2(Rand random, int tournament) Deprecated.Constructs aNsga2Selector. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalcDistance(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 ofIndividuals and returns it as a newCollection.voidinit(int maxsize) Deprecated.Sets the maximal number ofIndividuals.protected booleansynchronize(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 aNsga2Selector.- Parameters:
random- the random number generatortournament- the tournament value
-
-
Method Details
-
init
public void init(int maxsize) Deprecated.Description copied from interface:SelectorSets the maximal number ofIndividuals. -
getParents
Deprecated.Description copied from interface:SelectorSelects a subset ofIndividuals and returns it as a newCollection. These so called parents can be used to form the next generation.- Specified by:
getParentsin interfaceSelector- Parameters:
mu- the number of parents to selectpopulation- the list of individuals- Returns:
- the parents
-
getLames
Deprecated.Description copied from interface:SelectorSelects a subset oflambdaIndividuals 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 baseScalingNsga2onNsga2.