How to map various properties using genetic algorithm?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Star Strider
il 21 Apr 2015
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 Commenti
Star Strider
il 21 Apr 2015
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
il 23 Apr 2015
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 Commenti
Vedere anche
Categorie
Scopri di più su Genetic Algorithm in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!