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 Modifier and Type Field Description protected Map<Objective,Range>objectiveRanges-
Fields inherited from class org.opt4j.optimizer.ea.AlternativeNsga2
dist, fronts, ind, m, map, random, rank, tournament
-
-
Constructor Summary
Constructors Constructor Description ScalingNsga2(Rand random, int tournament, Population population)Constructs aScalingNsga2Selector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Constructor Detail
-
ScalingNsga2
@Inject public ScalingNsga2(Rand random, int tournament, Population population)
Constructs aScalingNsga2Selector.- Parameters:
random- the random number generatortournament- the tournament value
-
-
Method Detail
-
calcDistance
protected void calcDistance(List<Integer> list)
- Overrides:
calcDistancein classAlternativeNsga2
-
individualAdded
public void individualAdded(IndividualSet collection, Individual individual)
Description copied from interface:IndividualSetListenerInvoked if theIndividualis added to theIndividualSet.- Specified by:
individualAddedin interfaceIndividualSetListener- Parameters:
collection- the observed collectionindividual- the added individual
-
individualRemoved
public void individualRemoved(IndividualSet collection, Individual individual)
Description copied from interface:IndividualSetListenerInvoked if theIndividualis removed from theIndividualSet.- Specified by:
individualRemovedin interfaceIndividualSetListener- Parameters:
collection- the observed collectionindividual- the removed individual
-
inidividualStateChanged
public void inidividualStateChanged(Individual individual)
Description copied from interface:IndividualStateListenerInvoked if theIndividualchanges its state.- Specified by:
inidividualStateChangedin interfaceIndividualStateListener- Parameters:
individual- the individual that changes the state
-
-