saealib.GenomeGA#

class saealib.GenomeGA(crossover, mutation, parent_selection, survivor_selection)[ソース]#

ベースクラス: AskTellAlgorithm

A small ask/tell GA that only uses the GenomeBatch protocol.

パラメータ:

Methods

__init__

ask

Generate offspring from the current optimization state.

contract

Return the component contract for this genetic algorithm.

create_pareto_archive

Create a ParetoArchive with the correct direction for the problem.

get_required_attrs

Return population attributes required by this algorithm.

tell

Update the population with evaluated offspring.

Method Details

GenomeGA.__init__(crossover, mutation, parent_selection, survivor_selection)[ソース]#
パラメータ:
戻り値の型:

None

GenomeGA.ask(request, state)[ソース]#

Generate offspring from the current optimization state.

パラメータ:
  • request (ProposalRequest)

  • state (StateView)

戻り値の型:

ProposalBatch

GenomeGA.contract()[ソース]#

Return the component contract for this genetic algorithm.

GenomeGA.create_pareto_archive(attrs, init_capacity, problem)#

Create a ParetoArchive with the correct direction for the problem.

パラメータ:
戻り値の型:

ParetoArchive

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.

パラメータ:
戻り値の型:

StatePatch