Package org.opt4j.optimizers.ea.aeseh
Class EpsilonMappingAdditive
- java.lang.Object
-
- org.opt4j.optimizers.ea.aeseh.EpsilonMappingAdditive
-
- All Implemented Interfaces:
EpsilonMapping
public class EpsilonMappingAdditive extends java.lang.Object implements EpsilonMapping
TheEpsilonMappingAdditive
implements the evenly spaced adaptive ε function.
-
-
Constructor Summary
Constructors Constructor Description EpsilonMappingAdditive()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<org.opt4j.core.Objective,java.lang.Double>
findObjectiveAmplitudes(java.util.Set<org.opt4j.core.Individual> individuals)
Creates a map mapping theObjective
s to their amplitudes (difference between maximal and minimal value).org.opt4j.core.Objectives
mapObjectives(org.opt4j.core.Objectives original, double epsilon, java.util.Map<org.opt4j.core.Objective,java.lang.Double> objectiveAmplitudes)
Applies ε mapping by enhancing all of the givenObjective
s by the ε fraction of the objective amplitude.
-
-
-
Method Detail
-
mapObjectives
public org.opt4j.core.Objectives mapObjectives(org.opt4j.core.Objectives original, double epsilon, java.util.Map<org.opt4j.core.Objective,java.lang.Double> objectiveAmplitudes)
Applies ε mapping by enhancing all of the givenObjective
s by the ε fraction of the objective amplitude.- Specified by:
mapObjectives
in interfaceEpsilonMapping
- Parameters:
original
- theObjectives
that are enhanced by this methodepsilon
- the fraction used for the enhancementobjectiveAmplitudes
- the map mapping its objective onto its amplitude- Returns:
- enhanced
Objectives
where eachObjective
is improved by the ε fraction of the objective's amplitude
-
findObjectiveAmplitudes
public java.util.Map<org.opt4j.core.Objective,java.lang.Double> findObjectiveAmplitudes(java.util.Set<org.opt4j.core.Individual> individuals)
Description copied from interface:EpsilonMapping
Creates a map mapping theObjective
s to their amplitudes (difference between maximal and minimal value). These extreme values are used during ε mapping to scale the delta according to the objective values of theIndividual
group under consideration.- Specified by:
findObjectiveAmplitudes
in interfaceEpsilonMapping
- Returns:
- map mapping each
Objective
onto its amplitude
-
-