geneticengine.algorithms.api

Classes

SynthesisAlgorithm

Helper class that provides a standard way to create an ABC using

Module Contents

class geneticengine.algorithms.api.SynthesisAlgorithm(problem, budget, tracker=None)

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

Parameters:
tracker: geneticengine.evaluation.tracker.ProgressTracker
problem: geneticengine.problems.Problem
budget: geneticengine.evaluation.budget.SearchBudget
is_done()

Whether the synthesis should stop, or not.

Return type:

bool

get_problem()
Return type:

geneticengine.problems.Problem

search()
Return type:

list[geneticengine.solutions.individual.Individual] | None

Return type:

list[geneticengine.solutions.individual.Individual] | None