de.kumpe.hadooptimizer
Class EsOptimizerConfiguration
java.lang.Object
de.kumpe.hadooptimizer.OptimizerConfiguration<I>
de.kumpe.hadooptimizer.EaOptimizerConfigurationBase<EsIndividual>
de.kumpe.hadooptimizer.EsOptimizerConfiguration
- All Implemented Interfaces:
- Serializable, Cloneable
public class EsOptimizerConfiguration
- extends EaOptimizerConfigurationBase<EsIndividual>
A configuration for evolution strategies. The individuals' type of evolution
strategies is always EsIndividual.
Additionally to the components in EaOptimizerConfigurationBase it
contains:
- The number of
offsprings that will be created
per parent.
For an E(μ+/,λ)-evolution strategy these configuration has the following
corresponding parameters:
- μ: the number of
parents.
- + or ,: the
preserveParents flag to
indicate that parents should be preserved (plus-selection) or discarded
(comma-selection).
- λ: the number of
offspring created per parent.
- Author:
- Christian Kumpe
- See Also:
- Serialized Form
| Methods inherited from class de.kumpe.hadooptimizer.EaOptimizerConfigurationBase |
getEvaluator, getHalter, getMutator, getParents, injectRandomGenerator, isPreserveParents, setEvaluator, setHalter, setMutator, setParents, setPreserveParents, validate |
EsOptimizerConfiguration
public EsOptimizerConfiguration()
clone
public EsOptimizerConfiguration clone()
- Description copied from class:
OptimizerConfiguration
- Returns a shallow copy of this configuration. This will not clone the
configuration's components.
Subclasses should override this method to cast the result to themself.
- Overrides:
clone in class OptimizerConfiguration<EsIndividual>
- Returns:
- the shallow copy of this configuration
getOffspring
public final int getOffspring()
- Returns:
- the number of offspring
- See Also:
setOffspring(int)
setOffspring
public final void setOffspring(int offspring)
- Sets the number of offspring for the evolution strategy.
For an E(μ+/,λ)-evolution strategy, this sets the λ.
- Parameters:
offspring - the number of offspring
- Throws:
IllegalArgumentException - if offspring is zero or negative
hashCode
public int hashCode()
- Overrides:
hashCode in class EaOptimizerConfigurationBase<EsIndividual>
equals
public boolean equals(Object obj)
- Overrides:
equals in class EaOptimizerConfigurationBase<EsIndividual>
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011 Christian Kumpe. All Rights Reserved.