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