how to develop genetic algorithm for autonomous vehicle static path planning
이전 댓글 표시
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
Geoff Hayes
2014년 8월 6일
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
2014년 8월 10일
Geoff Hayes
2014년 8월 10일
편집: Geoff Hayes
2014년 8월 10일
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
2014년 8월 11일
Geoff Hayes
2014년 8월 11일
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
2014년 8월 17일
ibrahim
2014년 8월 17일
Geoff Hayes
2014년 8월 17일
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
2014년 8월 17일
Geoff Hayes
2014년 8월 18일
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
2014년 8월 18일
Geoff Hayes
2014년 8월 18일
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
2014년 8월 21일
Geoff Hayes
2014년 8월 21일
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
2014년 8월 22일
답변 (1개)
Matt J
2014년 8월 10일
0 개 추천
Instead of a genetic algorithm, maybe a known shortest path algorithm would be appropriate, e.g.,
카테고리
도움말 센터 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!