how is it possible to introduce the lead value of the inputs of GA in matlab

조회 수: 2 (최근 30일)
Dear All,
I want to solve a multi objective problem with Genetic algorithm tool box in matleb.
I have four inputs as below:
a=1:10
b=1:10
c=50:2.5:75
d=0.73:0.01:0.77
In GA toolbox I can only determin the lower and upper bond. How is it possible to introduce the lead values of each parameter, like 2.5 for c and 0.01 for d.
I would appreciate your response in advance

채택된 답변

Walter Roberson
Walter Roberson 2021년 10월 19일
I want to solve a multi objective problem with Genetic algorithm tool box in matleb.
Note that ga() can only be used for single objectives, but gamultiobj() can be used for multiple objectives.
How is it possible to introduce the lead values of each parameter, like 2.5 for c and 0.01 for d.
It is not possible.
There are few possible work-arounds:
  • specify the input position as an integer variable with lower bound 0 and upper bound 10. Then, inside the objective function, assign c = 50 + Variable * 2.5 . You could pass the initial value and step in using function parameterization.
  • Outside of the function, construct c=50:2.5:75 . Now specify the input position as an integer variable with lower bound 1 and upper bound length(c ) . Use function parameterization to pass c into the objective function. Then, inside the objective function, each place you need the value, index that passed-in c vector at the value of the input position.

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by