If has rows and columns, attach a nonnegative dual variable to each of the upper-bound constraints. The dual linear program isHere is the transpose of , and all vector inequalities hold componentwise. Nonnegative dual variables preserve the direction of the original inequalities when taking weighted sums.
For feasible solutions , nonnegativity givesThe first inequality uses and ; the second uses and . This is weak duality.
For every primal feasible solution , weak duality givesThus no primal feasible solution improves on . Similarly, for every dual feasible solution ,Therefore both candidates are optimal, with the same objective function value. Equality is a linear programming optimality certificate and does not require a separate existence argument.
The complementary slackness conditions areTo see their role, decompose the duality gap asEvery summand is nonnegative for feasible solutions, so the gap is zero exactly when every displayed product vanishes. Zero gap implies optimality by weak duality. Conversely, strong duality states that primal and dual optima, when both are attained, have equal values, and hence satisfy these conditions.
There are two primal inequalities, so there are two nonnegative dual variables. The five primal variables yield five dual inequalities:Each coefficient column of the primal linear program becomes one row of this dual linear program.
The inequality , together with , impliesAlso impliesThus both inequalities are strictly slack throughout the feasible region. They are redundant: the remaining inequalities imply them, even with strict inequality. By complementary slackness, any primal optimum must therefore have ; this is the principle that strictly slack dual constraints force zero primal variables.
After removing the two redundant inequalities, the feasible region isIts lower boundary consists of three line segments or rays: for , then for , then for . The feasible region is everything on or above this boundary in the first quadrant.
The boundary extreme points areAlong its three successive pieces, the objective function has respective slopes , and as increases. Thus it decreases to the middle extreme point and increases thereafter. For fixed , moving above the boundary only increases the objective function. HenceAs an algebraic check of the graphical answer, the active inequalities givewith equality at the stated extreme point.
At , the first three dual left sides are , and , strictly above their bounds , and . Thus complementary slackness forces . Both dual variables are positive, so both primal inequalities are equalities:Solving this linear system givesAll components are nonnegative, the two original upper bounds are met exactly, and the objective function equals the dual value. The weak duality bound therefore certifies optimality. The forced zero components and unique solution of the two remaining equalities also prove that the primal optimum is unique.
Articles by others on the same topic
There are currently no matching articles.
