Linear programming problem formulation
A shopkeeper has a fixed budget, a factory has limited machine hours, a dietician needs a minimum daily intake of vitamins — each of these is really the same mathematical question wearing a different costume. Linear programming problem (LPP) formulation is the skill of reading a word problem about limited resources and translating it, sentence by sentence, into a precise mathematical model: an objective function to be maximised or minimised, sitting on top of a set of linear constraints. This is the opening idea of the Linear Programming chapter in CBSE Class 12 Mathematics, and it is entirely a translation exercise — no graphing yet. The CBSE syllabus keeps this deliberately narrow: two decision variables and at most three non-trivial constraints, so that the resulting model can be solved graphically in the next topic. Get the formulation right and the rest of the chapter is almost mechanical; get it wrong and every later step inherits the error.
Formulating an LPP means naming the unknown quantities as decision variables, writing the goal to be optimised as a linear objective function , and turning every resource limit or requirement into a linear inequality of the form or , usually alongside the non-negativity conditions .
The core idea
Every LPP formulation has exactly three ingredients, and the entire skill is extracting them from prose in the right order.
1. Decision variables. These are the quantities whose values we are free to choose — almost always written and in a two-variable CBSE problem. They must be defined in a full sentence, e.g. "let = number of tables and = number of chairs stocked," because every constraint and the objective function will be written in terms of them.
2. Objective function. This is the linear expression in and that the problem wants maximised (profit, output) or minimised (cost, time, distance). It is written
where: is the quantity being optimised, and are the per-unit contributions of and to it (e.g. profit per table, profit per chair).
3. Constraints. These are the linear inequalities that come from every limited resource or minimum requirement stated in the problem, of the general form
where: are the per-unit consumption or contribution of and toward that resource, and is the total amount available (for ) or required (for ). Non-negativity restrictions are added almost automatically whenever represent physical counts, since a factory cannot make chairs. The figure below is the map every formulation follows, from raw sentence to finished model.
The goal is to show, with a single worked scenario, exactly how each sentence of a word problem maps onto one piece of the mathematical model — decision variables from the question being asked, the objective function from the quantity to be optimised, and one inequality per resource sentence, so that the finished model is ready to hand to the graphical method without any further translation.
Step 1. Read the question being asked, not the numbers, first. A dealer sells only tables and chairs; he wants to know how many of each to stock. That single phrase fixes the decision variables: let = number of tables and = number of chairs to be stocked. Naming them in a full sentence, with units, is non-negotiable — an unlabelled earns no credit even if every inequality afterward is correct.
Step 2. Find the sentence describing what is to be optimised, and convert its per-unit figures directly into coefficients. The dealer earns profits of ₹250 per table and ₹75 per chair, and wants to maximise total profit, so , to be maximised.
Step 3. Convert every remaining resource sentence into one inequality each, matching the direction word to the correct inequality sign. The dealer has ₹50,000 to invest, and a table costs ₹2,500 while a chair costs ₹500, so the investment used is , and it "cannot exceed" ₹50,000, giving , which simplifies (dividing by 500) to . He also has storage for "at most" 60 pieces, giving directly.
Step 4. Add non-negativity and assemble. Since count physical pieces of furniture, . The complete model is then written as one labelled block: maximise subject to , , — exactly two decision variables and two non-trivial constraints, within the CBSE limit of three.
Worked example
A dealer sells only tables and chairs. He has ₹50,000 to invest and storage for at most 60 pieces. A table costs ₹2,500 and a chair costs ₹500, giving profits of ₹250 and ₹75 respectively. He wants to know how many of each to stock to maximise profit, assuming he sells everything he buys. Formulate this as an LPP.
Step 1 — Decision variables. Let = number of tables and = number of chairs to be stocked.
Step 2 — Objective function. Profit from tables is and from chairs is , so the total profit to be maximised is
Step 3 — Constraints. The investment constraint (total cost cannot exceed ₹50,000) gives , which simplifies to . The storage constraint (at most 60 pieces) gives . Since are counts of furniture, .
Step 4 — Assemble the model. The finished LPP is
This model — with exactly two constraints besides non-negativity — is now ready to be solved graphically in the next topic.
Competitive stretch
The same reading skill flips direction for a minimisation problem. A diet must contain at least 80 units of vitamin A and 100 units of minerals, using foods (₹4/unit, 3 units vitamin A, 4 units minerals) and (₹6/unit, 5 units vitamin A, 2 units minerals). With = units of , the cost to minimise is , and "at least" turns both requirements into inequalities: (vitamin A) and , i.e. (minerals), with . Notice the sign flip from the tables-and-chairs example: resource limits give , but requirement minimums give — the same word-reading discipline, applied to opposite language.
Common traps
- Flipping the inequality direction. "At least," "not less than," "minimum" mean ; "at most," "not more than," "cannot exceed" mean . This single reading error invalidates the whole model even when every coefficient is correct.
- Forgetting non-negativity constraints. Since almost always represent physical quantities, must be stated explicitly unless the problem says otherwise.
- Leaving decision variables undefined. Writing " = tables" without the full sentence ("let = number of tables stocked") is marked as incomplete, since the objective function and constraints are meaningless without it.
- Writing extra or redundant constraints. The CBSE syllabus caps formulation at three non-trivial constraints; splitting one resource limit into two separate inequalities invites arithmetic slips later.
Ask the tutor: if a word problem's phrasing has you unsure whether it means or , or how to split its numbers into constraints, ask the AI tutor to walk through it sentence by sentence with you.
How do I decide which quantity becomes x and which becomes y?
Look at the question being asked, not the order the numbers appear in the paragraph. Whatever two quantities the problem wants you to find "how many of each" — tables and chairs, or units of two foods — become and . The assignment order does not usually matter for correctness, but once chosen it must stay fixed and be defined in a full sentence, since every later inequality depends on that definition.
Why do we simplify an inequality like 2500x + 500y le 50000 to 5x + y le 100?
Simplifying to the smallest integer coefficients makes the constraint easier to graph later and reduces arithmetic errors, but it is not compulsory — the unsimplified inequality is equally correct in the formulation stage. Always simplify by dividing through by a common factor (here 500) rather than by guessing smaller numbers, and check the direction of the inequality does not flip, which it would if you divided by a negative number.
Do I always need to write x ge 0 and y ge 0, even if the problem does not mention it?
Yes, whenever and represent counts or amounts of something physical — units produced, items stocked, quantities consumed — because negative values would be meaningless. The only time you would omit them is if a variable is explicitly allowed to be negative (rare at this level) or if the problem states its own bounds instead. When in doubt for a CBSE-style problem, include them.