saealib.GenomeGA#
- class saealib.GenomeGA(crossover, mutation, parent_selection, survivor_selection)[source]#
Bases:
AskTellAlgorithmA small
ask/tellGA that only uses the GenomeBatch protocol.- Parameters:
crossover (object)
mutation (object)
parent_selection (ParentSelection)
survivor_selection (SurvivorSelection)
Methods
Generate offspring from the current optimization state. |
|
Return the component contract for this genetic algorithm. |
|
Create a ParetoArchive with the correct direction for the problem. |
|
Return population attributes required by this algorithm. |
|
Update the population with evaluated offspring. |
Method Details
- GenomeGA.__init__(crossover, mutation, parent_selection, survivor_selection)[source]#
- Parameters:
crossover (object)
mutation (object)
parent_selection (ParentSelection)
survivor_selection (SurvivorSelection)
- Return type:
None
- GenomeGA.ask(request, state)[source]#
Generate offspring from the current optimization state.
- Parameters:
request (ProposalRequest)
state (StateView)
- Return type:
- GenomeGA.create_pareto_archive(attrs, init_capacity, problem)#
Create a ParetoArchive with the correct direction for the problem.
- Parameters:
attrs (list[PopulationAttribute])
init_capacity (int)
problem (Problem)
- Return type:
- GenomeGA.get_required_attrs(problem)[source]#
Return population attributes required by this algorithm.
- Parameters:
problem (Problem)
- Return type:
list[PopulationAttribute]
- GenomeGA.tell(feedback, state)[source]#
Update the population with evaluated offspring.
- Parameters:
feedback (FeedbackBatch)
state (StateView)
- Return type: