selection of parameters by genetic algorithm
1 view (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
Alan Weiss
on 16 Feb 2021
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
0 Comments
More Answers (1)
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!