The Simplex Idea: Walking Vertex to Vertex
The simplex method solves a linear program by walking along the edges of the feasible region, hopping from one vertex to an adjacent vertex and always picking a neighbor with a better objective value, until no neighbor improves. This lesson develops that idea geometrically and algebraically: how adjacent vertices correspond to single-pivot BFS changes, how to choose the next vertex, and how to recognize when the current vertex is optimal.
Tutorial
Why Walk?
The simplex method is the workhorse algorithm for solving linear programs. Its central idea exploits a geometric fact: when an LP has an optimal solution, at least one optimum lies at a vertex of the feasible region.
Rather than enumerating every vertex -- a hopeless task when the feasible region has thousands of vertices -- the simplex method walks along the edges of the feasible region, hopping from one vertex to an adjacent vertex, and at each step moving to a neighbor whose objective value is better. The walk halts the instant no neighbor offers improvement.
To illustrate, consider the LP
subject to
The feasible region is a pentagon whose vertices and objective values are
Starting from simplex might walk
with objective values From the adjacent vertices are (where ) and (where ); neither beats so the walk stops. The optimum is at