Failure in user-supplied fitness function evaluation
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Calculating
0 commentaires
Réponse acceptée
Alan Weiss
le 5 Août 2014
Is penalty2 a function on your MATLAB path? Find out by issuing the command
which -all penalty2
Alan Weiss
MATLAB mathematical toolbox documentation
2 commentaires
Alan Weiss
le 5 Août 2014
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
le 5 Août 2014
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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!