freneticlib.stopcriteria.abstract

Module Contents

Classes

StopCriterion

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

class freneticlib.stopcriteria.abstract.StopCriterion[source]

Bases: abc.ABC

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

abstract property is_random_phase: bool

Returns True when random generation should be performed.

Returns:

If the random phase is still ongoing.

Return type:

(bool)

abstract property is_over: bool

Returns True when the search is over.

Return

(bool): If the search is over.

abstract execute_test(test: freneticlib.core.core.TestIndividual)[source]

Informs the stop criterion that a test will be executed.

Parameters:

test (TestIndividual) – The test (road & execution data) that has been executed.