|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectec.eval.Slave
public class Slave
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 |
---|
public static final java.lang.String P_PRINTACCESSEDPARAMETERS
public static final java.lang.String P_PRINTUSEDPARAMETERS
public static final java.lang.String P_PRINTALLPARAMETERS
public static final java.lang.String P_PRINTUNUSEDPARAMETERS
public static final java.lang.String P_PRINTUNACCESSEDPARAMETERS
public static final java.lang.String P_EVALSLAVENAME
public static final java.lang.String P_EVALMASTERHOST
public static final java.lang.String P_EVALMASTERPORT
public static final java.lang.String P_EVALCOMPRESSION
public static final java.lang.String P_RETURNINDIVIDUALS
public static final java.lang.String P_SUBPOP
public static final byte V_NOTHING
public static final byte V_INDIVIDUAL
public static final byte V_FITNESS
public static final byte V_SHUTDOWN
public static final byte V_EVALUATESIMPLE
public static final byte V_EVALUATEGROUPED
public static final byte V_CHECKPOINT
public static final java.lang.String A_CHECKPOINT
public static final java.lang.String A_FILE
public static final java.lang.String P_FLUSH
public static final java.lang.String P_STORE
public static final java.lang.String P_VERBOSITY
public static final java.lang.String P_SEED
public static final java.lang.String V_SEED_TIME
public static final java.lang.String P_STATE
public static final int SLEEP_TIME
Constructor Detail |
---|
public Slave()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static void evaluateSimpleProblemForm(EvolutionState state, boolean returnIndividuals, java.io.DataInputStream dataIn, java.io.DataOutputStream dataOut)
public static void evaluateGroupedProblemForm(EvolutionState state, boolean returnIndividuals, java.io.DataInputStream dataIn, java.io.DataOutputStream dataOut)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |