S8-SA2-0073
What is Linear Programming?
Grade Level:
Class 7
AI/ML, Data Science, Research, Journalism, Law, any domain requiring critical thinking
Definition
What is it?
Linear Programming is a way to find the best possible outcome (like making the most profit or spending the least money) from a set of choices. It helps us make smart decisions when we have limited resources and many options, using simple math equations.
Simple Example
Quick Example
Imagine you have 100 rupees to buy samosas and jalebis. Samosas cost 10 rupees each, and jalebis cost 5 rupees each. You want to buy as many snacks as possible, but also make sure you have at least 3 samosas. Linear Programming helps you figure out the exact number of samosas and jalebis to buy to get the most snacks without spending more than 100 rupees.
Worked Example
Step-by-Step
Let's say a small shop makes two types of diyas: Fancy Diyas and Simple Diyas. Fancy Diyas take 2 hours to make and earn 20 rupees profit. Simple Diyas take 1 hour to make and earn 12 rupees profit. The shop has only 8 hours of work time per day and can make a maximum of 5 Simple Diyas due to material limits.
---Step 1: Define what you want to maximize. Here, it's profit. Let 'x' be Fancy Diyas and 'y' be Simple Diyas. Profit = 20x + 12y.
---Step 2: Write down the limits (constraints).
Time: 2x + 1y <= 8 (total hours)
Simple Diyas limit: y <= 5
Also, you can't make negative diyas: x >= 0, y >= 0.
---Step 3: Test possible combinations within the limits to find the best profit.
If x=0, y can be up to 5. If y=4 (2*0 + 4 = 4 <= 8). Profit = 20*0 + 12*4 = 48.
If x=1, 2*1 + y <= 8 => y <= 6. But y <= 5. So, if y=5 (2*1 + 5 = 7 <= 8). Profit = 20*1 + 12*5 = 20 + 60 = 80.
If x=2, 2*2 + y <= 8 => y <= 4. If y=4 (2*2 + 4 = 8 <= 8). Profit = 20*2 + 12*4 = 40 + 48 = 88.
If x=3, 2*3 + y <= 8 => y <= 2. If y=2 (2*3 + 2 = 8 <= 8). Profit = 20*3 + 12*2 = 60 + 24 = 84.
If x=4, 2*4 + y <= 8 => y <= 0. If y=0 (2*4 + 0 = 8 <= 8). Profit = 20*4 + 12*0 = 80.
---Step 4: Compare profits. The highest profit is 88 rupees.
---Answer: The shop should make 2 Fancy Diyas and 4 Simple Diyas to get the maximum profit of 88 rupees.
Why It Matters
Linear Programming helps big companies decide how to manage resources, like how many products to make or how to ship goods most efficiently. It's used in careers like logistics managers, financial analysts, and even in AI/ML to optimize models, helping them make better predictions.
Common Mistakes
MISTAKE: Not identifying all the limits or 'constraints' correctly. Forgetting about non-negative constraints (like you can't make -2 products). | CORRECTION: Always list all rules and restrictions, including that quantities cannot be negative.
MISTAKE: Mixing up what you want to achieve (e.g., maximize profit) with the limits (e.g., limited time). | CORRECTION: Clearly separate your 'objective function' (what to maximize/minimize) from your 'constraint equations' (the rules you must follow).
MISTAKE: Trying to guess the answer instead of systematically testing combinations or using a method. | CORRECTION: Follow a structured approach, listing possible combinations or using graphing techniques to find the optimal solution within the defined region.
Practice Questions
Try It Yourself
QUESTION: A baker wants to make cakes and cookies. A cake takes 2 eggs and 1 cup of sugar. A batch of cookies takes 1 egg and 1 cup of sugar. The baker has 8 eggs and 6 cups of sugar. If a cake sells for 150 rupees profit and cookies for 80 rupees profit, how many cakes and cookies should be made for maximum profit? | ANSWER: 2 Cakes and 4 Batches of Cookies (Profit: 2*150 + 4*80 = 300 + 320 = 620 rupees)
QUESTION: A farmer has 10 acres of land. He can grow wheat or rice. Wheat needs 1 acre and 2 hours of work per week. Rice needs 1 acre and 3 hours of work per week. He has 24 hours of work available per week. If wheat gives 5000 rupees profit per acre and rice gives 7000 rupees profit per acre, how many acres of each should he plant for maximum profit? | ANSWER: 6 acres of Wheat and 4 acres of Rice (Profit: 6*5000 + 4*7000 = 30000 + 28000 = 58000 rupees)
QUESTION: A factory makes two types of mobile covers: Basic and Premium. Basic covers need 1 unit of plastic and 2 units of labor. Premium covers need 2 units of plastic and 1 unit of labor. The factory has 10 units of plastic and 10 units of labor available. Basic covers sell for 100 rupees and Premium for 150 rupees. What is the maximum profit? | ANSWER: 4 Basic Covers and 3 Premium Covers (Profit: 4*100 + 3*150 = 400 + 450 = 850 rupees)
MCQ
Quick Quiz
Which of these is NOT a typical use of Linear Programming?
Deciding the best route for delivery trucks
Calculating the total number of students in a school
Optimizing a company's production schedule
Finding the cheapest way to combine ingredients for a feed mix
The Correct Answer Is:
B
Linear Programming is about optimizing decisions with constraints. Calculating a total number (like students) is a simple count, not an optimization problem with choices and limits. The other options involve making 'best' decisions under restrictions.
Real World Connection
In the Real World
Logistics companies like Delhivery or Ecom Express use Linear Programming to figure out the most efficient routes for their delivery trucks, saving fuel and time. Even airlines use it to schedule flights and assign crews, ensuring everything runs smoothly and cost-effectively.
Key Vocabulary
Key Terms
OPTIMIZATION: Finding the best possible solution (maximum or minimum) | CONSTRAINTS: The limits or restrictions that must be followed | OBJECTIVE FUNCTION: The mathematical expression representing what you want to maximize or minimize (e.g., profit) | FEASIBLE REGION: The set of all possible solutions that satisfy all constraints | DECISION VARIABLES: The quantities you need to decide (e.g., number of items to produce)
What's Next
What to Learn Next
Next, you can explore 'Graphing Linear Inequalities'. This will help you visually understand how to find the 'feasible region' for Linear Programming problems, making it easier to solve them, especially when there are many choices.


