Problem with kind of genetic algorithm response

1 visualizzazione (ultimi 30 giorni)
Maisa Melo
Maisa Melo il 20 Mar 2019
I am using the toolbox genetic algorithm of Matlab R2015a version and I am facing a problem with the responses that genetic algorithm is obtaining.
I don't know why all the entries of the optimal vector that ga found are equals, for example, if v is an individual in a local minimum obtained by ga so v=(v1,v2,...,vn) and v1=v2=...=vn. I think that some operator of the genetic algorithm toolbox that I am using has the property to create individuals with equals coordinates and I need to change this property, I would like to create individuals that not have all equal coordinates, I would like the algorithm to be free to create individuals without this property.
I am using the following command line and options:
gaoptions = gaoptimset('CreationFcn',@gacreationlinearfeasible,'TolCon', 1e-6, 'TolFun', 1e-6, 'MutationFcn',@mutationadaptfeasible,'PopulationSize', 50, 'Generations', 50,'InitialPopulation',U0');
U =ga(@(U0) funcaoObjetivo(QP,U0',n),nvars,A,a,[],[],[],[],[],gaoptions);

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by