Termination¶
Termination class to determine when to stop the optimization process. |
- saealib.max_fe(value)[source]¶
Create a termination condition based on maximum function evaluations.
- Parameters:
value (int) – Maximum number of function evaluations.
- Returns:
A callable that returns True when
ctx.fe >= value.- Return type:
TerminationCondition
Examples
>>> termination = Termination(max_fe(2000))