optimixation by genetic algorithm using MATLAB

2 次查看(过去 30 天)
I have typed this codes by I did not get any answer the error is shown in the attached screenshot

采纳的回答

Stephan
Stephan 2019-11-25
编辑:Stephan 2019-11-25
Get rid of the square brackets - Matlab will interpret this as one input argument of a vectorized function. Therefore it throws the error.
result = myfitness(21,30,0.2)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by