Custom creation function for GA

3 visualizaciones (últimos 30 días)
Hari
Hari el 22 de Sept. de 2022
Respondida: Walter Roberson el 22 de Sept. de 2022
The calling syntax for cutom creation function is
function Population = myfun(GenomeLength, FitnessFcn, options)
How can I add an extra parameter as Input to the function?

Respuesta aceptada

Walter Roberson
Walter Roberson el 22 de Sept. de 2022
'CreationFcn', @(GenomeLength, FitnessFcn, options) myfun(GenomeLength, FitnessFcn, options, ExtraParameter)

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays 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