GA multi-objective optmization

조회 수: 10 (최근 30일)
mehrdad vojdani
mehrdad vojdani 2020년 5월 4일
답변: colordepth 2025년 1월 20일
I'm impelementing GA using matlab optimization toolbox.
I have 6 Variables which one them only accepts integer values. I read the optimization options but I couldn't find a solution for my problem. I would appreciate your help.
FitnessFunction = @objFuns;
numberOfVariables = 6;
options = optimoptions('gamultiobj');
LB = [2 4 55 38 1 1.8];
UB = [25 10 70 49 6 4];
A = []; % No linear inequality constraints
b = []; % No linear inequality constraints
Aeq = []; % No linear equality constraints
beq = []; % No linear equality constraints
[x,Fval,exitFlag,Output] = gamultiobj(FitnessFunction,numberOfVariables,...
A,b,Aeq,beq,...
LB,UB,[],options);

답변 (1개)

colordepth
colordepth 2025년 1월 20일
Unfortunately I cannot find a way to accomplish this in MATLAB R2017a. However, starting from MATLAB R2021a, to handle integer constraints in the Genetic Algorithm in MATLAB, you can use the "IntCon" option to choose which variables are integers. For more details, refer to the documentation: https://www.mathworks.com/help/gads/gamultiobj.html.

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by