de.kumpe.hadooptimizer
Class EsOptimizerConfiguration

java.lang.Object
  extended by de.kumpe.hadooptimizer.OptimizerConfiguration<I>
      extended by de.kumpe.hadooptimizer.EaOptimizerConfigurationBase<EsIndividual>
          extended by 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:

For an E(μ+/,λ)-evolution strategy these configuration has the following corresponding parameters:

Author:
Christian Kumpe
See Also:
Serialized Form

Constructor Summary
EsOptimizerConfiguration()
           
 
Method Summary
 EsOptimizerConfiguration clone()
          Returns a shallow copy of this configuration.
 boolean equals(Object obj)
           
 int getOffspring()
           
 int hashCode()
           
 void setOffspring(int offspring)
          Sets the number of offspring for the evolution strategy.
 String toString()
           
 
Methods inherited from class de.kumpe.hadooptimizer.EaOptimizerConfigurationBase
getEvaluator, getHalter, getMutator, getParents, injectRandomGenerator, isPreserveParents, setEvaluator, setHalter, setMutator, setParents, setPreserveParents, validate
 
Methods inherited from class de.kumpe.hadooptimizer.OptimizerConfiguration
deepClone, getPopulationReader, getPopulationWriter, getRandomGeneratorFactory, injectRandomGenerator, setPopulationReader, setPopulationWriter, setRandomGeneratorFactory
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EsOptimizerConfiguration

public EsOptimizerConfiguration()
Method Detail

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.