How to find maximum of a fitness function?
2 次查看(过去 30 天)
显示 更早的评论
function f = fitnessfuncSingObj(h)
[x, fval, exitflag, output, population, scores] = ga(@fitnessfuncSingObj,18,A,b,[],[],LB,UB,[],IntCon,options)
It was suggested in other similar questions to use a negative of a function to find maximum. I tried with f = -fitnessfuncSingObj(h) and got error with GA unable to continue.
Can someone help me with this?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!