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
FieldsFields inherited from class org.opt4j.optimizer.ea.AlternativeNsga2
dist, fronts, ind, m, map, random, rank, tournament -
Constructor Summary
ConstructorsConstructorDescriptionScalingNsga2(Rand random, int tournament, Population population) Constructs aScalingNsga2Selector. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalcDistance(List<Integer> list) voidindividualAdded(IndividualSet collection, Individual individual) Invoked if theIndividualis added to theIndividualSet.voidindividualRemoved(IndividualSet collection, Individual individual) Invoked if theIndividualis removed from theIndividualSet.voidinidividualStateChanged(Individual individual) Invoked if theIndividualchanges its state.Methods inherited from class org.opt4j.optimizer.ea.AlternativeNsga2
fronts, getLames, getParents, init, synchronize
-
Field Details
-
objectiveRanges
-
-
Constructor Details
-
ScalingNsga2
Constructs aScalingNsga2Selector.- Parameters:
random- the random number generatortournament- the tournament value
-
-
Method Details
-
calcDistance
- Overrides:
calcDistancein classAlternativeNsga2
-
individualAdded
Description copied from interface:IndividualSetListenerInvoked if theIndividualis added to theIndividualSet.- Specified by:
individualAddedin interfaceIndividualSetListener- Parameters:
collection- the observed collectionindividual- the added individual
-
individualRemoved
Description copied from interface:IndividualSetListenerInvoked if theIndividualis removed from theIndividualSet.- Specified by:
individualRemovedin interfaceIndividualSetListener- Parameters:
collection- the observed collectionindividual- the removed individual
-
inidividualStateChanged
Description copied from interface:IndividualStateListenerInvoked if theIndividualchanges its state.- Specified by:
inidividualStateChangedin interfaceIndividualStateListener- Parameters:
individual- the individual that changes the state
-