Quote: Original post by Christer Ericson
Your comment assumes the A* evaluation function has been set up to return a shortest path.
I made no such assumption and my comment assumes only what the OP posted; that he wanted the closest path if there was no path returned. The choice of cost function is his and will obviously dictate the particular nodes investigated by the algorithm. The principle I discussed was non-specific to the cost function. I did not say that the best node in the open list when the search is halted will be the closest node to the goal. I said 'treat this as the new destination'. Take some time to think about this statement please and what it means in terms of cost function contours and 'closeness' to the goal.
Quote: A* is more general than that, and it is perfectly plausible to create an evaluation function that includes a "path smoothly curving" (or whatever) criterion in the evaluation function. Easier said than done to come up with, yes, but perfectly doable nevertheless.
Actually it's fairly trivial to come up with such path constraints: use a spline tree approach coupled with A*. Computationaly more expensive, but it gets the job done.