Failure in user-supplied fitness function evaluation
1 回表示 (過去 30 日間)
古いコメントを表示
Calculating
0 件のコメント
採用された回答
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
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
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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!