Any body get this Error before when using GA

5 visualizaciones (últimos 30 días)
mansour
mansour el 29 de Ag. de 2018
Respondida: Alan Weiss el 29 de Ag. de 2018
I'm solving my optimization problem using GA. It works well but suddenly I start getting this error "Error using gaminlpcreateexitmsg Exitflag from galincon does not have a corresponding exit message."
Any body can help???

Respuestas (1)

Alan Weiss
Alan Weiss el 29 de Ag. de 2018
Sounds like maybe a bug. What MATLAB version are you using? Can you give reproduction code?
From the error message, it seems that you are solving an integer-constrained problem that also has linear constraints. As a workaround, perhaps throw in a nonlinear constraint that doesn't do anything, such as
function [c,ceq] = mynoop(x)
ceq = [];
c = -1;
Add @mynoop as the nonlinear constraint in ga. I don't know if this will really solve your problem, but in the absence of other information it is all I can think of right now.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation

Categorías

Más información sobre Linear Least Squares en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by