find the minimum the function using GA

2 views (last 30 days)
elena
elena on 3 May 2015
Edited: elena on 4 May 2015
f(x,y) = (x-1)*sin(y)
  1 Comment
Matt J
Matt J on 3 May 2015
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)

Community Treasure Hunt

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

Start Hunting!