selection of parameters by genetic algorithm

1 回表示 (過去 30 日間)
Mirhan
Mirhan 2021 年 2 月 15 日
回答済み: Mirhan 2021 年 3 月 2 日
Hi to all, I have been studying on a optimization problem. My aim is selecting of parameters and assiging them to some other parameters. More detailly, I have 16 material properties, and I should select 8 properties from these 16 parameters each time and assing them to the strucutre. This process will continue until obtaining the best 8 couple. I have done to assign 8 parameters to the strucuture. However, ı am stuck at selection of 8 parameters and looping this process by genetic algorithm (ga).Thank you.

採用された回答

Alan Weiss
Alan Weiss 2021 年 2 月 16 日
I think that you should use Mixed Integer ga Optimization. Create a binary variable x with 16 components. Create the linear constraints
A = [ones(1,16);-ones(1,16)];
b = [8.5;-7.5];
which mean sum(x) <= 8.5 and -sum(x) <= -7.5 or equivalently sum(x) >= 7.5. This should keep the sum of elements in x at exactly 8.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation

その他の回答 (1 件)

Mirhan
Mirhan 2021 年 3 月 2 日
Thank you for your time sir.

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by