Original Post
I am currently working on an A* implementation using quad trees http://gamedev.net/community/forums/topic.asp?topic_id=220725 and need some help with optimizing the path after I have used the A* algorithm. Basically what I have is a list of x,y constraints and I want to minimize the distance. Timkin suggested that I look into Linear Programming / Linear Constraint Satisfaction. I looked them up on google and there was a lot of information. Basically I got to the point where I could represent my problem in a set of linear equations but I don''t know where to go from there.
D= sqrt(pow((x2-x1),2)+pow((y2-y1),2))...sqrt(pow((x(n)-x(n-1)),2)+pow((y(n)-y(n-1)),2))
and then a list of the vertices in which one point is fixed and the other varies between two numbers
eg:
x1 = 4
5 <= y1 <= 12
...
But what do I do now? Is this a case in which I would use Simplex? I took a look at that but it didn''t seem to fit the bill. Maybe I just didn''t understand it.
-Greg