フィルターのクリア

How to find maximum of a fitness function?

1 回表示 (過去 30 日間)
Adeline War
Adeline War 2023 年 2 月 22 日
編集済み: Walter Roberson 2023 年 2 月 23 日
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 件)

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by