how to fix a genetic algrithm function probelem
Afficher commentaires plus anciens
Hi, Had an error when I ran this on the matlab prompt:
??? Error using ==> preProcessLinearConstr
The number of rows in A must be the same as the length of b.
Can anyone help out ? N.B : The mfile: multiplesegments exists and has been added to path.
FitnessFunction=@multiplesegments ;
numberofVariables=20;
PopInitRange=[95 3 95 3 95 3 95 3 95 3 95 3 95 3 95 3 95 3 95 3; 115 3 115 3 115 3 115 3 115 3 115 3 115 3 115 3 115 3 115 3];
[x,fval]=ga(FitnessFunction,numberofVariables,PopInitRange)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Genetic Algorithm 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!