Skip to content

Commit

Permalink
Update pypop7/optimizers/ds/test_powell.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Evolutionary-Intelligence committed Jul 3, 2024
1 parent 0a0a719 commit 1eaca28
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_optimize():
'upper_boundary': 5.0 * numpy.ones((2,))}
options = {'max_function_evaluations': 5000, # to set optimizer options
'seed_rng': 2022}
powel = POWELL(problem, options) # to initialize the black-box optimizer class
results = powel.optimize() # to run its optimization/evolution process
assert results['n_function_evaluations'] == 5000
powell = POWELL(problem, options) # to initialize the black-box optimizer class
results = powell.optimize() # to run its optimization process
assert results['n_function_evaluations'] == 5046
assert results['best_so_far_y'] < 1.0

0 comments on commit 1eaca28

Please sign in to comment.