In mathematical optimization, the fundamental theorem of linear programming states, in a weak formulation, that the maxima and minima of a linear function over a convex polygonal region occur at the region's corners. Further, if an extreme value occurs at two corners, then it must also occur everywhere on the line segment between them.
Consider the optimization problem
Where P = { x ∈ R n : A x ≤ b } {\displaystyle P=\{x\in \mathbb {R} ^{n}:Ax\leq b\}} . If P {\displaystyle P} is a bounded polyhedron (and thus a polytope) and x ∗ {\displaystyle x^{\ast }} is an optimal solution to the problem, then x ∗ {\displaystyle x^{\ast }} is either an extreme point (vertex) of P {\displaystyle P} , or lies on a face F ⊂ P {\displaystyle F\subset P} of optimal solutions.
Suppose, for the sake of contradiction, that x ∗ ∈ i n t ( P ) {\displaystyle x^{\ast }\in \mathrm {int} (P)} . Then there exists some ϵ > 0 {\displaystyle \epsilon >0} such that the ball of radius ϵ {\displaystyle \epsilon } centered at x ∗ {\displaystyle x^{\ast }} is contained in P {\displaystyle P} , that is B ϵ ( x ∗ ) ⊂ P {\displaystyle B_{\epsilon }(x^{\ast })\subset P} . Therefore,
Hence x ∗ {\displaystyle x^{\ast }} is not an optimal solution, a contradiction. Therefore, x ∗ {\displaystyle x^{\ast }} must live on the boundary of P {\displaystyle P} . If x ∗ {\displaystyle x^{\ast }} is not a vertex itself, it must be the convex combination of vertices of P {\displaystyle P} , say x 1 , . . . , x t {\displaystyle x_{1},...,x_{t}} . Then x ∗ = ∑ i = 1 t λ i x i {\displaystyle x^{\ast }=\sum _{i=1}^{t}\lambda _{i}x_{i}} with λ i ≥ 0 {\displaystyle \lambda _{i}\geq 0} and ∑ i = 1 t λ i = 1 {\displaystyle \sum _{i=1}^{t}\lambda _{i}=1} . Observe that
Since x ∗ {\displaystyle x^{\ast }} is an optimal solution, all terms in the sum are nonnegative. Since the sum is equal to zero, we must have that each individual term is equal to zero. Hence, c T x ∗ = c T x i {\displaystyle c^{T}x^{\ast }=c^{T}x_{i}} for each x i {\displaystyle x_{i}} , so every x i {\displaystyle x_{i}} is also optimal, and therefore all points on the face whose vertices are x 1 , . . . , x t {\displaystyle x_{1},...,x_{t}} , are optimal solutions.