Can someone explain, like I'm five, the simplex algorithm for solving linear programming problems?
Wikipedia is no help whatsoever.
If possible, the tableaux part of the algorithm in detail would be particularly helpful.
Posted May 21, 2013, 12:46 PM UTC · edited
04
LY5: You and your friend are playing hide and seek in an area paved with squares. You are each standing on different squares some distance apart, and you are blindfolded. Your goal is to stand as close to your friend as possible.
Another friend is giving you some help. You are allowed to move a certain distance forwards, backwards, left or right, and the second friend will then tell you which one of those four moves takes you closer to your first friend. You start off by taking big steps that move you several squares in one direction. As you get closer to your friend, big steps end up taking you further away from her, so you start taking smaller steps, and then smaller ones still. Eventually, you are as close to your friend as you like.
LY15: The downhill simplex method works a bit like this. You need some function (a cost function) of several parameters that measures how far away you are from the solution. You need to make sure that the function is such that making small moves in some direction or other will take you closer to the solution (this is the "downhill" bit - imagine standing on the side of a hill and wanting to get into the valley: some directions take you towards the valley, some take you uphill and some leave you just about as far from the valley as you were before).
You then modify the values of each of the parameters in turn by a small amount and recompute the cost function each time. You keep whichever change gives you the smallest value of the cost function. Repeat and continue. Reduce the step size as need be (when the current step size doesn't get you any closer). Continue until you are close enough to your solution.
Why do this? Because some equations of the form f(x_i) = 0 for several x_i are very hard or impossible to solve analytically. This numerical method will, provided you get your cost function right, give you a solution that's as close to the actual one as you need to be.
EDIT: clarifications
This is pretty good. What about the tableaux part of the algorithm?
No problem. That's not something I'm familiar with - I'll leave that to someone else to explain.