Borrar filtros
Borrar filtros

Custom Output Function for Genetic Algorithm

5 visualizaciones (últimos 30 días)
Mohammed Bakr
Mohammed Bakr el 4 de Feb. de 2021
Respondida: Walter Roberson el 4 de Feb. de 2021
hi
I want a way to change the outside signal of every iteration in the GA

Respuestas (1)

Walter Roberson
Walter Roberson el 4 de Feb. de 2021
The mechanism for this is that for ga(), output functions are permitted to change the state and return the new state.
However the documentation warns that the algorithm can be unstable if you use the output function to change the state. The recommendation is to instead use the MutationFcn (or CrossoverFcn) to return new population members. The rules do not block you from "mutating" all population elements.

Categorías

Más información sobre Genetic Algorithm 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!

Translated by