Custom creation function for GA

1 visualizzazione (ultimi 30 giorni)
Hari
Hari il 22 Set 2022
Risposto: Walter Roberson il 22 Set 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?

Risposta accettata

Walter Roberson
Walter Roberson il 22 Set 2022
'CreationFcn', @(GenomeLength, FitnessFcn, options) myfun(GenomeLength, FitnessFcn, options, ExtraParameter)

Più risposte (0)

Categorie

Scopri di più su App Building in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by