top of page
Inaugurated by IN-SPACe
ISRO Registered Space Tutor

S6-SA1-0444

What is the Application of Linear Programming in Network Optimization?

Grade Level:

Class 10

AI/ML, Physics, Biotechnology, Space Technology, Chemistry, Engineering, Medicine

Definition
What is it?

Linear Programming (LP) helps find the best way to use limited resources in a network. In network optimization, it helps decide things like the shortest path, fastest route, or most efficient flow of items (like data or goods) through a system of interconnected points.

Simple Example
Quick Example

Imagine you need to send a package from Mumbai to Delhi. There are many different routes (train, truck, flight) with different costs and travel times. Linear programming helps you choose the route that costs the least or gets the package there the fastest, considering all available options.

Worked Example
Step-by-Step

Problem: A small delivery company needs to send 100 packages from Warehouse A to City D. They have three intermediate hubs: B and C. The routes and their capacities (max packages per day) are:

A to B: 60 packages
A to C: 70 packages
B to D: 50 packages
C to D: 80 packages

How can they send all 100 packages efficiently?

Step 1: Define variables. Let x1 be packages A to B, x2 be A to C, x3 be B to D, x4 be C to D.
---
Step 2: Set up the objective (what we want to achieve). Here, we want to maximize flow from A to D, ensuring all 100 packages are sent if possible. Or, we can simply ensure all packages leave A and reach D.
---
Step 3: Write down constraints (rules).
Flow out of A = Flow into A: x1 + x2 = 100 (all packages leave A)
Flow into B = Flow out of B: x1 = x3 (packages arriving at B must leave B)
Flow into C = Flow out of C: x2 = x4 (packages arriving at C must leave C)
Flow into D = 100: x3 + x4 = 100 (all packages reach D)
Capacity constraints: x1 <= 60, x2 <= 70, x3 <= 50, x4 <= 80.
---
Step 4: Solve the equations. From x1 + x2 = 100, if x1 is maxed at 60, then x2 must be 40.
If x1 = 60, then x3 = 60. But x3 <= 50, so this path is limited.
Let's try to send as much as possible through B first. Max x3 is 50. So, x1 = 50.
---
Step 5: If x1 = 50, then x3 = 50. (This satisfies A to B capacity and B to D capacity).
Now, from x1 + x2 = 100, if x1 = 50, then x2 = 50. (This satisfies A to C capacity).
---
Step 6: If x2 = 50, then x4 = 50. (This satisfies C to D capacity).
---
Step 7: Check if total packages reached D: x3 + x4 = 50 + 50 = 100. Yes, all 100 packages reached D.
---
Answer: Send 50 packages from A to B (then B to D) and 50 packages from A to C (then C to D). This uses the network efficiently.

Why It Matters

This concept is super important for designing efficient systems in engineering, managing supply chains for e-commerce like Flipkart, or even planning routes for ambulances in medicine. It helps engineers build better communication networks, helps logistics managers deliver goods faster, and can even optimize resource allocation in space missions.

Common Mistakes

MISTAKE: Not clearly defining all variables (like 'x' for number of items) or what they represent. | CORRECTION: Always start by listing out what each variable stands for, like 'x1 = number of packages from A to B'.

MISTAKE: Forgetting to include all constraints, especially non-negativity (variables cannot be negative). | CORRECTION: Always check that every rule or limit in the problem (like capacity, demand, or supply) is written as an inequality or equation, and add 'all variables >= 0'.

MISTAKE: Confusing the objective function (what you want to maximize or minimize) with the constraints (the rules). | CORRECTION: The objective function is a single equation you want to optimize (e.g., Maximize Profit = 5x + 3y). Constraints are separate equations/inequalities that limit your choices (e.g., x + y <= 10).

Practice Questions
Try It Yourself

QUESTION: A small shop needs to deliver fresh pakoras to two customers, C1 and C2. The shop (S) has two delivery boys, D1 and D2. S to D1 takes 5 mins, S to D2 takes 7 mins. D1 to C1 takes 10 mins, D1 to C2 takes 8 mins. D2 to C1 takes 9 mins, D2 to C2 takes 6 mins. If each delivery boy can only deliver to one customer, how should the deliveries be assigned to minimize total delivery time? | ANSWER: D1 delivers to C2 (5+8=13 mins), D2 delivers to C1 (7+9=16 mins). Total time: 29 mins.

QUESTION: A factory produces two types of toys, A and B. Toy A needs 2 hours on Machine 1 and 1 hour on Machine 2. Toy B needs 1 hour on Machine 1 and 3 hours on Machine 2. Machine 1 can run for a maximum of 8 hours, and Machine 2 for 9 hours. If the profit from Toy A is Rs. 30 and Toy B is Rs. 40, how many of each toy should be made to maximize profit? (Hint: Set up inequalities and objective function). | ANSWER: 3 of Toy A and 2 of Toy B. (Profit = 30*3 + 40*2 = 90 + 80 = Rs. 170)

QUESTION: An airline wants to fly passengers from City X to City Z. There's a direct flight with capacity 100 passengers. There's also a connecting route through City Y. X to Y has capacity 70, and Y to Z has capacity 60. If 150 passengers want to travel from X to Z, how many should be sent on the direct flight and how many via City Y to maximize the number of passengers reaching Z? | ANSWER: 100 passengers direct flight (X to Z), 50 passengers via City Y (X to Y: 50, Y to Z: 50). Total 150 passengers.

MCQ
Quick Quiz

Which of the following is NOT a typical application of Linear Programming in network optimization?

Finding the shortest route for a delivery truck

Optimizing the flow of water in a pipeline system

Determining the best placement of traffic lights in a city

Calculating the exact speed of light in a vacuum

The Correct Answer Is:

D

Linear Programming deals with optimizing resource allocation and flows in networks. Calculating the speed of light is a physics constant, not an optimization problem for a network.

Real World Connection
In the Real World

Think about how your favorite food delivery app like Zomato or Swiggy works. When you order, it uses complex algorithms, often based on linear programming, to figure out which delivery rider is closest, which route is fastest considering live traffic, and how to group multiple orders efficiently. This ensures your hot samosas reach you quickly and the delivery person uses fuel wisely.

Key Vocabulary
Key Terms

OPTIMIZATION: Finding the best solution (maximum or minimum) for a problem | NETWORK: A system of interconnected points (nodes) and paths (edges), like roads or data lines | CONSTRAINTS: Limitations or rules that must be followed in a problem | OBJECTIVE FUNCTION: The mathematical equation that represents what you want to maximize or minimize (e.g., profit, cost) | CAPACITY: The maximum amount that can be handled or carried by a part of the network.

What's Next
What to Learn Next

Next, you can explore 'Graph Theory' and 'Network Flow Algorithms'. These concepts build on understanding networks and linear programming to solve even more complex problems, like designing communication networks or planning public transport routes. Keep exploring, you're doing great!

bottom of page