Skip to content

Commit 91c37d9

Browse files
authored
Merge pull request AxelThevenot#1 from umair-nasir14/patch-1
Update Shubert
2 parents d4dbc7e + ed790f9 commit 91c37d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pybenchfunction/function.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,8 @@ def get_global_minimum(self, d):
23482348

23492349
def __call__(self, X):
23502350
d = X.shape[0]
2351-
res = np.prod(np.sum([np.cos((j+1)*X + j) for j in range(1, 5+1)]))
2351+
for i in range(0,d):
2352+
res = np.prod(np.sum([i * np.cos((j+1)*X[i] + j) for j in range(1, 5+1)]))
23522353
return res
23532354

23542355
class ShubertN3:

0 commit comments

Comments
 (0)