How to find maximum of a fitness function?

3 visualizaciones (últimos 30 días)
Adeline War
Adeline War el 22 de Feb. de 2023
Editada: Walter Roberson el 23 de Feb. de 2023
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?

Respuestas (0)

Categorías

Más información sobre Genetic Algorithm en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by