Best Fitness function of GA - Maximisation problem

2 次查看(过去 30 天)
I have solved my function for maximixsation using the negative sign of the function since ga solves only for minimisation.
When I chose to find the best fitness value for the same maximisation my ga solver shows the best fitness and mean fitness value in the plot.
Here my best fitness value is smaller than the mean fitness value, which is not acceptable.
So help me to interpret the solution. Thanks.

回答(1 个)

Star Strider
Star Strider 2020-11-3
The ga function is minimising the fitness value, as it should. The values it chose for your parameters will maximise your function. That you chose to negate your function in order to select for a parameter set to maximise it does not make any difference to ga. It has no idea what you want to do, nor does it care. (My apologies for the anthropomorphism.)

类别

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

产品


版本

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by