Short answer: The simplex algorithm solves a linear program by walking from one vertex of the feasible polyhedron to a better neighbor. A basic feasible solution is a vertex. A pivot swaps one basic variable for one nonbasic variable and updates the tableau. If no neighbor improves the objective,…
Category: Optimization
How simulated annealing accepts an uphill move
Short answer: Simulated annealing searches a rough cost surface by proposing a neighbor of the current state and accepting it when the cost falls. When the cost rises by Δ, the move is accepted with probability e^{−Δ/T}. The temperature T decreases on a schedule. High T accepts uphill moves…
How gradient descent steps against the gradient
Short answer: Gradient descent minimizes a differentiable function by repeating x ← x − η∇f(x). The gradient is the direction of steepest increase, so the minus sign descends. A step size η that is too large diverges. A step size that is too small crawls. On a convex function…
