Free Mathematics Class 12 ICSE notes · practise this chapter with an AI quiz

← All study notes

How a Bakery Turns a Profit Question Into a Few Inequalities

Learn the language of linear programming — decision variables, constraints, objective function and optimisation — weigh its advantages and limitations, and translate real-world word problems into linear programming formulations.

What problems does linear programming solve?

A bakery with limited flour, sugar and oven time wants to know how many cakes and biscuits to make for the greatest profit. Problems like this — getting the best result from limited resources — are everywhere, and linear programming turns them into precise mathematics.

This lesson covers the language of linear programming, its advantages and limitations, and formulating word problems.

What do constraints, the objective function and optimisation mean in linear programming?

**A linear programming problem seeks the maximum or minimum value — the optimisation — of a linear objective function such as , subject to linear inequalities called constraints, together with the non-negativity restrictions and .

Terminology:

-
Decision variables — the unknown quantities, such as x cakes and y tins of biscuits
-
Objective function** — the linear expression to be maximised or minimised, such as profit
- Constraints — linear inequalities from limited resources, such as
- Non-negativity restrictions and , since quantities cannot be negative
- Optimisation — finding the values of the variables that give the best value of Z

Worked example. Each cake uses 2 kg of flour and each tin of biscuits 1 kg, with 40 kg available, so the flour constraint is . Making 15 cakes and 10 tins uses kg, exactly the limit, and earns rupees.

An everyday example. A shopkeeper deciding how many sacks of rice and wheat to stock in a storeroom of fixed size is solving a linear programming problem.

The substance. Every expression must be linear — terms such as or turn it into a different and harder kind of problem.

What are the advantages, limitations and application areas of linear programming?

Linear programming finds the best use of limited resources with a clear, checkable method, but it assumes that relationships are linear, quantities can be divided and data are known exactly, and it is used in manufacturing, transport, diet planning and agriculture.

Advantages:

- Finds the best allocation of scarce resources
- Makes decisions systematic and easy to explain
- Shows which constraints actually limit the result

Limitations:

- Real relationships are not always linear — bulk discounts break linearity
- Solutions may be fractional, such as 12.5 tables, when only whole numbers make sense
- It handles a single objective, while real decisions often balance several
- It assumes that costs, profits and resources are known with certainty

Application areas:

- Manufacturing — the product mix for greatest profit
- Transport — the cheapest way to deliver goods
- Diet planning — the least-cost meals that meet nutritional needs
- Agriculture — dividing land between crops

Worked example. A diet must provide at least 8 units of vitamin A. If food P gives 2 units per packet and food Q gives 1 unit, the constraint is ; 3 packets of P and 2 of Q give units, just meeting the requirement.

An everyday example. A school canteen planning the cheapest weekly menu that still meets nutrition guidelines faces exactly this kind of diet problem.

The substance. A linear model is only as good as its assumptions — if profit per item falls as more are sold, a linear objective function misleads.

How do you translate a word problem into a linear programming formulation?

To formulate a linear programming problem, identify the decision variables, write the objective function to maximise or minimise, turn each limited resource or requirement into a linear inequality, and add the non-negativity restrictions.

Steps:

- Define the variables, with units
- Write Z for the profit or cost
- Write one constraint for each resource or requirement
- Add and

Worked example. A carpenter makes chairs and tables. A chair needs 2 hours of carpentry and 1 hour of polishing and earns ₹300; a table needs 3 hours of carpentry and 2 hours of polishing and earns ₹500. There are 60 carpentry hours and 36 polishing hours a week, and at least 5 tables must be made.

- Variables: x chairs and y tables per week
- Maximise
- Carpentry:
- Polishing:
- Orders:
- and

Checking a plan. Making 12 chairs and 12 tables uses carpentry hours and polishing hours, meets the order constraint, and earns rupees.

An everyday example. A farmer dividing a fixed area of land between wheat and mustard, with limited water and labour, writes exactly this kind of formulation before deciding.

The substance. **Read 'at least' as and 'at most' as ** — reversing a single inequality changes the whole set of possible plans.
Exam tip

What earns full marks on formulating linear programming problems?

Define every variable in words, with its unit, before writing any inequality, and label each constraint with the resource it represents.

- Objective function: , to maximise or minimise
- One inequality for each limited resource or requirement
- 'At most' means ; 'at least' means
- Always add and

The trap. Leaving out the non-negativity restrictions. Without them the formulation allows negative production and loses marks.
Did you know

How do airlines use linear programming to plan flights and crews?

An airline must decide which aircraft flies each route and which crew members staff each flight, while respecting rest rules, aircraft range and airport time slots.

These decisions are written as linear programmes with an enormous number of variables and constraints, and computers solve them to keep costs as low as possible. The same approach schedules trains, plans refinery output and routes delivery vans.

The small two-variable problems of this chapter use exactly the same ideas as those vast industrial models.
Exam relevance

Is linear programming tested in JEE Main?

Linear Programming is a Class 12 board chapter, but it is not part of the JEE Main mathematics syllabus, so it is not tested there directly.

Why it still helps for JEE. Its core skills — writing linear inequalities, sketching lines and regions on the coordinate plane and reading off intersection points — are the same skills used in Straight Lines and inequality questions, which are recurring JEE Main topics.

Board-exam emphasis. In board papers this chapter asks for a full formulation, so clear variable definitions and labelled constraints earn much of the credit.

The trap that costs marks. **Writing 'at least' as **, which describes the wrong region in board and JEE-style inequality problems alike.
Key takeaways

What must you be able to do from this lesson?

- Terminology: decision variables, a linear objective function, linear constraints and non-negativity restrictions
- Advantages and limitations: the best use of scarce resources, but only for linear, certain and divisible situations
- Formulation: define the variables, write Z, turn each resource into an inequality, and add

A tailor has 30 m of cloth; a shirt needs 2 m and a kurta 3 m. Can you write the cloth constraint?

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Formulating Linear Programming ProblemsCreate a free account
← Back to all articles