Sign inSign upSign in
Menu

Linear Programming: Formulation and Graphical Solution for Skills Level

ICAN Skills, Performance Management. Syllabus area C: Decision making techniques.

10 min read · Updated 8 November 2026

Download this topic

In this part

A furniture workshop in Kano makes tables and chairs. Carpentry hours are limited, so are finishing hours, a customer wants at least a few chairs, and the market will not take more than so many tables. With one scarce resource the answer is a ranking, as the last topic showed. With several, the best plan can be found only by solving all the limits at once.

Linear programming does that. It turns the business problem into a statement in algebra, draws it as a picture, and reads the best answer from the corner of the picture.

This topic explains how to define the variables, write the objective function and the constraints, draw the constraints on a graph, find the feasible region, and find the optimum by the corner point method, by the slope of the objective function, and by simultaneous equations. The simplex method is not examined at this level. It builds on the limiting factors topic. The next topic covers slack and shadow prices.

In 30 seconds

Linear programming (LP) finds the best outcome, such as maximum contribution or minimum cost, subject to several limits, when everything can be expressed as linear relationships.

Steps: (1) define the variables (x and y); (2) write the objective function (for example C = 50x + 40y); (3) write the constraints, with “≤” for a maximum limit and “≥” for a minimum, and the non-negativity constraints x, y ≥ 0; (4) plot each constraint as a line by finding where it crosses the axes; (5) shade the feasible region; (6) find the optimum, which lies at a corner of the feasible region, using the corner point method, the slope of the objective function or simultaneous equations.

Full marks come from correct inequalities, the corner values and a conclusion in business terms.

Formulating the problem

Linear programming is a mathematical method of finding the best outcome (maximum profit or contribution, or lowest cost) subject to a number of limiting factors, or constraints. A problem involves maximising or minimising a linear function (the objective function) subject to linear constraints. The overall approach is:

  1. Define the variables. One variable for each quantity to be decided: let x be the number of units of product 1 and y the number of units of product 2.
  2. Formulate the objective function. For maximum contribution, C = contribution per unit of x × x + contribution per unit of y × y.
  3. Formulate the constraints.
  4. Plot the constraints on a graph.
  5. Identify the feasible region.
  6. Find the optimum values of x and y.

Writing constraints

A separate constraint is needed for every item that limits the objective function. Each is a formula with a limit.

  • A maximum limit is written as “less than or equal to” (≤). Maximum demand for product X of 5,000 units: x ≤ 5,000.
  • A minimum limit is written as “greater than or equal to” (≥). A contract needs at least 2,000 units: x ≥ 2,000.
  • Constraints with two variables. Each unit of x takes 2 hours and each unit of y takes 3 hours, with 18,000 hours available: 2x + 3y ≤ 18,000.
  • Non-negativity. You cannot make a negative quantity: x ≥ 0 and y ≥ 0. These do not need to be plotted separately because the graph is drawn in the positive area.

Plotting a constraint

A constraint with two variables is a straight line on a graph with x on one axis and y on the other. Two points are enough. Set x to zero and find y; set y to zero and find x. For 3x + 2y = 600: if x = 0, y = 300; if y = 0, x = 200. Join (0, 300) and (200, 0).

Points on the origin side of the line (or on the line) satisfy a “≤” constraint; points beyond it need more of the resource than is available and are not feasible. A “≥” constraint is satisfied by points on the line and beyond it.

Feasible region and the optimum cornerA graph with x across and y up. A labour line from 200 on the x axis to 300 on the y axis, a machine line crossing it at x 140, y 90, a minimum of 40 for x and a maximum of 130 for y. The shaded feasible region has corners at 40 and 0, 200 and 0, 140 and 90, 60 and 130, and 40 and 130. The best corner is 140 and 90.yx20040300Optimum (140, 90)labour: 3x + 2y = 600machinefeasible regiony = 130

Solving: the three methods

The feasible region is the area on the graph where all constraints are met together. The best point lies on its outer edge, at a corner. There are three ways to find it.

  • Corner point method. Find the x and y at every corner, using simultaneous equations where two constraint lines meet. Put each pair into the objective function. The corner with the highest value (for a maximum) is the optimum. It is the most reliable method.
  • Slope of the objective function. Rearrange the objective function and each constraint into y = a + bx form and compare slopes. The slope of the objective function lies between the slopes of the two constraints that meet at the optimum corner. Alternatively, plot the objective line for any convenient value of C, then slide a ruler parallel to it away from the origin until it is about to leave the feasible region. The last corner touched is the optimum.
  • Simultaneous equations. Having found which two constraints meet at the optimum, solve them: multiply one or both equations so a coefficient is the same, subtract, find one variable, and substitute back for the other.

