Failure in user-supplied fitness function evaluation

5 次查看(过去 30 天)
Calculating

采纳的回答

Alan Weiss
Alan Weiss 2014-8-5
Is penalty2 a function on your MATLAB path? Find out by issuing the command
which -all penalty2
Alan Weiss
MATLAB mathematical toolbox documentation
  2 个评论
Alan Weiss
Alan Weiss 2014-8-5
I hope that you realize that this is the answer to your question. MATLAB is not finding your fitness function. Put it on your path, or change directories to wherever it is.
Alan Weiss
MATLAB mathematical toolbox documentation
Alan Weiss
Alan Weiss 2014-8-5
Please copy the entire MATLAB output and show us. And perhaps show us how you called ga (I mean something like x = ga(@penalty2,4,...))
Alan Weiss
MATLAB mathematical toolbox documentation

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by