saealib.GenomeGA#
- class saealib.GenomeGA(crossover, mutation, parent_selection, survivor_selection)[ソース]#
ベースクラス:
AskTellAlgorithmA small
ask/tellGA that only uses the GenomeBatch protocol.- パラメータ:
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)[ソース]#
- パラメータ:
crossover (object)
mutation (object)
parent_selection (ParentSelection)
survivor_selection (SurvivorSelection)
- 戻り値の型:
None
- GenomeGA.ask(request, state)[ソース]#
Generate offspring from the current optimization state.
- パラメータ:
request (ProposalRequest)
state (StateView)
- 戻り値の型:
- GenomeGA.create_pareto_archive(attrs, init_capacity, problem)#
Create a ParetoArchive with the correct direction for the problem.
- パラメータ:
attrs (list[PopulationAttribute])
init_capacity (int)
problem (Problem)
- 戻り値の型:
- GenomeGA.get_required_attrs(problem)[ソース]#
Return population attributes required by this algorithm.
- パラメータ:
problem (Problem)
- 戻り値の型:
list[PopulationAttribute]
- GenomeGA.tell(feedback, state)[ソース]#
Update the population with evaluated offspring.
- パラメータ:
feedback (FeedbackBatch)
state (StateView)
- 戻り値の型: