public class Normalizer extends Object implements IndividualStateListener
Normalizer can be used to normalize Objectives.| Constructor and Description |
|---|
Normalizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
inidividualStateChanged(Individual individual)
Invoked if the
Individual changes its state. |
Objectives |
normalize(Objectives objectives)
Returns normalized objectives.
|
static double |
toMinProblem(Objective objective,
Value<?> value)
Transforms the the
Objective to a minimization objective, i.e. |
public Objectives normalize(Objectives objectives)
Individuals and 1 the
biggest value, respectively. If an objective is infeasible, it is set to
1.objectives - the objectives to normalizepublic void inidividualStateChanged(Individual individual)
IndividualStateListenerIndividual changes its state.inidividualStateChanged in interface IndividualStateListenerindividual - the individual that changes the statepublic static final double toMinProblem(Objective objective, Value<?> value)
Objective to a minimization objective, i.e. if
the given objective is to be maximized, the negation of the given value
is returned.objective - the respective objectivevalue - the value to transform