gemseo.algos.evaluation_counter module#

An evaluation counter.

class EvaluationCounter(current=0, maximum=0)[source]#

Bases: object

An evaluation counter.

Parameters:
  • current (int) --

    By default it is set to 0.

  • maximum (int) --

    By default it is set to 0.

current: int = 0#

The current number of evaluations.

maximum: int = 0#

The maximum number of evaluations allowed.

property maximum_is_reached: bool#

Whether the maximum number of evaluations is reached.