geneticengine.algorithms.enumerative

Classes

EnumerativeSearch

Iterates through all possible representations and selects the best.

Functions

frange(start, stop, step)

foundDict(d, target, result)

combine_list_types(ts, acc, gen[, dependent_values])

iterate_grammar(grammar, starting_symbol[, ...])

iterate_individuals(grammar, starting_symbol)

Module Contents

geneticengine.algorithms.enumerative.frange(start, stop, step)
geneticengine.algorithms.enumerative.foundDict(d, target, result)
geneticengine.algorithms.enumerative.combine_list_types(ts, acc, gen, dependent_values={})
Parameters:
  • ts (list[type])

  • acc (list[Any])

  • dependent_values (Optional[dict[str, Any]])

geneticengine.algorithms.enumerative.iterate_grammar(grammar, starting_symbol, generator_for_recursive=None, dependent_values={})
Parameters:
geneticengine.algorithms.enumerative.iterate_individuals(grammar, starting_symbol)
Parameters:
Return type:

Generator[geneticengine.solutions.individual.ConcreteIndividual, Any, Any]

class geneticengine.algorithms.enumerative.EnumerativeSearch(problem, budget, grammar, tracker=None)

Bases: geneticengine.algorithms.api.SynthesisAlgorithm

Iterates through all possible representations and selects the best.

Parameters:
grammar
Return type:

list[geneticengine.solutions.individual.Individual]