Why the given codes give errors for vector bounds but runs well for scalar bounds?
Mostrar comentarios más antiguos
I have downloaded an algorithm BBO from the Mathworks site. I run it with my fitness function "fitVectorized1.m". I oberved the following;
1- When I run it for scalar bounds, it works and gives reults
But
2- When I run it for vector bounds, it gives me errors.
What to do?
4 comentarios
KSSV
el 31 de Jul. de 2023
Show us the inputs which you have tried. The working one and not working one.
Sadiq Akbar
el 31 de Jul. de 2023
KSSV
el 31 de Jul. de 2023
u=[1 5 30 70];dim=length(u);
[BestX,fmin]=bbo3(@(b)fitVectorized1(b,u),dim,0,90,100,50)
Unrecognized function or variable 'RouletteWheelSelection'.
Error in bbo3 (line 75)
j=RouletteWheelSelection(EP);
Sadiq Akbar
el 31 de Jul. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Solver Outputs and Iterative Display en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!