File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 55
66
77class Terminations (IntEnum ):
8- """Helper class used by all optimizer classes."""
8+ """Helper class used by all black-box optimizers.
9+
10+ Four different termination conditions are considered for all optimizers, as below:
11+ * MAX_FUNCTION_EVALUATIONS
12+ * MAX_RUNTIME
13+ * FITNESS_THRESHOLD
14+ * EARLY_STOPPING
15+ """
916 NO_TERMINATION = 0
1017 MAX_FUNCTION_EVALUATIONS = 1 # maximum of function evaluations
1118 MAX_RUNTIME = 2 # maximal runtime to be allowed
12- FITNESS_THRESHOLD = 3 # when the best-so-far fitness is below fitness threshold, the optimizer will stop
13- EARLY_STOPPING = 4 # when the best-so-far fitness does not improve for a long time, the optimizer will stop
19+ FITNESS_THRESHOLD = 3 # when best-so-far fitness is below threshold
20+ EARLY_STOPPING = 4 # when best-so-far fitness does not improve for a long time
1421
1522
1623class Optimizer (object ):
You can’t perform that action at this time.
0 commit comments