Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # define Beale's function which we want to minimize
- def objective(X):
- x = X[0]; y = X[1]
- return (1.5 - x + x*y)**2 + (2.25 - x + x*y**2)**2 + (2.625 - x + x*y**3)**2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement