Package org.opt4j.optimizer.ea
Class ScalingNsga2
java.lang.Object
org.opt4j.optimizer.ea.AlternativeNsga2
org.opt4j.optimizer.ea.ScalingNsga2
- All Implemented Interfaces:
IndividualSetListener
,IndividualStateListener
,Selector
public class ScalingNsga2
extends AlternativeNsga2
implements IndividualSetListener, IndividualStateListener
Latest version of NSGA-II with the dimensions scaled on the basis of the
individual ranges when calculating the crowding distance as described in
K. Deb, A. Pratap, S. Agarwal, and T. Meyarivan, "A fast and elitist
multiobjective genetic algorithm : Nsga-ii," Evolutionary Computation,
IEEETransactions on, vol. 6, no. 2, pp. 182-197, August 2002.
-
Field Summary
Fields inherited from class org.opt4j.optimizer.ea.AlternativeNsga2
dist, fronts, ind, m, map, random, rank, tournament
-
Constructor Summary
ConstructorDescriptionScalingNsga2
(Rand random, int tournament, Population population) Constructs aScalingNsga2
Selector
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
calcDistance
(List<Integer> list) void
individualAdded
(IndividualSet collection, Individual individual) Invoked if theIndividual
is added to theIndividualSet
.void
individualRemoved
(IndividualSet collection, Individual individual) Invoked if theIndividual
is removed from theIndividualSet
.void
inidividualStateChanged
(Individual individual) Invoked if theIndividual
changes its state.Methods inherited from class org.opt4j.optimizer.ea.AlternativeNsga2
fronts, getLames, getParents, init, synchronize
-
Field Details
-
objectiveRanges
-
-
Constructor Details
-
ScalingNsga2
Constructs aScalingNsga2
Selector
.- Parameters:
random
- the random number generatortournament
- the tournament value
-
-
Method Details
-
calcDistance
- Overrides:
calcDistance
in classAlternativeNsga2
-
individualAdded
Description copied from interface:IndividualSetListener
Invoked if theIndividual
is added to theIndividualSet
.- Specified by:
individualAdded
in interfaceIndividualSetListener
- Parameters:
collection
- the observed collectionindividual
- the added individual
-
individualRemoved
Description copied from interface:IndividualSetListener
Invoked if theIndividual
is removed from theIndividualSet
.- Specified by:
individualRemoved
in interfaceIndividualSetListener
- Parameters:
collection
- the observed collectionindividual
- the removed individual
-
inidividualStateChanged
Description copied from interface:IndividualStateListener
Invoked if theIndividual
changes its state.- Specified by:
inidividualStateChanged
in interfaceIndividualStateListener
- Parameters:
individual
- the individual that changes the state
-