Past exam of the mathematics course of the University of Cambridge 2002 ib Paper 3 15H Solution Created 2026-09-24 Updated 2026-10-14
Introduce surplus variables , slack , and artificial variables , all nonnegative. The two-phase simplex standard-form equations arePhase I maximizes . An initial basic feasible solution has basic variables and all others zero. Its simplex dictionary isLet enter. The simplex ratio test gives from the row and from the row, so leaves. After this pivot,Choose to enter; the limiting ratios are and , so leaves. The resulting dictionary isThus , attained at with . Since for every feasible Phase I point, this proves feasibility and completes Phase I.
Delete the artificial variables and restore the original objective . The resulting Phase II dictionary isLet enter; only decreases, and it reaches zero at . Pivoting givesAn optimal simplex tableau, with each row recording its equality, isBoth reduced costs in the maximization dictionary are negative. Setting nonbasic therefore givesAs a direct optimality check, implies ; the displayed point attains both equalities.
Past exam of the mathematics course of the University of Cambridge 2004 ib Paper 3 23G Solution Created 2026-09-24 Updated 2026-10-14
Use the original PDF: the objective is , and the second constraint has coefficient on . The TeX transcription corrupts both, as well as the nonnegativity condition. Introduce surplus variables , slack variables , and artificial variables , all nonnegative. The two-phase simplex Phase One problem isThe initial basis has values , and its objective dictionary is . Enter : the ratio test makes leave at . The resulting dictionary includeswith . Enter next; leaves at . Nowand . Enter ; the ratio test makes leave at . This produces , , , with both artificial variables zero. Since always, the Phase One minimum is zero, proving feasibility and providing an original-variable basis.
Delete the artificial columns. The starting Phase Two dictionary isEnter , whose reduced gain is positive. Only decreases, and it leaves at step one. Eliminating gives the optimal dictionaryEquivalently, with row equations written as the displayed coefficients times the variables equal to the right-hand side, the optimal simplex tableau isThe objective row represents . Nonnegative nonbasic variables cannot improve the objective, so reading them as zero provesBoth nonbasic reduced costs are strictly unfavorable, so this optimal point is unique.
Past exam of the mathematics course of the University of Cambridge 2006 ib Paper 4 20C Solution Created 2026-09-24 Updated 2026-10-14
Use two-phase simplex to handle the constraint of the opposite inequality direction. Introduce nonnegative slack variables , a surplus variable , and an artificial variable . The equality constraints areFor Phase I maximize , initially with basis . Its initial simplex dictionary isChoose to enter. The simplex ratio test compares , and , so leaves. The new dictionary isSince , choose to enter. Its limiting ratios are from and from , so leaves. This givesNow , so let enter. Its limiting ratios are from and from ; the artificial variable leaves. The simplex dictionary becomesSetting all nonbasic variables to zero gives , a feasible original basis. Since , Phase I is optimal with value zero; delete .
For Phase II the original objective in this basis isAll nonbasic reduced costs are strictly negative, so no further improving simplex pivot exists. As the nonbasic variables are nonnegative, the dictionary also directly certifies , with equality only when . ThereforeThe second original constraint has slack five and the other two are tight. As an independent linear programming optimality certificate, multiply the first constraint by and the third, after reversing it, by . This gives , and subtracting proves the same upper bound for the objective.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 42 2 a Solution Created 2026-10-03 Updated 2026-10-07
Use the PDF's first constraint, ; the TeX aid substitutes a different inequality. Introduce a surplus , slacks , and one artificial variable , all nonnegative. The initial simplex dictionary isThe initial basis is , with values . In two-phase simplex, Phase I maximizes . We use the Bland pivoting rule: the smallest-index nonbasic variable with positive reduced cost enters, and among minimum-ratio ties the smallest-index basic variable leaves.
First enters. The ratios for are , so leaves in a degenerate pivot. The resulting dictionary isNext enters. It reduces and with ratios and , while increases. Thus leaves. The Phase I maximum is , with a feasible original basis; remove and obtainIn Phase II the original objective is . Bland's rule makes enter, and leaves at ratio . This givesFinally enters. The decreasing basic variables have ratios and , so leaves. The final tableau, with the basic columns suppressed, isEach row means its row variable plus the displayed nonbasic terms equals the right side. Since , no nonnegative choice of nonbasic variables improves the objective. ThusThe slacks are , .
A different entering rule is faster here. Selecting the largest eligible index in the initial Phase I objective makes enter and leave. The dictionary then has and . Entering makes leave at , directly reaching the final original basis . Hence two pivots suffice instead of Bland's four, and Phase II needs no further pivot. This comparison concerns this instance, not a general superiority of that entering rule.