Created
November 12, 2018 04:15
-
-
Save ahmadyan/48f6c3b3158a7120e26ed5530f51069b to your computer and use it in GitHub Desktop.
Rosenbrock function in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def rosenbrock(x): | |
return 100*(x[1] - x[0]**2)**2 + (1 - x[0])**2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment