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 aScalingNsga2
Selector
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Constructor Detail
-
ScalingNsga2
@Inject public ScalingNsga2(Rand random, int tournament, Population population)
Constructs aScalingNsga2
Selector
.- Parameters:
random
- the random number generatortournament
- the tournament value
-
-
Method Detail
-
calcDistance
protected void calcDistance(List<Integer> list)
- Overrides:
calcDistance
in classAlternativeNsga2
-
individualAdded
public void individualAdded(IndividualSet collection, Individual individual)
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
public void individualRemoved(IndividualSet collection, Individual individual)
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
public void inidividualStateChanged(Individual individual)
Description copied from interface:IndividualStateListener
Invoked if theIndividual
changes its state.- Specified by:
inidividualStateChanged
in interfaceIndividualStateListener
- Parameters:
individual
- the individual that changes the state
-
-