saealib.Algorithm#
Methods
Generate one proposal batch from a read-only state view. |
|
Return the evolutionary-algorithm family contract. |
|
Create a ParetoArchive with the correct direction for the problem. |
|
Return the list of attributes required for Population. |
|
Consume feedback and return the state changes it produced. |
Method Details
- Algorithm.__init__()#
- abstractmethod Algorithm.ask(request, state)[source]#
Generate one proposal batch from a read-only state view.
- Parameters:
request (ProposalRequest)
state (StateView)
- Return type:
- Algorithm.create_pareto_archive(attrs, init_capacity, problem)[source]#
Create a ParetoArchive with the correct direction for the problem.
- Parameters:
attrs (list[PopulationAttribute])
init_capacity (int)
problem (Problem)
- Return type:
- abstractmethod Algorithm.get_required_attrs(problem)[source]#
Return the list of attributes required for Population.
- Parameters:
problem (Problem)
- Return type:
list[PopulationAttribute]
- abstractmethod Algorithm.tell(feedback, state)[source]#
Consume feedback and return the state changes it produced.
- Parameters:
feedback (FeedbackBatch)
state (StateView)
- Return type: