How does the crossover and mutation in Matlab multiobjective optimization work?

4 ビュー (過去 30 日間)
Rajan Bhandari
Rajan Bhandari 2022 年 5 月 4 日
回答済み: Umang Pandey 2023 年 9 月 21 日
The documentation says that if my cross-over fraction is 0.8, 80% of the offsprings other that elite childrens are formed from crossover while the remaining from mutation. But, I want to set my crossover rate to 0.95 and mutation rate to 0.01. How is that possible?

回答 (1 件)

Umang Pandey
Umang Pandey 2023 年 9 月 21 日
Hi Rajan,
Based on my understanding, it seems that you would like to set fixed values of 0.95 and 0.01 for crossover and mutation, respectively.
To achieve this, you can utilize the “optimoptions function and specify the CrossoverFraction and MutationFcn options, as demonstrated below:
options = optimoptions('ga', 'CrossoverFraction', 0.95, 'MutationFcn', {@mutationuniform, 0.01});
For further details, refer the documentation available at the following link:

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by