Genetic Algorithm functions unrecognized
1 次查看(过去 30 天)
显示 更早的评论
I have this code for a knaspack problem and the function of selection causes me an error. I dont know why.
0 个评论
回答(1 个)
Walter Roberson
2021-12-1
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!