File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def powell(x):
124
124
return np .sum (term1 + term2 + term3 + term4 )
125
125
126
126
127
- def quing (x ):
127
+ def qing (x ):
128
128
dim = len (x )
129
129
return np .sum (np .power (x ** 2 - np .arange (1 , dim + 1 ), 2 ))
130
130
@@ -245,7 +245,7 @@ def zakharov(x):
245
245
"perm2" : perm2 ,
246
246
"pinter" : pinter ,
247
247
"powell" : powell ,
248
- "quing " : quing ,
248
+ "qing " : qing ,
249
249
"quintic" : quintic ,
250
250
"rastrigin" : rastrigin ,
251
251
"rosenbrock" : rosenbrock ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def test_problem_factory(self):
56
56
self .assertEqual (get_problem ("perm2" ), perm2 )
57
57
self .assertEqual (get_problem ("pinter" ), pinter )
58
58
self .assertEqual (get_problem ("powell" ), powell )
59
- self .assertEqual (get_problem ("quing " ), quing )
59
+ self .assertEqual (get_problem ("qing " ), qing )
60
60
self .assertEqual (get_problem ("quintic" ), quintic )
61
61
self .assertEqual (get_problem ("rastrigin" ), rastrigin )
62
62
self .assertEqual (get_problem ("rosenbrock" ), rosenbrock )
@@ -135,7 +135,7 @@ def test_powell(self):
135
135
x = np .zeros (5 )
136
136
self .assertAlmostEqual (powell (x ), 0.0 )
137
137
138
- def test_quing (self ):
138
+ def test_qing (self ):
139
139
x = np .sqrt (np .arange (1 , 6 ))
140
140
self .assertAlmostEqual (quing (x ), 0.0 )
141
141
You can’t perform that action at this time.
0 commit comments