For a minimisation, such as minimum cost, the best corner is the one with the lowest value, and the objective line is slid towards the origin.

Practical points

  • Check every corner against all constraints: a corner found from two lines may be outside the region because a third constraint cuts it off.
  • Some corners have fractional values. If whole units are needed, round down and check feasibility, and say so.
  • State the answer in business terms: how many of each product, the resulting contribution, and which resources are fully used.
  • Linear programming assumes that contribution per unit and the resource use per unit are constant, and that products can be made in any quantity. These simplifications should be noted when advising.

Layouts

  1. Variables: let x be …, let y be ….
  2. Objective: maximise C = ax + by.
  3. Constraints: resource per unit of x × x + resource per unit of y × y ≤ available; x ≤ maximum demand; x ≥ minimum; x, y ≥ 0.
  4. Intercepts: for px + qy = r, x = r ÷ p when y = 0; y = r ÷ q when x = 0.
  5. Corner table: corner, x, y, value of the objective function; choose the highest.

Money is in naira and answers are exact.

Worked examples

Example 1: formulate and solve. A company makes A and B each week. Contribution is ₦50 for A and ₦40 for B. Each A needs 3 labour hours and 2 machine hours; each B needs 2 labour hours and 4 machine hours. There are 600 labour hours and 640 machine hours. At least 40 units of A must be made, and no more than 130 of B can be sold. Required: the plan that maximises contribution.

  1. Variables. x = units of A; y = units of B.
  2. Objective. Maximise C = 50x + 40y.
  3. Constraints. Labour 3x + 2y ≤ 600. Machine 2x + 4y ≤ 640. x ≥ 40. y ≤ 130. x, y ≥ 0.
  4. Intercepts. Labour: (200, 0) and (0, 300). Machine: (320, 0) and (0, 160).
  5. Corners. (40, 0); (200, 0) where labour meets y = 0; (140, 90) where labour meets machine; (60, 130) where machine meets y = 130; (40, 130).
  6. The meeting of labour and machine.
    3x + 2y = 600 (1)
    2x + 4y = 640 (2).
    Multiply (1) by 2: 6x + 4y = 1,200.
    Subtract (2): 4x = 560, so x = 140.
    Then 2y = 600 − 420, so y = 90.
    Check in (2): 280 + 360 = 640.
  7. Values of C.
    (40, 0) = 2,000
    (200, 0) = 10,000
    (140, 90) = 7,000 + 3,600 = 10,600
    (60, 130) = 3,000 + 5,200 = 8,200
    (40, 130) = 2,000 + 5,200 = 7,200.
  8. Slope check.
    Objective slope = −50 ÷ 40 = −1.25.
    Labour slope −1.5; machine slope −0.5.
    The objective slope lies between them, so the optimum is where those two lines meet.
  9. Answer. Make 140 A and 90 B, contribution ₦10,600.
    Both labour (420 + 180 = 600) and machine (280 + 360 = 640) are fully used.

Example 2: writing constraints. A company makes tables (T) and chairs (C). A table needs 5 carpentry hours and a chair 2; 400 hours are available. At least 20 chairs must be made for a contract. No more than 60 tables can be sold. Total output must be at least 50 items. Required: the constraints and the intercepts of the carpentry line.

  1. Carpentry. 5T + 2C ≤ 400.
  2. Contract. C ≥ 20.
  3. Demand. T ≤ 60.
  4. Minimum total. T + C ≥ 50.
  5. Non-negativity. T, C ≥ 0.
  6. Carpentry intercepts.
    T = 400 ÷ 5 = 80 when C = 0
    C = 400 ÷ 2 = 200 when T = 0.

Expect variants: a minimisation problem, a constraint with a different form such as a ratio, a feasible region with fractional corners, and a request for the objective function line.

Common mistakes

  • Wrong inequality direction. Maximum limits use ≤; minimum limits use ≥.
  • Mixing up the coefficients. Each constraint uses resource per unit of x and of y.
  • Not checking all corners. The optimum is the highest value among all feasible corners.
  • Using a corner outside the region. Check it against every constraint.
  • Slope errors. Compare the slopes with their signs.
  • Leaving out the business conclusion. State the plan and contribution.

