Assignment 1 β LPP Formulation & Graphical Method
Six problems: three formulations with tricky wording (strict inequalities, percentages, ratios), a diet problem, the Anderson training-programme problem, and Tom's salsa β each solved to the final number with its graph.
- Decision variables β ask "what can the manager actually choose?" and define each with units: Let Xβ = number of β¦
- Objective β profit/revenue βΉ Max; cost/time βΉ Min. Coefficients are the per-unit values.
- Constraints β one per resource or requirement, each labelled. Translate the wording: at least βΉ β₯, at most / available / capacity βΉ β€, exactly βΉ =.
- Non-negativity β Xβ, Xβ β₯ 0, written every time.
- Graphical solution (when asked) β draw each line from its two intercepts, shade the side that satisfies it, list every corner point of the common region, evaluate Z at each in a table, pick the best.
Full method with worked examples: Unit 1 Β· Formulation Β· Graphical method.
- Percentage constraints: "at least 40% of the total must be textiles" becomes Xβ β₯ 0.4(Xβ + Xβ), then move everything to the left: β0.4Xβ + 0.6Xβ β₯ 0. Never leave a variable on the right-hand side.
- "Lower than twice" β Xβ < 2Xβ β becomes Xβ β 2Xβ β€ 0. Strict inequalities (<, >) are written as β€, β₯ because an LP cannot hold a strict inequality; say so in one line.
- Ounces versus pounds: convert the resource to the unit of the per-jar recipe before writing the constraint (1 lb = 16 oz).
- Min problem with β₯ constraints: the feasible region is open away from the origin, and the optimum is the corner closest to it β the origin itself is never feasible.
Q1 β Two drugs, a dosage window and a ratio limit
Drug D1 gives 8 units of pain relief and 3 of anti-inflammatory benefit and costs βΉ10; D2 gives 5 and 7 and costs βΉ14. Daily needs: at least 40 units of pain relief and 30 of anti-inflammatory. Total dosage must be above 6 and below 12 units, and the dosage of D1 must be lower than twice that of D2. Formulate the LPP.
Assignment 1 p. 1
- Step 1 β Decision variables Let Xβ = dosage (units) of drug D1 per day Let Xβ = dosage (units) of drug D2 per day
- Step 2 β Objective: cost is given, so minimise Min Z = 10Xβ + 14Xβ
- Step 3 β Constraints
8Xβ + 5Xβ β₯ 40 β pain relief, at least 40
3Xβ + 7Xβ β₯ 30 β anti-inflammatory, at least 30
Xβ + Xβ β₯ 6 β total dosage above 6
Xβ + Xβ β€ 12 β total dosage below 12
Xβ β 2Xβ β€ 0 β D1 lower than twice D2 (Xβ < 2Xβ)
"Above 6" and "below 12" are strict in the question; an LP can only hold β₯ and β€, so write them that way and add one line saying so.
- Step 4 β Non-negativity Xβ, Xβ β₯ 0
- Going further β the optimum, if you are asked to solve
Best corner: 8Xβ + 5Xβ = 40 and 3Xβ + 7Xβ = 30 together βΉ Xβ = 130/41 β 3.17, Xβ = 120/41 β 2.93 Minimum daily cost β βΉ72.68 β and Xβ + Xβ β 6.10 > 6, Xβ < 2Xβ, so the strict conditions hold tooCorner (Xβ, Xβ) Z (0, 8) 112 (0, 12) 168 (3.17, 2.93) 72.68 β min (4.62, 2.31) 78.46 (8, 4) 136
Q2 β Shipping electronics and textiles
Shipping costs βΉ1200 per ton of electronics and βΉ800 per ton of textiles. At least 20 tons of electronics and 25 tons of textiles must be supplied; total capacity is 70 tons; at least 40% of the total tonnage must be textiles; textiles must not exceed 45 tons. Formulate the LPP.
Assignment 1 p. 1
- Step 1 β Decision variables Let Xβ = tons of electronics shipped Let Xβ = tons of textiles shipped
- Step 2 β Objective Min Z = 1200Xβ + 800Xβ (total shipping cost, βΉ)
- Step 3 β Constraints Xβ β₯ 20 β electronics, at least 20 tons Xβ β₯ 25 β textiles, at least 25 tons Xβ + Xβ β€ 70 β transport capacity Xβ β₯ 0.4(Xβ + Xβ) βΉ β0.4Xβ + 0.6Xβ β₯ 0 β at least 40% textiles Xβ β€ 45 β fragile-goods limit
- Step 4 β Non-negativity Xβ, Xβ β₯ 0
- Going further β what the optimum says
Corner (Xβ, Xβ) Z (20, 25) 44000 β min (20, 45) 60000 (25, 45) 66000 (37.5, 25) 65000 (42, 28) 72800 Minimum cost βΉ44,000 at (20, 25): with cost minimised and only β₯ requirements pushing up, the company ships exactly the minimum of each. The 40% rule is satisfied automatically (25/45 = 56%). A question that wanted a richer answer would maximise shipped value instead β the same constraints then give (42, 28).
Q3 β Chicken feed β the classic diet problem
Food A has 12, 3 and 2 units of nutrients N1, N2, N3; food B has 3, 12 and 1. Minimum requirements are 36, 36 and 10. A costs βΉ20 and B βΉ40 per unit. How much of each should be bought at the lowest cost?
Assignment 1 p. 1
- Step 1 β Formulate Let Xβ = units of product A, Xβ = units of product B Min Z = 20Xβ + 40Xβ 12Xβ + 3Xβ β₯ 36 β N1 3Xβ + 12Xβ β₯ 36 β N2 2Xβ + Xβ β₯ 10 β N3 Xβ, Xβ β₯ 0
- Step 2 β Intercepts for plotting
Line Xβ-intercept Xβ-intercept 12Xβ + 3Xβ = 36 (3, 0) (0, 12) 3Xβ + 12Xβ = 36 (12, 0) (0, 3) 2Xβ + Xβ = 10 (5, 0) (0, 10) - Step 3 β Graph: all three are β₯, so shade away from the origin
Feasible region (shaded) is open to the upper right; the optimum C is the corner nearest the origin
- Step 4 β Corner points
B: 12Xβ + 3Xβ = 36 and 2Xβ + Xβ = 10 βΉ subtract 3 Γ (second) from first: 6Xβ = 6 βΉ (1, 8)
C: 2Xβ + Xβ = 10 and 3Xβ + 12Xβ = 36 βΉ Xβ = 10 β 2Xβ βΉ 3Xβ + 120 β 24Xβ = 36 βΉ (4, 2)
Corner (Xβ, Xβ) Z A (0, 12) 480 B (1, 8) 340 C (4, 2) 160 β min D (12, 0) 240 - Step 5 β Answer Buy 4 units of A and 2 units of B β minimum cost βΉ160
Q4 β Training programmes β formulate and solve graphically
A three-day programme on teaming and a two-day programme on problem solving. At least 8 teaming and at least 10 problem-solving programmes, and at least 25 in total. The consultant has 84 days. Teaming costs $10,000 and problem solving $8,000 per programme. Formulate and solve graphically.
Assignment 1 p. 1
- Step 1 β Formulate Let Xβ = number of teaming programmes, Xβ = number of problem-solving programmes Min Z = 10,000Xβ + 8,000Xβ Xβ β₯ 8 β teaming requirement Xβ β₯ 10 β problem-solving requirement Xβ + Xβ β₯ 25 β total programmes 3Xβ + 2Xβ β€ 84 β consultant days (3 per teaming, 2 per problem solving) Xβ, Xβ β₯ 0
- Step 2 β Graph
The feasible region is the four-sided area A-B-D-C; A is the cheapest corner
- Step 3 β Extreme points (solve each pair of lines)
A: Xβ = 8 and Xβ + Xβ = 25 βΉ (8, 17)
B: Xβ = 8 and 3Xβ + 2Xβ = 84 βΉ 2Xβ = 60 βΉ (8, 30)
C: Xβ = 10 and Xβ + Xβ = 25 βΉ (15, 10)
D: Xβ = 10 and 3Xβ + 2Xβ = 84 βΉ 3Xβ = 64 βΉ (21.33, 10)
Corner (Xβ, Xβ) Z A (8, 17) $216,000 β min B (8, 30) $320,000 C (15, 10) $230,000 D (21.33, 10) $293,333 - Step 4 β Answer
Offer 8 teaming and 17 problem-solving programmes β minimum cost $216,000
Check the days: 3(8) + 2(17) = 58 β€ 84 β β the day limit is not binding; the minimum-teaming and total-programme requirements are.
Q5 β The same problem, parts (a)β(d) β Consolidated Electronics
The textbook version of Q4 with identical data: (a) formulate, (b) graph the feasible region, (c) find the coordinates of each extreme point, (d) solve for the minimum-cost solution.
Assignment 1 p. 2 β from Anderson & Sweeney, Ch. 2
- (a) Formulation
Min Z = 10,000Xβ + 8,000Xβ
Xβ β₯ 8, Xβ β₯ 10, Xβ + Xβ β₯ 25, 3Xβ + 2Xβ β€ 84, Xβ, Xβ β₯ 0
Exactly as in Q4.
- (b) Feasible region
The graph in Q4 above: bounded by Xβ = 8 on the left, Xβ = 10 at the bottom, Xβ + Xβ = 25 on the lower left and 3Xβ + 2Xβ = 84 on the upper right.
- (c) Extreme points A (8, 17) Β· B (8, 30) Β· C (15, 10) Β· D (21.33, 10)
- (d) Minimum-cost solution Xβ = 8, Xβ = 17, total cost $216,000
Q6 β Tom's salsa β derive the profit, then solve
Western Foods Salsa = 50% whole tomatoes, 30% sauce, 20% paste; Mexico City Salsa = 70%, 10%, 20%. Each jar weighs 10 oz. Available: 280 lb whole tomatoes, 130 lb sauce, 100 lb paste at $0.96, $0.64, $0.56 per lb. Spices $0.10, jar $0.02, labelling $0.03 per jar. Revenue $1.64 (Western) and $1.93 (Mexico City) per jar. (a) Formulate to maximise profit contribution. (b) Find the optimal solution.
Assignment 1 p. 2 β Anderson & Sweeney, Ch. 2
- Step 1 β Ingredients per jar, in ounces
Per 10-oz jar Whole tomatoes Sauce Paste Western Foods (Xβ) 5 oz 3 oz 2 oz Mexico City (Xβ) 7 oz 1 oz 2 oz Available (lb Γ 16) 280 Γ 16 = 4480 oz 130 Γ 16 = 2080 oz 100 Γ 16 = 1600 oz - Step 2 β Profit contribution per jar Western: 5/16(0.96) + 3/16(0.64) + 2/16(0.56) = 0.30 + 0.12 + 0.07 = $0.49 ingredients + 0.10 + 0.02 + 0.03 = $0.64 cost βΉ profit = 1.64 β 0.64 = $1.00 Mexico: 7/16(0.96) + 1/16(0.64) + 2/16(0.56) = 0.42 + 0.04 + 0.07 = $0.53 + 0.15 = $0.68 cost βΉ profit = 1.93 β 0.68 = $1.25
- Step 3 β The model Max Z = 1.00Xβ + 1.25Xβ 5Xβ + 7Xβ β€ 4480 β whole tomatoes (oz) 3Xβ + Xβ β€ 2080 β tomato sauce (oz) 2Xβ + 2Xβ β€ 1600 β tomato paste (oz) Xβ, Xβ β₯ 0
- Step 4 β Graph and corner points
All constraints are β€, so the region includes the origin; B is optimal
Corner (Xβ, Xβ) Z O (0, 0) $0 A (0, 640) $800 B (560, 240) $860 β max C (640, 160) $840 D (693.33, 0) $693.33 - Step 5 β Answer
560 jars of Western Foods Salsa and 240 jars of Mexico City Salsa β profit $860
B is where the tomato and paste constraints cross: 5Xβ + 7Xβ = 4480 and Xβ + Xβ = 800 βΉ 2Xβ = 480 βΉ Xβ = 240, Xβ = 560. Sauce used: 3(560) + 240 = 1920 of 2080 oz β 160 oz spare.