Apex › Storage & databases

How linear programming finds the best plan (simplex)

Maximize a linear objective (profit) under linear ≤ constraints (resource limits). The constraints carve a convex polygon of feasible plans, and a linear objective always peaks at a corner — so Dantzig’s simplex starts at one vertex and walks along edges to better corners until none improves. Verified in node: simplex’s optimum equals a brute-force enumeration of every vertex (500 LPs, 0 mismatch), the objective climbs at each step, and strong duality holds — the primal max equals the dual min to 1e-14. Step it around the polygon and watch the objective climb 0 → 12 → 27 → 36.

More in Storage & databases