When the genetic algorithm has integer constraint issues, how to customize the variogram to eliminate the ignored warning

조회 수: 1 (최근 30일)
Use the genetic algorithm to solve the single target minimum and the optimal solution of three variables, where two variables are real numbers and one variable is an integer, in order to improve the genetic algorithm, the taboo search algorithm is used to make the custom variogram of the mutation operator, but the runtime appears, warning: Problem has integer constraints. The following options will be ignored by GA:MutationFcn.Therefore, many different functions still cannot solve this warning.
How to solve this mixed integer problem? If I don't define integer intcon in options, do I need to redefine selection, crossing, variogram? Or do you only need to constrain the variable integer in the variogram

채택된 답변

Alan Weiss
Alan Weiss 2023년 4월 10일
I am not sure what you mean by "variogram." But I think that I know the reason for your difficulty. As the Release Notes state, until R2021b the genetic algorithm did not allow custom mutation or crossover functions in integer-constrained problems. If you want to use custom mutation or crossover functions, upgrade to R2021b or later.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 8
Jungeon Kim
Jungeon Kim 2023년 5월 2일
I have a difficulty too for the same problem. My optimization problem has 'integer design variable' and 'linear/nonlinear inequality constraint'. I have to modify the crossover and mutation function referring to the default two operation functions, i.e., crossoverlaplace and mutationpower.
Then, can I open the function files 'crossoverlaplace' and 'mutationpower' exist after R2021b?
Alan Weiss
Alan Weiss 2023년 5월 2일
As the Release Notes for R2021b state, you can (but do not have to) give alternate crossover and mutation functions for the genetic algorithm. Because you have integer variables, I suggest that you use the mutationgaussian mutation function.
Alan Weiss
MATLAB mathematical toolbox documentation

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by