Custom creation function for GA

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?

 採用された回答

Walter Roberson
Walter Roberson 2022 年 9 月 22 日

1 投票

'CreationFcn', @(GenomeLength, FitnessFcn, options) myfun(GenomeLength, FitnessFcn, options, ExtraParameter)

その他の回答 (0 件)

カテゴリ

質問済み:

2022 年 9 月 22 日

回答済み:

2022 年 9 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by