ec.eval
Class Slave

java.lang.Object
  extended by ec.eval.Slave

public class Slave
extends java.lang.Object

Slave.java

Slave is the main entry point for a slave evaluation process. It replicates most of the functionality of the ec.Evolve class, for example in terms of parameters anc checkpointing. However, the Slave class does not implement an evolutionary process, as there is no selection, nor breeding. Instead, upon initialization, the Slave process only waits for jobs (evaluations) from the main evolutionary process (its master). Such jobs can be either traditional evolutionary computation evaluations (a single individual that needs to be evaluated), or coevolutionary evaluations (groups of individuals that have to be evaluated together).

The slave is run with one of the following argument formats:


Field Summary
static java.lang.String A_CHECKPOINT
          The argument indicating that we're starting up from a checkpoint file.
static java.lang.String A_FILE
          The argument indicating that we're starting fresh from a new parameter file.
static java.lang.String P_EVALCOMPRESSION
           
static java.lang.String P_EVALMASTERHOST
           
static java.lang.String P_EVALMASTERPORT
           
static java.lang.String P_EVALSLAVENAME
           
static java.lang.String P_FLUSH
          flush announcements parameter
static java.lang.String P_PRINTACCESSEDPARAMETERS
           
static java.lang.String P_PRINTALLPARAMETERS
           
static java.lang.String P_PRINTUNACCESSEDPARAMETERS
           
static java.lang.String P_PRINTUNUSEDPARAMETERS
           
static java.lang.String P_PRINTUSEDPARAMETERS
           
static java.lang.String P_RETURNINDIVIDUALS
           
static java.lang.String P_SEED
          seed parameter
static java.lang.String P_STATE
          state parameter
static java.lang.String P_STORE
          nostore parameter
static java.lang.String P_SUBPOP
           
static java.lang.String P_VERBOSITY
          verbosity parameter
static int SLEEP_TIME
          How long we sleep in between attempts to connect to the master (in milliseconds).
static byte V_CHECKPOINT
           
static byte V_EVALUATEGROUPED
           
static byte V_EVALUATESIMPLE
           
static byte V_FITNESS
           
static byte V_INDIVIDUAL
           
static byte V_NOTHING
           
static java.lang.String V_SEED_TIME
          'time' seed parameter value
static byte V_SHUTDOWN
           
 
Constructor Summary
Slave()
           
 
Method Summary
static void evaluateGroupedProblemForm(EvolutionState state, boolean returnIndividuals, java.io.DataInputStream dataIn, java.io.DataOutputStream dataOut)
           
static void evaluateSimpleProblemForm(EvolutionState state, boolean returnIndividuals, java.io.DataInputStream dataIn, java.io.DataOutputStream dataOut)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P_PRINTACCESSEDPARAMETERS

public static final java.lang.String P_PRINTACCESSEDPARAMETERS
See Also:
Constant Field Values

P_PRINTUSEDPARAMETERS

public static final java.lang.String P_PRINTUSEDPARAMETERS
See Also:
Constant Field Values

P_PRINTALLPARAMETERS

public static final java.lang.String P_PRINTALLPARAMETERS
See Also:
Constant Field Values

P_PRINTUNUSEDPARAMETERS

public static final java.lang.String P_PRINTUNUSEDPARAMETERS
See Also:
Constant Field Values

P_PRINTUNACCESSEDPARAMETERS

public static final java.lang.String P_PRINTUNACCESSEDPARAMETERS
See Also:
Constant Field Values

P_EVALSLAVENAME

public static final java.lang.String P_EVALSLAVENAME
See Also:
Constant Field Values

P_EVALMASTERHOST

public static final java.lang.String P_EVALMASTERHOST
See Also:
Constant Field Values

P_EVALMASTERPORT

public static final java.lang.String P_EVALMASTERPORT
See Also:
Constant Field Values

P_EVALCOMPRESSION

public static final java.lang.String P_EVALCOMPRESSION
See Also:
Constant Field Values

P_RETURNINDIVIDUALS

public static final java.lang.String P_RETURNINDIVIDUALS
See Also:
Constant Field Values

P_SUBPOP

public static final java.lang.String P_SUBPOP
See Also:
Constant Field Values

V_NOTHING

public static final byte V_NOTHING
See Also:
Constant Field Values

V_INDIVIDUAL

public static final byte V_INDIVIDUAL
See Also:
Constant Field Values

V_FITNESS

public static final byte V_FITNESS
See Also:
Constant Field Values

V_SHUTDOWN

public static final byte V_SHUTDOWN
See Also:
Constant Field Values

V_EVALUATESIMPLE

public static final byte V_EVALUATESIMPLE
See Also:
Constant Field Values

V_EVALUATEGROUPED

public static final byte V_EVALUATEGROUPED
See Also:
Constant Field Values

V_CHECKPOINT

public static final byte V_CHECKPOINT
See Also:
Constant Field Values

A_CHECKPOINT

public static final java.lang.String A_CHECKPOINT
The argument indicating that we're starting up from a checkpoint file.

See Also:
Constant Field Values

A_FILE

public static final java.lang.String A_FILE
The argument indicating that we're starting fresh from a new parameter file.

See Also:
Constant Field Values

P_FLUSH

public static final java.lang.String P_FLUSH
flush announcements parameter

See Also:
Constant Field Values

P_STORE

public static final java.lang.String P_STORE
nostore parameter

See Also:
Constant Field Values

P_VERBOSITY

public static final java.lang.String P_VERBOSITY
verbosity parameter

See Also:
Constant Field Values

P_SEED

public static final java.lang.String P_SEED
seed parameter

See Also:
Constant Field Values

V_SEED_TIME

public static final java.lang.String V_SEED_TIME
'time' seed parameter value

See Also:
Constant Field Values

P_STATE

public static final java.lang.String P_STATE
state parameter

See Also:
Constant Field Values

SLEEP_TIME

public static final int SLEEP_TIME
How long we sleep in between attempts to connect to the master (in milliseconds).

See Also:
Constant Field Values
Constructor Detail

Slave

public Slave()
Method Detail

main

public static void main(java.lang.String[] args)

evaluateSimpleProblemForm

public static void evaluateSimpleProblemForm(EvolutionState state,
                                             boolean returnIndividuals,
                                             java.io.DataInputStream dataIn,
                                             java.io.DataOutputStream dataOut)

evaluateGroupedProblemForm

public static void evaluateGroupedProblemForm(EvolutionState state,
                                              boolean returnIndividuals,
                                              java.io.DataInputStream dataIn,
                                              java.io.DataOutputStream dataOut)