How to map various properties using genetic algorithm?
1 回表示 (過去 30 日間)
古いコメントを表示
Guys, I have a list of various steel section sizes and their corresponding properties (such as area,moment of inertia,radius etc) in an excel file. I am currently working on Genetic Algorithm. My GA is supposed to give me a section out of these section sizes . I want to input the section size as design variable. So when GA picks any section size it should also pick its corresponding properties.These properties will be used in defining constraints. As I do not know which section size it is going to pick, how do I input the file into GA and how to map the corresponding properties? Basically how should my design variable be inputted? Any suggestions and help is highly appreciated.
3 件のコメント
回答 (2 件)
Star Strider
2015 年 4 月 21 日
I’m still not certain that I understand ‘section size’.
The genetic algorithm (‘GA’) is an optimisation routine, similar in use to least-squares curve-fitting. It is likely not appropriate for your problem.
A technique that would be appropriate is a k-th nearest neighbour (‘knn’) classifier. Those are easy to write, and reasonably efficient in MATLAB. You could also use the pdist2 function. The idea is that you would enter whatever criteria you wanted, and the knn (or pdist2) routine would then find the closest match, based on whatever distance metric you selected. (The Euclidean distance is the most frequently used.)
I would likely use one of those rather than a GA if I wanted to find the closest members of a set to the criteria I selected. Once you found the indices of the closest matches, you could then easily find the other parameters.
----------
Interesting avatar image! Skyrim?
3 件のコメント
Star Strider
2015 年 4 月 21 日
Dovakin —
In order to apply GA to your problem, you have to have a cost function of some sort to minimise. If you absolutely have to use GA, then use pdist2 in your cost function to minimise the distance between the parameters you select and the parameters in your database. That’s how I would do it.
You could return the item number that represented the least distant item in your data if you told your objective function to do that.
I still believe that using a GA is a really awkward way to solve this problem!
Alan Weiss
2015 年 4 月 23 日
If you are solving a mixed-integer optimization problem using GA, then you can follow the example on choosing among Discrete Non-Integer Variable Constraints.
Alan Weiss
MATLAB mathematical toolbox documentation
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!