find the minimum the function using GA

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

1 个评论

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

请先登录,再进行评论。

 采纳的回答

Matt J
Matt J 2015-5-3
编辑:Matt J 2015-5-3
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))

更多回答(0 个)

类别

Community Treasure Hunt

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

Start Hunting!

Translated by