Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Linear Programming – Concept, Methods & Solved Problems

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

How Do You Solve Linear Programming Problems? Methods & Examples Explained

The concept of linear programming plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. With linear programming, you can find the best or most efficient solution to problems involving constraints and resources. This idea is crucial in optimization—maximizing profit, minimizing cost, and effective resource management. Let’s learn all about linear programming and how to solve these problems step-by-step!


What Is Linear Programming?

A linear programming problem is a special type of mathematical problem where you aim to maximize or minimize an objective (like profit or cost) given specific restrictions. These restrictions are called constraints, written as linear inequalities or linear equations. You’ll find this concept applied in areas such as optimization, economics, and industrial engineering. In simple words, linear programming provides a way to decide how to do something best, where “best” means maximizing or minimizing a number while following the given rules.


Key Formula for Linear Programming

Here’s the standard formula for a linear programming problem:
Maximize or Minimize \( Z = ax + by \)
Subject to:

\( a_1x + b_1y \leq c_1 \)
\( a_2x + b_2y \leq c_2 \)
and so on...
with \( x \geq 0, y \geq 0 \)
Where Z is the objective function, \(x\) and \(y\) are decision variables, and the inequalities represent constraints.


Cross-Disciplinary Usage

Linear programming is not only useful in Maths but also plays an important role in Physics, Computer Science, and daily logical reasoning. Students preparing for JEE or NEET will see its relevance in various exam questions. It is used for business strategy, transportation, resource allocation, and even project planning.


Step-by-Step Illustration

Let’s see how to solve a basic linear programming problem using the graphical method.

1. **Read the problem and define decision variables:**

2. **Write the objective function:**
Example: Maximize profit \( P = 5x + 8y \)

3. **List out constraints as inequalities:**
\( x + 2y \leq 8 \)
\( 3x + y \leq 9 \)
\( x \geq 0, y \geq 0 \)

4. **Plot the inequalities on an X-Y plane to find the feasible region.**

5. **Find the corner points (vertices) of the feasible region.**

6. **Calculate the value of the objective function at each vertex.**

7. **Choose the point where the function is maximum (or minimum, depending on the problem). That’s your solution!**

Speed Trick or Vedic Shortcut

Here’s a quick shortcut for solving linear programming problems faster during exams! When constraints involve simple variables, check boundary or intersection points directly without drawing the whole graph.


Example Trick: Solve for one constraint at a time and check which pair gives valid solutions, then plug these directly into the objective function.


  1. Solve \( x + 2y = 8 \) and \( 3x + y = 9 \):
    Substitute values from one equation into the other to quickly find x and y.

  2. Check remaining constraints to validate solutions.
  3. Repeat with other pairs of equations.
  4. Pick the feasible combination that gives the maximum or minimum objective function value.

Tricks like this help you save time on word problems in competitive exams. Vedantu’s live sessions share more smart strategies for board and entrance exams!


Try These Yourself

  • Formulate an objective function to maximize in a real-life scenario (like making and selling two products with the given resources).
  • Write down two simple constraints using two variables.
  • Plot the constraints on a graph and find the feasible region.
  • Calculate the objective function at each corner point.
  • Decide which value is optimal (maximum or minimum).

Frequent Errors and Misunderstandings

  • Forgetting to include non-negativity constraints (\( x \geq 0, y \geq 0 \)).
  • Not shading the feasible region correctly on the graph.
  • Missing a boundary/corner point while checking objective function values.
  • Confusing the objective function with a constraint.

Relation to Other Concepts

The idea of linear programming connects closely with topics such as linear equations in two variables, linear inequalities, and matrices. Being good at linear equations and graph plotting makes linear programming much easier. This also sets a foundation for solving more challenging optimization problems in higher maths and engineering.


Classroom Tip

A quick way to remember linear programming is to always start by writing your constraints first, list the variables, and then set up your goal (objective function). Draw neat graphs—use color pens for clear shading. Vedantu’s teachers often demonstrate real business examples to make these steps easy and relatable during live classes.


We explored linear programming—from definition, formula, steps, examples, common mistakes, and its connections to other maths chapters. Keep practicing with Vedantu’s worksheets and live classes to become confident in breaking down and solving any type of linear programming problem efficiently!


Quick links to boost your understanding of linear programming:

FAQs on Linear Programming – Concept, Methods & Solved Problems

1. What is Linear Programming (LP) and could you explain it with a simple example?

Linear Programming is a mathematical method used to find the best possible outcome, such as maximum profit or minimum cost, from a given set of resources or constraints. It involves optimising a linear objective function subject to a set of linear inequalities or equations. For example, imagine a bakery that makes two types of cakes, A and B. Each cake requires a different amount of flour and sugar, and the bakery has a limited supply of both. Linear Programming can determine the exact number of cakes A and B to produce to maximise profit while staying within the resource limits.

