From a Business Decision to Mathematics
A furniture dealer has ₹50,000 to invest and storage space for at most pieces. A table costs ₹2,500 and yields a profit of ₹250; a chair costs ₹500 and yields ₹75. How many of each should the dealer buy to maximise profit?
Try a few strategies: all tables — tables (₹50,000 spent), profit ₹5,000. All chairs — money allows but storage caps at , profit ₹4,500. A mix of tables and chairs — profit ₹6,250. Clearly, strategies differ; the question is which is best. That question, made precise, is a linear programming problem.
The formulation
Let = number of tables, = number of chairs. Then:
subject to the constraints

The vocabulary
- Objective function: the linear function (with constants ) to be maximised or minimised. Here .
- Decision variables: the quantities and being chosen.
- Constraints: the linear inequalities (or equations) restricting the variables. The conditions are the non-negative restrictions.
- Optimisation problem: any problem seeking to maximise or minimise a linear function subject to such constraints; a Linear Programming Problem (LPP) is exactly this, with everything linear.
Key Point: "linear" means every relation in the problem is linear (no , , anywhere); "programming" is an older word for planning — choosing the best programme of action, nothing to do with computers.
The Formulation Recipe
Every word problem becomes an LPP through the same four moves:
- Name the decision variables. "Let = number of (first item), = number of (second item)." State their units. This sentence carries a mark of its own on board papers.
- Write the objective function. Identify what is being maximised (profit, revenue) or minimised (cost) and express it as using per-unit values.
- Translate each resource or requirement into one inequality. A limited resource (money, hours, space) gives a constraint; a minimum requirement (nutrients, orders to fulfil) gives a constraint. Keep coefficients as per-unit consumptions.
- Add the non-negative restrictions — quantities cannot be negative, and forgetting to write this loses a mark even when everything else is right.
Simplify constraints by dividing out common factors ( becomes ) — smaller numbers mean fewer graphing errors later.
Reading a formulation back
Given a stated LPP, be able to identify each piece instantly: the objective function is the line starting "Maximise/Minimise"; everything after "subject to" is a constraint; the direction of each inequality tells you whether it models a ceiling (: budget, capacity, hours) or a floor (: minimum demand, nutritional requirement).
Key Point (this chapter's scope): with two decision variables everything can be drawn in the plane — which is why the chapter solves LPPs graphically. Problems with more variables exist (and matter in industry), but they need algebraic methods beyond this course.
Solved Examples
Example 1: The dealer, formally
Formulate the furniture dealer's problem (₹50,000 to invest, at most pieces stored; tables ₹2,500 each with profit ₹250, chairs ₹500 each with profit ₹75) as an LPP.
Solution:
- Variables: let = number of tables, = number of chairs.
- Objective: maximise profit .
- Constraints: investment , i.e. ; storage .
- Non-negativity: .
Answer: Maximise subject to , , .
Example 2: A diet problem, formulated
Two foods and cost ₹4 and ₹6 per unit. Each unit of contains units of vitamin A and units of minerals; each unit of contains units of vitamin A and units of minerals. The diet requires at least units of vitamin A and at least units of minerals. Formulate the least-cost diet as an LPP.
Solution:
- Variables: units of , units of .
- Objective: minimise cost .
- Requirement constraints (floors, so ): vitamin A: ; minerals: .
- Non-negativity: .
Answer: Minimise subject to , , — minimum requirements point the inequalities up.
Example 3: A manufacturing problem, formulated
A factory makes products A and B. Each unit of A needs hour of cutting and hours of assembly; each unit of B needs hours of cutting and hour of assembly. At most cutting hours and assembly hours are available daily. Profits are ₹5 per unit of A and ₹3 per unit of B. Formulate for maximum profit.
Solution:
- Variables: units of A, units of B per day.
- Objective: maximise .
- Resource constraints (ceilings, so ): cutting: ; assembly: .
- Non-negativity: .
Answer: Maximise subject to , , .
Example 4: Reading a formulation
For the LPP "Minimise subject to , , ", identify the objective function, the decision variables, each constraint's type, and what the problem is asking.
Solution:
- Objective function: , to be minimised — a cost-type problem.
- Decision variables: and .
- Constraints: is a floor (a minimum requirement); is a ceiling (a limited resource); are the non-negative restrictions.
Answer: the problem asks for the cheapest meeting a requirement floor while staying under a resource ceiling — mixed-direction constraints are perfectly normal.
Example 5: Spotting a non-LPP
Why is "maximise subject to , " NOT a linear programming problem?
Solution:
- Test every relation for linearity: the constraint is linear; the non-negative restrictions are linear.
- The objective fails: is a product of variables — not of the form .
Answer: the objective function is nonlinear, so this is an optimisation problem but not an LPP — every relation, objective included, must be linear.