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):
124124 return np .sum (term1 + term2 + term3 + term4 )
125125
126126
127- def quing (x ):
127+ def qing (x ):
128128 dim = len (x )
129129 return np .sum (np .power (x ** 2 - np .arange (1 , dim + 1 ), 2 ))
130130
@@ -245,7 +245,7 @@ def zakharov(x):
245245 "perm2" : perm2 ,
246246 "pinter" : pinter ,
247247 "powell" : powell ,
248- "quing " : quing ,
248+ "qing " : qing ,
249249 "quintic" : quintic ,
250250 "rastrigin" : rastrigin ,
251251 "rosenbrock" : rosenbrock ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def test_problem_factory(self):
5656 self .assertEqual (get_problem ("perm2" ), perm2 )
5757 self .assertEqual (get_problem ("pinter" ), pinter )
5858 self .assertEqual (get_problem ("powell" ), powell )
59- self .assertEqual (get_problem ("quing " ), quing )
59+ self .assertEqual (get_problem ("qing " ), qing )
6060 self .assertEqual (get_problem ("quintic" ), quintic )
6161 self .assertEqual (get_problem ("rastrigin" ), rastrigin )
6262 self .assertEqual (get_problem ("rosenbrock" ), rosenbrock )
@@ -135,7 +135,7 @@ def test_powell(self):
135135 x = np .zeros (5 )
136136 self .assertAlmostEqual (powell (x ), 0.0 )
137137
138- def test_quing (self ):
138+ def test_qing (self ):
139139 x = np .sqrt (np .arange (1 , 6 ))
140140 self .assertAlmostEqual (quing (x ), 0.0 )
141141
You can’t perform that action at this time.
0 commit comments