필터 지우기
필터 지우기

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 CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by