find the minimum the function using GA

f(x,y) = (x-1)*sin(y)

1 Comment

error occur
We have no way to be sure what error you saw. You should paste the error messages into your Question.

Sign in to comment.

 Accepted Answer

Matt J
Matt J on 3 May 2015
Edited: Matt J on 3 May 2015
One problem that I see: your 2 unknowns must be passed to obj as a single argument
obj=@(x) (x(1)-1).*sin(x(2))

More Answers (0)

Asked:

on 3 May 2015

Edited:

on 4 May 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!