2525 schaffer2 ,
2626 schaffer4 ,
2727 schwefel ,
28- schwefel21 ,
29- schwefel22 ,
28+ schwefel221 ,
29+ schwefel222 ,
3030 sphere ,
3131 step ,
3232 step2 ,
@@ -64,8 +64,8 @@ def test_problem_factory(self):
6464 self .assertEqual (get_problem ("schaffer2" ), schaffer2 )
6565 self .assertEqual (get_problem ("schaffer4" ), schaffer4 )
6666 self .assertEqual (get_problem ("schwefel" ), schwefel )
67- self .assertEqual (get_problem ("schwefel21 " ), schwefel21 )
68- self .assertEqual (get_problem ("schwefel22 " ), schwefel22 )
67+ self .assertEqual (get_problem ("schwefel221 " ), schwefel221 )
68+ self .assertEqual (get_problem ("schwefel222 " ), schwefel222 )
6969 self .assertEqual (get_problem ("sphere" ), sphere )
7070 self .assertEqual (get_problem ("step" ), step )
7171 self .assertEqual (get_problem ("step2" ), step2 )
@@ -175,11 +175,11 @@ def test_schwefel(self):
175175
176176 def test_schwefel21 (self ):
177177 x = np .zeros (5 )
178- self .assertAlmostEqual (schwefel21 (x ), 0.0 )
178+ self .assertAlmostEqual (schwefel221 (x ), 0.0 )
179179
180180 def test_schwefel22 (self ):
181181 x = np .zeros (5 )
182- self .assertAlmostEqual (schwefel22 (x ), 0.0 )
182+ self .assertAlmostEqual (schwefel222 (x ), 0.0 )
183183
184184 def test_sphere (self ):
185185 x = np .zeros (5 )
@@ -190,8 +190,8 @@ def test_step(self):
190190 self .assertAlmostEqual (step (x ), 0.0 )
191191
192192 def test_step2 (self ):
193- x = np .full (5 , 0.5 )
194- self .assertAlmostEqual (step (x ), 0.0 )
193+ x = np .full (5 , - 0.5 )
194+ self .assertAlmostEqual (step2 (x ), 0.0 )
195195
196196 def test_styblinski_tang (self ):
197197 x = np .full (5 , - 2.903534018185960 )
0 commit comments