Genetic Algorithm functions unrecognized

1 vue (au cours des 30 derniers jours)
Ana Gabriela Fuentes
Ana Gabriela Fuentes le 1 Déc 2021
I have this code for a knaspack problem and the function of selection causes me an error. I dont know why.

Réponses (1)

Walter Roberson
Walter Roberson le 1 Déc 2021
After line 201
nueva2=nueva1;
there should be an end statement before the next line
function [nueva]= selection(poblacioninicial,fitvalue)
and there should be one fewer end statements at the bottom of the file.

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by