Selection function in genetic algorithm

9 views (last 30 days)
Parikshit  Sharma
Parikshit Sharma on 9 May 2018
Edited: Stephan on 11 May 2018
When i specify integer constraint in genetic algorithm a warning which says:
Warning: Problem has integer constraints. The following options will be ignored by GA:
SelectionFcn
so my question is, what selection operator genetic algorithm uses when we specify constraint to be integer constraint?

Answers (1)

Stephan
Stephan on 10 May 2018
Edited: Stephan on 10 May 2018
Hi,
the SelectionFcn ga uses, will be the binary tournament selection function. All other settings are being overrided when you include integer constraints.
See here for further information:
Best regards
Stephan
  2 Comments
Parikshit  Sharma
Parikshit Sharma on 11 May 2018
Thank you for your reply Stephan can you please tell me what is the default tournament size for selection function?
Stephan
Stephan on 11 May 2018
Edited: Stephan on 11 May 2018
Hi,
standard is a tournament size of 4. But in your case the Tournament Size is 2, due to the use of the penalty function used by ga when working with integer constraints:
.
.
which is described below:
.
.
For further Information see link in my answer above and here:
.
Best regards
Stephan

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!