saealib.Algorithm#

class saealib.Algorithm[ソース]#

ベースクラス: ABC

Base class for evolutionary algorithms.

Methods

__init__

ask

Generate one proposal batch from a read-only state view.

contract

Return the evolutionary-algorithm family contract.

create_pareto_archive

Create a ParetoArchive with the correct direction for the problem.

get_required_attrs

Return the list of attributes required for Population.

tell

Consume feedback and return the state changes it produced.

Method Details

Algorithm.__init__()#
abstractmethod Algorithm.ask(request, state)[ソース]#

Generate one proposal batch from a read-only state view.

パラメータ:
  • request (ProposalRequest)

  • state (StateView)

戻り値の型:

ProposalBatch

Algorithm.contract()[ソース]#

Return the evolutionary-algorithm family contract.

戻り値の型:

ComponentContract

Algorithm.create_pareto_archive(attrs, init_capacity, problem)[ソース]#

Create a ParetoArchive with the correct direction for the problem.

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

ParetoArchive

abstractmethod Algorithm.get_required_attrs(problem)[ソース]#

Return the list of attributes required for Population.

パラメータ:

problem (Problem)

戻り値の型:

list[PopulationAttribute]

abstractmethod Algorithm.tell(feedback, state)[ソース]#

Consume feedback and return the state changes it produced.

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

StatePatch