ScalingNsga2. TODO: delete this and base ScalingNsga2 on Nsga2.public class AlternativeNsga2 extends Object implements Selector
Nsga2 Selector.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"| Constructor and Description |
|---|
AlternativeNsga2(Rand random,
int tournament)
Deprecated.
Constructs a
Nsga2 Selector. |
| Modifier and Type | Method and Description |
|---|---|
List<List<Integer>> |
fronts()
Deprecated.
Evaluate the fronts and set the correspondent rank values.
|
Collection<Individual> |
getLames(int n,
Collection<Individual> population)
Deprecated.
|
Collection<Individual> |
getParents(int mu,
Collection<Individual> population)
Deprecated.
Selects a subset of
Individuals and returns it as a new
Collection. |
void |
init(int maxsize)
Deprecated.
Sets the maximal number of
Individuals. |
@Inject public AlternativeNsga2(Rand random, int tournament)
Nsga2 Selector.random - the random number generatortournament - the tournament valuepublic void init(int maxsize)
SelectorIndividuals.public Collection<Individual> getParents(int mu, Collection<Individual> population)
SelectorIndividuals and returns it as a new
Collection. These so called parents can be used to form the next
generation.getParents in interface Selectormu - the number of parents to selectpopulation - the list of individualspublic Collection<Individual> getLames(int n, Collection<Individual> population)
Selectorlambda Individuals and returns it as
a new Collection. These individuals can be erased in the next
generation.