metaheuristic_designer.stopping_condition#

Module for algorithm stopping conditions and progress metric evaluation.

Functions

parse_stopping_cond(condition_str)

This function parses an expression of the form "neval or cpu_time" into a tree structure so that it can be further processed.

process_condition(cond_parsed, neval, ngen, ...)

This function receives as an input an expression for the stopping condition and the truth variable of the possible stopping conditions and returns wether to stop or not.

process_progress(cond_parsed, neval, ngen, ...)

This function receives as an input an expression for the stopping condition and the truth variable of the possible stopping conditions and returns wether to stop or not.

Classes

ParsedStoppingCondition(condition_str[, ...])

Encapsulate the logic that decides when an optimization run should end.

StoppingCondition()