Skip to content

Commit

Permalink
Update optimizer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Evolutionary-Intelligence authored Jan 26, 2025
1 parent c7baaf8 commit 01648be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pypop7/optimizers/core/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def __init__(self, problem, options):
self.max_function_evaluations = options.get('max_function_evaluations', np.inf)
# for `MAX_RUNTIME` in `MAX_RUNTIME`
self.max_runtime = options.get('max_runtime', np.inf)
# for `FITNESS_THRESHOLD` in `Terminations`
self.fitness_threshold = options.get('fitness_threshold', -np.inf)
self.n_individuals = options.get('n_individuals') # offspring population size
self.n_parents = options.get('n_parents') # parent population size
Expand Down

0 comments on commit 01648be

Please sign in to comment.