sdt.ga
Class AsyncGeneticAlgorithm
java.lang.Object
|
+--sdt.dist.Program
|
+--sdt.ga.GeneticAlgorithm
|
+--sdt.ga.AsyncGeneticAlgorithm
- public class AsyncGeneticAlgorithm
- extends GeneticAlgorithm
Base Asynchronous Genetic Algorithm class which provides a template for
the different methods to be implemented.
- See Also:
- Serialized Form
Field Summary |
static Arc |
final_generation
Variable indicating the final generation , set by
Population.addOrganism() when last generation is reached. |
static Arc |
incumbent
Variable to keep track of current best organism |
Fields inherited from class sdt.ga.GeneticAlgorithm |
costView,
crossover_percentage,
distributed,
elitism_level,
evaluation_count,
fitness_class,
gaView,
generationNo,
generations,
graphics,
mga,
mga_solns,
minimize_evaluations,
mutation_rate,
n_mga,
niching_percentage,
organism_class,
population_size,
print_level,
random,
save_mode,
seed,
seeded,
select_fittest_percentage,
sharing_percentage,
textObs |
Constructor Summary |
AsyncGeneticAlgorithm()
Create an instance of an Asynchronous Genetic Algorithm. |
AsyncGeneticAlgorithm(java.lang.Class c,
java.lang.Class f)
Create an instance of an Asynchronous GA with a specified
organism class and a specified fitness class. |
Method Summary |
void |
evaluate(Organism org)
Specify how a certain organism is evaluated. |
Arc |
getIncumbent()
return the Incumbent (best) organism. |
java.lang.Object |
run(boolean distributed)
This method provides the sequence of various steps involved in a
GA. |
void |
setIncumbent(Organism org)
sets the Incumbent (best) organism. |
void |
updateSuccessor(AsyncPopulation suc)
Once the evolve nodes in a certain generations complete, the
pointers to the successor population are updated. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
incumbent
public static Arc incumbent
- Variable to keep track of current best organism
final_generation
public static Arc final_generation
- Variable indicating the final generation , set by
Population.addOrganism() when last generation is reached.
AsyncGeneticAlgorithm
public AsyncGeneticAlgorithm()
- Create an instance of an Asynchronous Genetic Algorithm.
AsyncGeneticAlgorithm
public AsyncGeneticAlgorithm(java.lang.Class c,
java.lang.Class f)
- Create an instance of an Asynchronous GA with a specified
organism class and a specified fitness class.
run
public java.lang.Object run(boolean distributed)
- This method provides the sequence of various steps involved in a
GA.
- Overrides:
- run in class GeneticAlgorithm
updateSuccessor
public void updateSuccessor(AsyncPopulation suc)
- Once the evolve nodes in a certain generations complete, the
pointers to the successor population are updated.
evaluate
public void evaluate(Organism org)
- Specify how a certain organism is evaluated.
- Overrides:
- evaluate in class GeneticAlgorithm
setIncumbent
public void setIncumbent(Organism org)
- sets the Incumbent (best) organism.
getIncumbent
public Arc getIncumbent()
- return the Incumbent (best) organism.