Quick revision

  • Define variables; objective function; constraints (≤ maximum, ≥ minimum); x, y ≥ 0.
  • Plot each line by setting x = 0 and y = 0. Feasible region satisfies all.
  • Optimum at a corner: corner points, slope, or simultaneous equations.
  • Simplex is not examined at this level.

How the marks are earned

  • Formulate: a mark for the variables, the objective and each constraint.
  • Solve: the intercepts, the corners and the values of the objective.
  • Conclude: the plan, the contribution and which resources are fully used.

Practice questions

These are original questions, written in the style of the Skills examination. Work each one before you open the answer.

Recall check: multiple choice

Question 1. The function to be maximised or minimised in linear programming is the:

  1. Constraint
  2. Objective function
  3. Slack
  4. Intercept
Show the answer

B. For example total contribution.

Question 2. A maximum limit on a resource is written as:

  1. Greater than
  2. Equal to
  3. Greater than or equal to
  4. Less than or equal to
Show the answer

D. Use ≥ for a minimum.

Question 3. The constraints x, y ≥ 0 mean:

  1. A negative quantity cannot be made
  2. Both must equal zero
  3. Both are maximum limits
  4. Both must be above 100
Show the answer

A. They do not need to be plotted.

Question 4. The feasible region is:

  1. The area outside all lines
  2. The area with the highest cost
  3. The area that satisfies all the constraints
  4. The area on one axis
Show the answer

C. The optimum is on its edge.

Question 5. The optimum solution lies at:

  1. The origin
  2. A corner of the feasible region
  3. The middle of a line
  4. Outside the region
Show the answer

B. Test every corner.

Question 6. The constraint 3x + 2y = 600 crosses the axes at:

  1. x = 200 when y = 0, and y = 300 when x = 0
  2. x = 300 and y = 200
  3. x = 600 and y = 600
  4. x = 0 and y = 0
Show the answer

A. 600 ÷ 3 = 200 and 600 ÷ 2 = 300.

Question 7. The slope of the objective function 50x + 40y, written y = C/40 − 1.25x, is:

  1. 50
  2. 40
  3. +1.25
  4. −1.25
Show the answer

D. It lies between the slopes of the two constraints meeting at the optimum.

Question 8. Simultaneous equations are used to find:

  1. The selling price
  2. The fixed cost
  3. The coordinates of a corner where two constraints meet
  4. The tax
Show the answer

C. Solve the two lines together.

Question 9. A requirement to supply at least 2,000 units of X is written:

  1. x ≤ 2,000
  2. x = 0
  3. x ≥ 2,000
  4. x < 0
Show the answer

C. A minimum limit uses ≥.

Question 10. The simplex method is:

  1. Not examined at this level
  2. The only method allowed
  3. A costing method
  4. A pricing method
Show the answer

A. The graphical and simultaneous equation methods are examined.

Section B style: written questions

Question 11 (10 marks). (a) State the six steps in solving a two-variable linear programming problem. (6 marks) (b) Explain why the optimum lies at a corner of the feasible region. (4 marks)

Question 12 (15 marks). A company makes X and Y with contributions of ₦30 and ₦20. Each X needs 4 labour hours and each Y needs 2; 800 hours are available. Each X needs 1 machine hour and each Y 2; 500 hours are available. At least 20 X and 50 Y must be made.

(a) Formulate the problem. (5 marks) (b) Calculate the intercepts of the two resource constraints. (2 marks) (c) Calculate the corners of the feasible region. (4 marks) (d) Calculate the contribution at each corner and state the optimum. (4 marks)

Question 13 (20 marks). A company makes P and Q with contributions of ₦25 and ₦35. Each P needs 2 kg of material and 4 labour hours; each Q needs 3 kg and 2 hours. There are 1,200 kg of material and 1,400 labour hours. At least 100 P must be made.

(a) Formulate the problem. (6 marks) (b) Calculate the intercepts of the resource lines. (4 marks) (c) Solve by the corner point method. (8 marks) (d) State TWO assumptions of linear programming. (2 marks)

Model answers

Show the model answer to Question 11

