de.kumpe.hadooptimizer.examples
Class OptimizerExample<I>

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by de.kumpe.hadooptimizer.examples.Example
          extended by de.kumpe.hadooptimizer.examples.OptimizerExample<I>
Type Parameters:
I - the individual's type
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
Direct Known Subclasses:
HadoopTest, IncrementingOffspring, IncrementingSleep, JenevaSleepExample, JenevaXorExample, Kit, Loop, MinimumInGraph, MinimumInPolygon, MonaLisa, NoOp, PolygonPaint, Polynomial, Rastrigin, Rosenbrock, Sleep, XorNet

public abstract class OptimizerExample<I>
extends Example

Base class for all "executables" in the examples module. It delivers a basic infrastructure for a common workflow:

  1. createOptions()
  2. processCommandLine()
  3. execute()

Author:
Christian Kumpe

Field Summary
protected  int offspring
           
protected static String OPTION_CYCLES
           
protected static String OPTION_EA
           
protected static String OPTION_ES
           
protected static String OPTION_EVALUATION_LIMIT
           
protected static String OPTION_MULTI_POPULATIONS
           
protected static String OPTION_NS_LIMIT
           
protected static String OPTION_OFFSPRING
           
protected static String OPTION_PARENTS
           
protected static String OPTION_PRESERVE_PARENTS
           
protected static String OPTION_STANDARD_DEVIATION
           
protected static String OPTION_TIME_LIMIT
           
protected static String OPTION_ZERO_PADDING
           
protected  int parents
           
protected  boolean preserveParents
           
protected  double standardDeviation
           
 
Fields inherited from class de.kumpe.hadooptimizer.examples.Example
BANNER_TEXT, baseDir, COMMAND_LINE, commandLine, log, logFile, OPTION_GUI, OPTION_HELP, OPTION_LOG_LEVEL, shutdownHooks
 
Constructor Summary
OptimizerExample()
           
 
Method Summary
protected  void addReporter(ReportingHalterWrapper.Reporter<I> reporter)
           
protected  EaOptimizerConfiguration<I> createEaOptimizerConfiguration()
           
protected  EsOptimizerConfiguration createEsOptimizerConfiguration()
           
protected  org.apache.commons.cli.Options createOptions()
           
protected  void execute()
           
protected  void initConfiguration(EaOptimizerConfiguration<I> configuration, I startIndividual)
           
protected  void initConfiguration(EaOptimizerConfigurationBase<I> configuration, I startIndividual)
           
protected  void initConfiguration(EsOptimizerConfiguration configuration, I startIndividual)
           
protected  void processCommandLine()
           
 
Methods inherited from class de.kumpe.hadooptimizer.examples.Example
getVersionInfo, intputStream, outputStream, run
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_STANDARD_DEVIATION

protected static final String OPTION_STANDARD_DEVIATION
See Also:
Constant Field Values

OPTION_ZERO_PADDING

protected static final String OPTION_ZERO_PADDING
See Also:
Constant Field Values

OPTION_MULTI_POPULATIONS

protected static final String OPTION_MULTI_POPULATIONS
See Also:
Constant Field Values

OPTION_ES

protected static final String OPTION_ES
See Also:
Constant Field Values

OPTION_EA

protected static final String OPTION_EA
See Also:
Constant Field Values

OPTION_OFFSPRING

protected static final String OPTION_OFFSPRING
See Also:
Constant Field Values

OPTION_PRESERVE_PARENTS

protected static final String OPTION_PRESERVE_PARENTS
See Also:
Constant Field Values

OPTION_EVALUATION_LIMIT

protected static final String OPTION_EVALUATION_LIMIT
See Also:
Constant Field Values

OPTION_TIME_LIMIT

protected static final String OPTION_TIME_LIMIT
See Also:
Constant Field Values

OPTION_NS_LIMIT

protected static final String OPTION_NS_LIMIT
See Also:
Constant Field Values

OPTION_CYCLES

protected static final String OPTION_CYCLES
See Also:
Constant Field Values

OPTION_PARENTS

protected static final String OPTION_PARENTS
See Also:
Constant Field Values

parents

protected int parents

preserveParents

protected boolean preserveParents

offspring

protected int offspring

standardDeviation

protected double standardDeviation
Constructor Detail

OptimizerExample

public OptimizerExample()
Method Detail

createOptions

protected org.apache.commons.cli.Options createOptions()
                                                throws Exception
Overrides:
createOptions in class Example
Throws:
Exception

processCommandLine

protected void processCommandLine()
                           throws Exception
Overrides:
processCommandLine in class Example
Throws:
Exception

execute

protected void execute()
                throws Exception
Specified by:
execute in class Example
Throws:
Exception

createEaOptimizerConfiguration

protected EaOptimizerConfiguration<I> createEaOptimizerConfiguration()
                                                              throws org.apache.commons.cli.ParseException
Throws:
org.apache.commons.cli.ParseException

createEsOptimizerConfiguration

protected EsOptimizerConfiguration createEsOptimizerConfiguration()
                                                           throws org.apache.commons.cli.ParseException
Throws:
org.apache.commons.cli.ParseException

initConfiguration

protected void initConfiguration(EaOptimizerConfigurationBase<I> configuration,
                                 I startIndividual)

initConfiguration

protected void initConfiguration(EaOptimizerConfiguration<I> configuration,
                                 I startIndividual)

initConfiguration

protected void initConfiguration(EsOptimizerConfiguration configuration,
                                 I startIndividual)

addReporter

protected void addReporter(ReportingHalterWrapper.Reporter<I> reporter)


Copyright © 2011 Christian Kumpe. All Rights Reserved.