how to develop genetic algorithm for autonomous vehicle static path planning
Afficher commentaires plus anciens
my project is based on designing a genetic algorithm for autonomous vehicle static path planning. e.g a robot that can navigate around a work space (grid map) and avoid static obstacles as it moves from a start position to its destination.
15 commentaires
Geoff Hayes
le 6 Août 2014
Ibrahim - the first thing you will need is the fitness function that you are trying to optimize (minimize). Presumably, you want the robot to find the shortest path from the start to the destination, subject to the obstacles that must be avoided. You will need to define all input variables into the fitness function that will then output a (scalar) fitness/cost value for those inputs.
ibrahim
le 10 Août 2014
Geoff Hayes
le 10 Août 2014
Modifié(e) : Geoff Hayes
le 10 Août 2014
Ibrahim - to get a good idea about genetic algorithms, I suggest that you read the book Genetic Algorithms in Search, Optimization, and Machine Learning by David E. Goldberg.
At the moment, your question is much too broad to answer. If you are basing your project on a GA, then you need to research how this optimization technique works in order to understand how it is applicable to your vehicle static path planning problem.
ibrahim
le 11 Août 2014
Geoff Hayes
le 11 Août 2014
Ibrahim - what have you tried so far? Have you coded up the fitness function, which should be the first step for this optimization problem? If there is a problem with the code that you have written, then please post it so that someone can take a look and offer some guidance.
And...will you be using the GA code from the Global Optimization Toolbox, or are you designing it all from scratch?
ibrahim
le 17 Août 2014
ibrahim
le 17 Août 2014
Geoff Hayes
le 17 Août 2014
Will you have some sort of 10x10 cost matrix associated with this grid? i.e. if the vehicle is at row 2 cell 3 (this should correspond to 12 in the workspace) do you have a variety of costs to go from this cell to any of the neighbouring cells? What defines a neighbour - any cell adjacent to the current cell (north,south,east,west) and those at the corners (northeast,northwest,southeast,southwest)?
Are you expecting the genetic algorithm to determine a path from the start cell to the end cell that minimizes the overall cost?
ibrahim
le 17 Août 2014
Geoff Hayes
le 18 Août 2014
Yes, the costs to consider are shortest time, unnecessary turning and shortest distance.
So you have a function that does all this for you, right? i.e. given a path from the start point to the end point, the cost for that path will be computed. Because this will be the function that you are trying to minimize, and so will be the fitness function for the GA.
The tricky part will be to define the variables that the GA will use to combine from one parent with another to produce children, and hopefully, a better solution. How have you decided to do that?
What code have you written so far?
ibrahim
le 18 Août 2014
Geoff Hayes
le 18 Août 2014
Look at the paper A Mobile Robot Path Planning Using Genetic Algorithm in Static Environment and start with that. Decide on how you are going to represent your gaming area, the method of movement for the autonomous vehicle, and your cost function (which will end up being the fitness function for the GA to minimize).
ibrahim
le 21 Août 2014
Geoff Hayes
le 21 Août 2014
Ibrahim - please don't ask another question here only to duplicate it at http://www.mathworks.com/matlabcentral/answers/151784-please-somebody-tell-me-how-i-can-initialise-a-10-10-grid-environment-with-obstacles-located-while.
It seems that you have also duplicated that one with http://www.mathworks.com/matlabcentral/answers/151055-please-somebody-help-me-with-how-to-plot-a-10-10-grid-map-and-how-to-number-the-grid-cells.
Given the responses to these two (other) questions, try writing the code yourself. If you have a problem with the code (doesn't do what you expect, error message, etc.) then by all means post a question and we will all try to help you out. But you have to make an attempt...
ibrahim
le 22 Août 2014
Réponses (1)
Catégories
En savoir plus sur Genetic Algorithm dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!