| 
|||||||||
| 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 InteractionModelpublic int evaluationsPerGeneration()
evaluationsPerGeneration in interface InteractionModelpublic void evolve()
evolve in interface InteractionModelpublic Genotype getMaxFitness()
getMaxFitness in interface InteractionModelpublic Genotype[] getNextIndividuals()
evaluationsPerGeneration().getNextIndividuals in interface InteractionModelpublic int getNumEvolvers()
getNumEvolvers in interface InteractionModelpublic Population[] getPopulations()
getPopulations in interface InteractionModelpublic Genotype[] pickIndividuals()
pickIndividuals in interface InteractionModelpublic void setPopulations(Population[] pops)
setPopulations in interface InteractionModelpublic islandev.SnapshotPainter getSnapshotPainter()
getSnapshotPainter in interface InteractionModelpublic 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 | ||||||||