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 5
5
6
6
7
7
class 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
+ """
9
16
NO_TERMINATION = 0
10
17
MAX_FUNCTION_EVALUATIONS = 1 # maximum of function evaluations
11
18
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
14
21
15
22
16
23
class Optimizer (object ):
You can’t perform that action at this time.
0 commit comments