|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jaga.control.JobInterviewIM
Interaction Model which has nrRounds
rounds of evaluation. Usually
each would be of increasing difficulty and cost, so that only individuals close to the top of
the rank table are evaluated precisely. Only those individuals whose fitness at the previous
round was greater than the fitness of the best minus a threshold will pass to the next round.
These thresholds and what fitness measure each round defines are configured through
thresholds
and roundTargets
respectively.
This version is written to allow multiple populations, with one of them being the main one which dominates when to go to the next round, etc...
To use this class all that needs to be done is to implement the evaluate method, this should
look at the currRound
to know which round the evaluation is taking place in.
Rounds start counting at 0.
Constructor Summary | |
JobInterviewIM(Evolver[] allEvolvers,
int numOfRounds,
double[][] nextRoundFilterThresholds,
int[] roundTargetsForFitnessMeasures,
islandev.SnapshotPainter painter)
Creates a new instance of JobInterviewIM - For multiple populations |
|
JobInterviewIM(Evolver evolver,
int numOfRounds,
double[] nextRoundFilterThresholds,
int[] roundTargetsForFitnessMeasures,
islandev.SnapshotPainter painter)
Constructor for single population |
Method Summary | |
double[] |
evaluateNext()
Should be same as calling evaluate( pickIndividuals() ); |
int |
evaluationsPerGeneration()
|
void |
evolve()
Evolves to the next generation of all/some of the populations involved. |
Genotype |
getMaxFitness()
|
Genotype[] |
getNextIndividuals()
Picks a number of individuals to be evaluated next. |
int |
getNumEvolvers()
|
Population[] |
getPopulations()
|
islandev.SnapshotPainter |
getSnapshotPainter()
|
Genotype[] |
pickIndividuals()
|
void |
setPopulations(Population[] pops)
Sets the populations of the evolvers to be these |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jaga.control.InteractionModel |
evaluate |
Constructor Detail |
public JobInterviewIM(Evolver[] allEvolvers, int numOfRounds, double[][] nextRoundFilterThresholds, int[] roundTargetsForFitnessMeasures, islandev.SnapshotPainter painter)
public JobInterviewIM(Evolver evolver, int numOfRounds, double[] nextRoundFilterThresholds, int[] roundTargetsForFitnessMeasures, islandev.SnapshotPainter painter)
Method Detail |
public double[] evaluateNext()
evaluateNext
in interface InteractionModel
public int evaluationsPerGeneration()
evaluationsPerGeneration
in interface InteractionModel
public void evolve()
evolve
in interface InteractionModel
public Genotype getMaxFitness()
getMaxFitness
in interface InteractionModel
public Genotype[] getNextIndividuals()
evaluationsPerGeneration()
.getNextIndividuals
in interface InteractionModel
public int getNumEvolvers()
getNumEvolvers
in interface InteractionModel
public Population[] getPopulations()
getPopulations
in interface InteractionModel
public Genotype[] pickIndividuals()
pickIndividuals
in interface InteractionModel
public void setPopulations(Population[] pops)
setPopulations
in interface InteractionModel
public islandev.SnapshotPainter getSnapshotPainter()
getSnapshotPainter
in interface InteractionModel
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |