Lawfare Academy

Business Analytics: Optimization and Simulation · Chapter 3 of 8

Derive dual prices, complementary slackness and valid ranges

Return to the linked course unit →

DEVELOPED COURSE TEXT

Derive dual prices, complementary slackness and valid ranges

Write the dual and interpret its units

For Helix's maximization model, assign nonnegative dual variables u to labor, v to machine capacity, a to the A demand bound and b to the B bound. The dual minimizes 100 u+80 v+30 a+40 b subject to 2 u+v+a≥40 and u+2 v+b≥30. A dual variable has units of contribution per unit of its corresponding right-hand-side resource. The dual constraints ensure the imputed resource cost of each service covers its contribution.
The optimal multipliers are u=0, v=15, a=25, b=0. Their objective is 1950, matching the primal optimum. The demand-bound multiplier is not a purchase price for a physical resource; it values an additional unit of profitable A market access within the local model. Calling all multipliers capacity prices would obscure this distinction. Likewise, a zero labor multiplier does not mean labor has no payroll cost; that cost is already represented in contribution and labor is locally nonbinding.

Use complementary slackness to connect the certificates

Complementary slackness states that a positive primal slack requires the corresponding dual multiplier to be zero, and a positive primal variable requires its dual covering inequality to bind. At(30,25), labor slack 15 implies u=0 and B-bound slack 15 implies b=0. Since x and y are positive,2 u+v+a=40 and u+2 v+b=30. These equations yield v=15 and a=25. Together with primal and dual feasibility, they certify optimality.
The condition does not say every binding constraint has a positive multiplier. Degeneracy or redundancy can produce a zero-valued binding constraint. Nor does a multiplier remain valid for unlimited changes. It is a marginal value attached to a local active structure. The analyst should calculate the range over which the proposed change preserves that structure before multiplying a large expansion by a shadow price.

Derive an allowable right-hand-side interval

Hold A bound at 30 and let machine capacity beM. With A binding and machine binding, y=(M-30)/2. Labor use is 60+(M-30)/2=45+M/2. To keep labor feasible, M≤110. B demand requires(M-30)/2≤40, also M≤110. Nonnegative B requiresM≥30. Thus the same formula and multiplier v=15 apply through the interval 30≤M≤110, with possible degeneracy at the endpoints. Profit is 1200+15(M-30)=750+15 M.
Increasing machine capacity from 80 to 100 raises profit by 300 and yields(30,35). Increasing it to 120 cannot be valued as 40×15=600:after 110, labor and demand structure change, and both demand caps allow at most(30,40), profit 2400. The actual improvement from 1950 is 450. The breakpoint is economically important because extra machine-hours beyond 110 have no value under the unchanged demand and labor record.

Compare resource acquisition and model uncertainty

If ten additional machine-hours cost 120, local gross benefit is 150 and net contribution improvement 30, provided the hours are available in the same period and no other costs change. If the hours cost 180, the purchase is unattractive under the contribution objective. This is a finite procurement comparison using a verified local range, not a claim that the seller must charge the shadow value.
Demand and contribution estimates can be uncertain. A machine expansion valuable under one mix may be worthless if the A market-access assumption fails. Evaluate resource changes across coherent scenarios and distinguish expected, robust and worst-case criteria. Sensitivity analysis changes parameters around a solved deterministic model; it does not supply probabilities or validate the original coefficients. The advanced task is to connect dual mathematics to a real decision while preserving its domain, units and assumptions.

Worked records

Record 1

Optimal dual values labor 0, machine 15, A bound 25, B bound 0. Machine RHS may change while all other original coefficients/bounds remain fixed.

Develop the reasoning

For 30≤M≤110, the optimal plan is x=30, y=(M-30)/2 and value 750+15 M. AtM=100, plan(30,35), value 2250. AtM=120, demand caps limit plan to(30,40), value 2400, so the extrapolated 2550 is invalid. The original shadow 15 is not globally valid.

Progressive practice — optional

1. Foundation

Interpret the zero labor shadow value.

Compare the worked reasoning

An extra small labor increment has no contribution value because 15 hours are already slack; it does not mean labor is free.

Change the record

Labor capacity falls from 100 to 90.

Compare the changed-record reasoning

The current plan uses 85, so it remains feasible and optimal with 5 slack; objective 1950 is unchanged.

2. Application

Value ten extra machine-hours costing 120.

Compare the worked reasoning

Gross benefit 150, net 30 within the verified range.

Change the record

Capacity is already 110 before buying the extra ten.

Compare the changed-record reasoning

Under unchanged demand limits, the extra hours have zero benefit and net loss 120. The original shadow cannot be reused beyond its range.

3. Transfer

What does the A demand multiplier 25 represent?

Compare the worked reasoning

Local contribution value of one additional feasible A sale, with other primitives fixed.

Change the record

A bound rises from 30 to 40.

Compare the changed-record reasoning

Machine binding gives y=(80-x)/2; atx 40, y 20, labor 100. Profit rises 250 to 2200. Beyond 40, the original A multiplier no longer applies because labor binds.

Sources and scope