public class ScalingNsga2 extends AlternativeNsga2 implements IndividualSetListener, IndividualStateListener
| Constructor and Description |
|---|
ScalingNsga2(Rand random,
int tournament,
Population population)
Constructs a
ScalingNsga2 Selector. |
| Modifier and Type | Method and Description |
|---|---|
void |
individualAdded(IndividualSet collection,
Individual individual)
Invoked if the
Individual is added to the IndividualSet. |
void |
individualRemoved(IndividualSet collection,
Individual individual)
Invoked if the
Individual is removed from the
IndividualSet. |
void |
inidividualStateChanged(Individual individual)
Invoked if the
Individual changes its state. |
fronts, getLames, getParents, init@Inject public ScalingNsga2(Rand random, int tournament, Population population)
ScalingNsga2 Selector.random - the random number generatortournament - the tournament valuepublic void individualAdded(IndividualSet collection, Individual individual)
IndividualSetListenerIndividual is added to the IndividualSet.individualAdded in interface IndividualSetListenercollection - the observed collectionindividual - the added individualpublic void individualRemoved(IndividualSet collection, Individual individual)
IndividualSetListenerIndividual is removed from the
IndividualSet.individualRemoved in interface IndividualSetListenercollection - the observed collectionindividual - the removed individualpublic void inidividualStateChanged(Individual individual)
IndividualStateListenerIndividual changes its state.inidividualStateChanged in interface IndividualStateListenerindividual - the individual that changes the state