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

1 次查看(过去 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