Dsat type error in GA optimization
Afficher commentaires plus anciens
I'm using ga at command line to perform optimization. The syntax is as follows: [Go,fval,exitflag,output] = ga(@fuel_eco,nvars,A,b,LB,UB,option) "fuel_eco" is a function which most certainly returns a double value. Yet when I run the code, an error pops up saying: GA only accepts inputs of data type double
Where might the problem lie? Kindly help, I'm grappling with this problem for a long time now.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Problem-Based Optimization Setup dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!