(a) Define the variables (1); formulate the objective function (1); formulate the constraints (1); plot the constraints on a graph (1); identify the feasible region (1); find the values of x and y that give the optimum (1).

(b) The objective function is linear, so its value changes at a constant rate as x and y change (1). Moving the objective line away from the origin increases its value (1). The furthest point it can reach within the feasible region is a corner, because the region is bounded by straight lines (2).

Show the model answer to Question 12

(a)

  1. Let x.
    units of X, y = units of Y (1).
  2. Maximise C = 30x + 20y (1).
  3. Labour 4x + 2y ≤ 800 (1).
  4. Machine x + 2y ≤ 500 (1). x ≥ 20, y ≥ 50 (1).

(b) Labour: (200, 0) and (0, 400). Machine: (500, 0) and (0, 250) (2).

(c)

  1. Labour and machine meet.
    subtract x + 2y = 500 from 4x + 2y = 800 to give 3x = 300, so x = 100, y = 200 (2).
  2. Other corners.
    (20, 50); (175, 50) where labour meets y = 50; (20, 240) where machine meets x = 20 (2).

(d)

  1. (20, 50) = 1,600
  2. (175, 50) = 5,250 + 1,000 = 6,250
  3. (100, 200) = 3,000 + 4,000 = 7,000
  4. (20, 240) = 600 + 4,800 = 5,400.
  5. Optimum: 100 X and 200 Y, contribution ₦7,000 (4).
Show the model answer to Question 13

(a)

  1. x = P, y = Q (1).
  2. Maximise C = 25x + 35y (1).
  3. Material 2x + 3y ≤ 1,200 (1).
  4. Labour 4x + 2y ≤ 1,400 (2). x ≥ 100, y ≥ 0 (1).

(b) Material: x = 600 when y = 0; y = 400 when x = 0. Labour: x = 350 when y = 0; y = 700 when x = 0 (4).

(c)

  1. Material and labour meet.
    multiply the material equation by 2 to get 4x + 6y = 2,400
  2. subtract 4x + 2y = 1,400 to give 4y = 1,000, so y = 250, and x = (1,200 − 750) ÷ 2 = 225 (2).
  3. Corners.
    (100, 0); (350, 0); (225, 250); (100, 333.33) where material meets x = 100 (2).
  4. Values.
    (100, 0) = 2,500
  5. (350, 0) = 8,750
  6. (225, 250) = 5,625 + 8,750 = 14,375
  7. (100, 333.33) = 2,500 + 11,666.67 = 14,166.67 (3).
  8. Optimum: 225 P and 250 Q, contribution ₦14,375 (1).

(d) Any two: contribution and resource use per unit are constant; products can be made in any quantity, including fractions; the constraints and objective are linear (1 each).

Pathfinder on Linear programming: formulation and graphical solution

These are the ICAN Pathfinder questions that test this topic. ICAN owns the questions and the suggested solutions, so we point you to them and do not copy them. Open your Pathfinder, attempt each question under exam conditions, then check your answer against the notes above.

May Diet, 2025: Question 3 (20 marks)

LP formulation, simultaneous equations, shadow prices as overtime limits, single-product choice.

Revise first: Layouts

May Diet, 2024: Question 1 (30 marks)

Machine utilisation and bottleneck; marginal analysis; throughput accounting mix; TA inventory valuation; scarce resources in budgets and LP.

Revise first: Layouts

November Diet, 2023: Question 1 (30 marks)

LP objective and constraints, optimum plan, dual prices by one-unit change, slack, ways to overcome capacity limits.

Revise first: Layouts

May Diet, 2021: Question 1 (40 marks)

LP concept and uses; cost-plus prices; optimal output; shadow prices (e: NPV/IRR outside course).

Revise first: Layouts

Source: ICAN Pathfinder, Performance Management. Diets covered: March/July Diet, 2020 to May Diet, 2026. All 13 diets in the Pathfinder are mapped.

Spotted a mistake? Tell us and we will check it.

Where this fits

See every past question on Performance Management and the topic each one tests in the Pathfinder question finder.

This course builds on Management Accounting. After it, move on to Strategic Financial Management.

All Performance Management topics

