Genetic algorithm- error when providing constraints in a loop
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi. I am using ga for a problem with multiple constraints. I provide constraints in a for loop using the comand "vercat" and I get the following error on execution
Not enough input arguments.
Error in simple_constraint (line 13)
c=vertcat(c,(sum(x(cin)))-1);
Does GA allow this? or I will have to hardcode each constraint? Please guide.
9 comentarios
Walter Roberson
el 2 de Abr. de 2019
We can make guesses, but it is difficult to reproduce that behaviour without the actual code.
Respuestas (0)
Ver también
Categorías
Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!