geneticengine.evaluation.tracker

Classes

IndividualMemory

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

PriorityQueue

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

ParetoFront

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

ProgressTracker

Module Contents

class geneticengine.evaluation.tracker.IndividualMemory

Bases: abc.ABC

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

append(ind)
Parameters:

ind (geneticengine.solutions.Individual)

Return type:

bool

to_list()
Return type:

list[geneticengine.solutions.Individual]

class geneticengine.evaluation.tracker.PriorityQueue(problem)

Bases: IndividualMemory

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

Parameters:

problem (geneticengine.problems.Problem)

problem
best = None
append(ind)
Return type:

bool

to_list()
class geneticengine.evaluation.tracker.ParetoFront(problem)

Bases: IndividualMemory

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

Parameters:

problem (geneticengine.problems.Problem)

front: list[geneticengine.solutions.Individual]
problem
is_dominated(current, others)
Parameters:
append(ind)
Return type:

bool

to_list()
class geneticengine.evaluation.tracker.ProgressTracker(problem, evaluator=None, recorders=None)
Parameters:
problem: geneticengine.problems.Problem
evaluator: geneticengine.evaluation.Evaluator
start_time: int
recorders: list[geneticengine.evaluation.recorder.SearchRecorder]
memory: IndividualMemory
get_problem()
Return type:

geneticengine.problems.Problem

get_number_evaluations()

The cumulative number of evaluations performed.

Return type:

int

get_elapsed_time()

The elapsed time since the start in seconds.

Return type:

float

evaluate(individuals)
Parameters:

individuals (Iterable[geneticengine.solutions.Individual])

evaluate_single(individual)
Parameters:

individual (geneticengine.solutions.Individual)

get_best_individuals()
Return type:

list[geneticengine.solutions.Individual]