You are reading topic 24 of 77.

  1. Information systems in organisations: role, costs and benefits01
  2. Internet, intranet, wireless technology and networks in business02
  3. Information needs at strategic, tactical and operational levels03
  4. TPS, MIS, EIS, ERP and CRM systems compared04
  5. Social and ethical issues in strategy and the management accountant’s data role05
  6. Big data principles and the big data pyramid06
  7. Big data, data mining and analytics: uses, benefits, challenges and risks07
  8. Activity based costing: cost pools, cost drivers and calculations08
  9. Activity based costing compared with traditional absorption costing09
  10. Target costing: principles and calculating the target cost10
  11. Managing the target cost gap and target costing in services11
  12. Life cycle costing: product life cycle stages and costs12
  13. Life cycle cost and profit calculations, and the benefits of life cycle costing13
  14. Throughput accounting: theory of constraints and the throughput accounting ratio14
  15. Environmental management accounting and sustainability in business15
  16. Environmental costs: methods, challenges and the management accountant’s role16
  17. Relevant costs and revenues, and opportunity cost17
  18. Relevant costs for specific decisions: materials, labour, equipment and overheads18
  19. Break-even analysis and margin of safety for Skills level decisions19
  20. Contribution to sales ratio, target profit and target revenue20
  21. Break-even charts and profit-volume charts21
  22. Multi-product CVP analysis and its limitations22
  23. Limiting factors: allocating a single scarce resource23
  24. Linear programming: formulation and graphical solution24 here
  25. Linear programming: slack and shadow prices25
  26. Price elasticity of demand and the factors that influence price26
  27. Demand and cost functions: profit-maximising price and output27
  28. Cost-based pricing: cost-plus and relevant-cost pricing28
  29. Market-based pricing: skimming, penetration and other strategies29
  30. Make-or-buy and outsourcing decisions30
  31. One-off contracts, shutdown and further processing of joint products31
  32. Reducing uncertainty: research, simulation and sensitivity analysis32
  33. Expected values and decision rules: maximax, maximin and minimax regret33
  34. Decision trees for multi-stage decisions34
  35. Value of perfect and imperfect information35
  36. Budgetary systems and types of budget: choosing the right one36
  37. Preparing fixed and flexed budgets37
  38. Rolling, activity-based, functional and master budgets38
  39. The beyond budgeting model: benefits and problems39
  40. Participation, negotiation and ethics in budgeting40
  41. High-low method and cost estimation for budgets41
  42. Correlation, regression and time series for budgeting and forecasting42
  43. Learning curve: learning rate and learning effect43
  44. Learning curve in budgeting: steady state and limitations44
  45. Standard costing: uses, how standards are set and types of standard45
  46. Basic variances: material, labour and idle time46
  47. Material mix and yield variances47
  48. Labour mix and yield variances48
  49. Sales mix and quantity variances49
  50. Planning and operational variances: revised budget, sales, market size and market share50
  51. Planning and operational variances for materials and labour51
  52. Overhead variances and reconciling budgeted and actual profit at Skills level52
  53. Behavioural effects of variances: motivation, JIT and TQM53
  54. Profitability ratios and financial performance measures54
  55. Liquidity, solvency and efficiency ratios55
  56. Non-financial performance indicators56
  57. Short-termism and financial manipulation of results57
  58. Sustainability and ESG performance measures58
  59. The balanced scorecard59
  60. The Fitzgerald and Moon building block model60
  61. Performance measurement in not-for-profit organisations61
  62. Value for money as a public sector objective62
  63. Divisional performance: return on investment and residual income63
  64. Economic value added (EVA)64
  65. Transfer pricing methods and the optimal transfer price65
  66. Transfer pricing: problems, tax and repatriation of funds66
  67. Value chain analysis for performance management67
  68. Complex business structures: alliances, joint ventures and supply chains68
  69. The performance pyramid69
  70. Value-based management70
  71. Corporate failure and life cycle issues71
  72. The Z-score and other quantitative failure models72
  73. The Argenti model and qualitative failure prediction73
  74. Preventing corporate failure and performance improvement strategies74
  75. Current developments in management accounting75
  76. Benchmarking and target setting in the public sector76
  77. The changing role of the management accountant and contemporary issues77
See the whole course

Get the complete Performance Management notes

Download as PDF or Word

  • Every topic as PDF and Word, ready to print
  • Edit it in Word or print the PDF. No retyping.
Get this course

Reading stays free. Access lasts 12 months. Pay by card, bank transfer, USSD or QR through Paystack. Your name and email appear on every page of your files. Read our Refund Policy.

PracticeNext topic