Skip to content

Commit

Permalink
pypop7/optimizers/ga/test_gl25.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Evolutionary-Intelligence committed Jul 4, 2024
1 parent 0756391 commit 7a7432f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypop7/optimizers/ga/test_gl25.py
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}
gl25 = GL25(problem, options) # to initialize the optimizer class
results = gl25.optimize() # to run the optimization process
gl25 = GL25(problem, options) # to initialize the black-box optimizer class
results = gl25.optimize() # to run the optimization/evolution process
assert results['n_function_evaluations'] == 5000
assert results['best_so_far_y'] < 1.0

0 comments on commit 7a7432f

Please sign in to comment.