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 bd5e939 commit 3963e89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pypop7/optimizers/core/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ def __init__(self, problem, options):
self.seed_optimization = options.get('seed_optimization',
self.rng.integers(np.iinfo(np.int64).max))
self.rng_optimization = np.random.default_rng(self.seed_optimization)

# basic options for saving results and printing progress
# frequency of saving fitness when outputing results, to save memory space
self.saving_fitness = options.get('saving_fitness', 0)
# only for printing in console
self.verbose = options.get('verbose', 10)

# auxiliary members
Expand Down

0 comments on commit 3963e89

Please sign in to comment.