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 b458e80 commit d13e53c
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 @@ -58,6 +58,7 @@ def __init__(self, problem, options):

# optimizer-related basic options
self.options = options # not use `deep copy` to save memory
# for `MAX_FUNCTION_EVALUATIONS` in `Terminations`
self.max_function_evaluations = options.get('max_function_evaluations', np.inf)
self.max_runtime = options.get('max_runtime', np.inf)
self.fitness_threshold = options.get('fitness_threshold', -np.inf)
Expand Down

0 comments on commit d13e53c

Please sign in to comment.