フィルターのクリア

Best Fitness function of GA - Maximisation problem

2 ビュー (過去 30 日間)
MARIA JACKSON A
MARIA JACKSON A 2020 年 11 月 3 日
回答済み: Star Strider 2020 年 11 月 3 日
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 Center および File ExchangeGenetic Algorithm についてさらに検索

製品


リリース

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by