Best penalty lower than best individual in genetic algorithm

9 views (last 30 days)
Jorge Mallo
Jorge Mallo on 21 Mar 2016
Commented: Alan Weiss on 29 Aug 2016
I am doing an optimization with the generic algorithm, using some integer parameters. The best penalty I get for many generations is lower (~ -5 million) than the fitness function of the best individual (~ -4 million).
Can you help me interpret this? I thought that the penalty value was the fitness function for feasible individuals and the fitness function of the population plus some penalty for non feasible individuals, so my understanding was that the fitness function of the best individual would be lower than any best penalty of the entire optimization.

Accepted Answer

Alan Weiss
Alan Weiss on 21 Mar 2016
I believe that your interpretation of the meaning of the penalty function is correct, so I, too, am puzzled by what you report.
If you can reproduce your problem, I suggest that you contact technical support, and possibly file a bug report.
Alan Weiss
MATLAB mathematical toolbox documentation

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!