saealib.GenomeGA#

class saealib.GenomeGA(crossover, mutation, parent_selection, survivor_selection)[source]#

Bases: AskTellAlgorithm

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

Parameters:

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)[source]#
Parameters:
Return type:

None

GenomeGA.ask(request, state)[source]#

Generate offspring from the current optimization state.

Parameters:
  • request (ProposalRequest)

  • state (StateView)

Return type:

ProposalBatch

GenomeGA.contract()[source]#

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.

Parameters:
Return type:

ParetoArchive

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:
Return type:

StatePatch