Skip to content

Commit

Permalink
Merge pull request #7 from nathanrooy/dev
Browse files Browse the repository at this point in the history
fixed easom function
  • Loading branch information
nathanrooy authored Jan 19, 2021
2 parents 25f1f5d + 494f0ea commit bc9784e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion landscapes/single_objective.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def easom(xy):
bounds: -100 <= x, y <= 100
'''
x, y = xy[0], xy[1]
return -cos(x)*cos(y)*exp(-((x-pi)**2 + (y-pi)**2))
return -cos(x)*cos(y)*exp(-((x-pi)**2 - (y-pi)**2))


def eggholder(xy):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='landscapes',
version='0.0.11',
version='0.0.12',
author='Nathan A. Rooy',
author_email='[email protected]',
url='https://github.com/nathanrooy/landscapes',
Expand Down

0 comments on commit bc9784e

Please sign in to comment.