Custom creation function for GA

1 次查看(过去 30 天)
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
'CreationFcn', @(GenomeLength, FitnessFcn, options) myfun(GenomeLength, FitnessFcn, options, ExtraParameter)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 App Building 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by