2. What are the essential components of any Linear Programming Problem (LPP)?

Every Linear Programming Problem is defined by four fundamental components:

  • Decision Variables: These are the unknown quantities (e.g., x and y) that you need to determine, like the number of units of two different products to manufacture.
  • Objective Function: This is a linear equation (e.g., Z = 5x + 3y) that represents the goal, which is either to be maximised (like profit) or minimised (like cost).
  • Constraints: These are the limitations or rules of the problem, expressed as linear inequalities (e.g., 2x + y ≤ 100). They represent restrictions on resources like time, materials, or labour.
  • Non-negativity Restriction: This requires that the decision variables must be non-negative (x ≥ 0, y ≥ 0), as physical quantities cannot be negative.

3. What is the main difference between an objective function and a constraint in LPP?

The main difference lies in their purpose. The objective function defines the goal of the problem—it's the mathematical expression of what you want to optimise (maximise or minimise). In contrast, a constraint defines the rules or limitations you must follow. The objective function is your target, while the constraints are the boundaries within which you must operate to achieve that target.

4. How do you formulate a real-world scenario into a mathematical LPP model?

To convert a word problem into a mathematical LPP, you follow these key steps:

  • Step 1: Identify the unknown quantities you need to find and define them as decision variables (e.g., let x be the number of tables and y be the number of chairs).
  • Step 2: Determine the overall goal (e.g., maximising profit) and write it as a linear objective function using the decision variables.
  • Step 3: Identify all restrictions or limitations (e.g., available labour hours, raw materials) and express them as linear inequalities, which are your constraints.
  • Step 4: Finally, add the non-negativity constraints (e.g., x ≥ 0, y ≥ 0), since the variables represent real-world items.

5. How does the graphical method for solving a Linear Programming Problem work?

The graphical method is used to solve LPPs with two decision variables. The process involves:

  • Plotting all the constraint inequalities on a graph.
  • Identifying the feasible region, which is the common shaded area that satisfies all constraints simultaneously.
  • Determining the coordinates of the corner points (vertices) of this feasible region.
  • Substituting these corner points into the objective function to see which point yields the optimal (maximum or minimum) value.

Its main limitation is that it is only practical for problems with two variables, as it's difficult to visualise in three or more dimensions.

6. What is the difference between a feasible region and an infeasible region in LPP?

The feasible region is the area on a graph that contains all the possible solutions to a Linear Programming Problem. Any point within or on the boundary of this region satisfies all the given constraints. Conversely, the infeasible region is the entire area outside the feasible region. Any point in the infeasible region violates at least one of the problem's constraints and is therefore not a valid solution.

7. Why is the non-negativity constraint (e.g., x ≥ 0, y ≥ 0) so critical in most real-world LPPs?

The non-negativity constraint is critical because linear programming is typically used to model real-world situations where the decision variables represent tangible quantities like the number of products, amount of time, or allocation of resources. These quantities cannot be negative; for instance, a company cannot produce -10 chairs. Omitting this constraint could lead to mathematically valid but practically impossible and meaningless solutions, so it grounds the problem in reality.

8. Can a Linear Programming Problem have more than one optimal solution?

Yes, an LPP can have multiple or infinite optimal solutions. This occurs when the slope of the objective function is parallel to the slope of one of the boundary constraints of the feasible region. In this case, the objective function line will coincide with an entire edge of the feasible region. As a result, every single point on that line segment, including its two corner points, will yield the same optimal value.

9. What happens if the feasible region in a Linear Programming Problem is unbounded?

An unbounded feasible region extends infinitely in at least one direction. In such cases:

  • For a maximisation problem, the objective function may increase indefinitely without a limit, leading to an unbounded solution (i.e., no maximum value exists).
  • For a minimisation problem, an optimal solution might still exist at one of the corner points, even if the region is unbounded.

Therefore, an unbounded region does not automatically mean there is no solution, but it requires careful analysis to check if an optimal value can be determined.

10. How are the corner points of a feasible region determined, and why are they so important?

The corner points (or vertices) of a feasible region are found by identifying the points of intersection between the boundary lines of the constraints. You can find these by solving the system of linear equations that form the boundaries. These points are critically important because of the Fundamental Theorem of Linear Programming, which states that if an optimal solution to an LPP exists, it must occur at one of these corner points. This simplifies the search for the best solution from infinite possibilities to just a few key points.

11. What are some common real-world applications of Linear Programming?

Linear Programming is a powerful tool used across various industries for optimisation. Key applications include:

  • Business and Manufacturing: To maximise profit by determining the optimal production levels for various products with limited resources.
  • Logistics and Transportation: To minimise shipping costs by finding the most efficient routes and delivery schedules.
  • Diet Planning: To create a balanced diet plan that meets nutritional requirements at the lowest possible cost.
  • Finance: In portfolio management, to maximise investment returns for a given level of risk.