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

2 ビュー (過去 30 日間)
R@SH
R@SH 2021 年 10 月 19 日
コメント済み: R@SH 2021 年 10 月 19 日
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 Center および File ExchangeGenetic Algorithm についてさらに検索

タグ

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by