Skip to content

Commit

Permalink
Update pypop7/optimizers/nes/test_nes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Evolutionary-Intelligence committed Jul 4, 2024
1 parent e8df8df commit 167c214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypop7/optimizers/nes/test_nes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import numpy

from pypop7.optimizers.nes import NES


Expand All @@ -14,6 +15,5 @@ def test_initialize():
'sigma': 3.0}
nes = NES(problem, options)
nes.initialize()
print(sum(nes._u))
assert numpy.all(0.0 <= nes._u)
assert numpy.all(nes._u <= 1.0)

0 comments on commit 167c214

Please sign in to comment.