ERROR : Constraint function must return real value
Mostrar comentarios más antiguos
I'm using genetic algorithm as my optimization solver but I keep getting this error and I don't know why.
??? Error using ==> constrValidate at 30 Constraint function must return real value.
any suggestion.
Respuestas (1)
Walter Roberson
el 25 de Dic. de 2015
0 votos
Your constraint function is returning a complex value (or possibly a NaN). Remember that the constraint function may be executed with values that are out of range, with it being the responsibility of the constraint function to say whether they are in range.
1 comentario
Hamid
el 25 de Dic. de 2015
Categorías
Más información sobre Genetic Algorithm 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!