Menu Top
Complete Course of Mathematics
Topic 1: Numbers & Numerical Applications Topic 2: Algebra Topic 3: Quantitative Aptitude
Topic 4: Geometry Topic 5: Construction Topic 6: Coordinate Geometry
Topic 7: Mensuration Topic 8: Trigonometry Topic 9: Sets, Relations & Functions
Topic 10: Calculus Topic 11: Mathematical Reasoning Topic 12: Vectors & Three-Dimensional Geometry
Topic 13: Linear Programming Topic 14: Index Numbers & Time-Based Data Topic 15: Financial Mathematics
Topic 16: Statistics & Probability


Content On This Page
Introduction to Linear Programming: Definition and Purpose Related Terminology: Objective Function Related Terminology: Constraints
Related Terminology: Decision Variables and Non-negativity Restrictions


Introduction to Linear Programming: Concepts and Terminology



Introduction to Linear Programming: Definition and Purpose

Definition of Linear Programming

Linear Programming (LP), also known as Linear Optimization, is a fundamental mathematical technique belonging to the field of Operations Research. Its core purpose is to find the best possible outcome (either maximum profit, minimum cost, etc.) in a mathematical model whose requirements are represented by linear relationships.

More formally, an LPP is an optimization problem where the goal is to optimize (either maximize or minimize) a mathematical function called the objective function, subject to a set of linear restrictions or conditions called constraints. Both the objective function and the constraints must be expressible as linear equations or inequalities involving a set of decision variables.

Think of it as finding the most efficient way to allocate scarce resources (like time, money, raw materials, labour) among competing activities to achieve a specific goal, where all the relationships involved are directly proportional and additive.


Purpose of Linear Programming

The primary goal and purpose of applying Linear Programming is optimization. Optimization, in this context, means finding the most favourable value of the objective function. This can be either:

The optimization is always performed while respecting and satisfying all the stated conditions or limitations imposed by the constraints. Without constraints, the objective function might tend towards infinity (in maximization) or negative infinity (in minimization) in many practical problems, which wouldn't represent a real-world optimal solution given finite resources.


The "Linear" Aspect

The term "Linear" is fundamental to Linear Programming and imposes strict conditions on the mathematical model. It requires that all functions within the problem formulation (both the objective function and the constraints) must be linear functions of the decision variables. This means:

These linearity assumptions ensure that the feasible region (the set of all possible solutions that satisfy the constraints) is a convex set, and that the optimal solution(s), if they exist, can be found efficiently using algorithms like the Simplex method or, for two variables, the graphical method. Nonlinear relationships would require different optimization techniques.


Real-World Applications of Linear Programming

Linear Programming is not just a theoretical concept; it is a widely applied quantitative tool used across numerous industries and disciplines to solve complex decision-making problems involving resource allocation and optimization. Some key areas include:

Example 1. Consider a small bakery that makes two types of cakes: a Basic Cake and a Premium Cake. Making a Basic Cake requires 200g of flour and 50g of sugar. Making a Premium Cake requires 150g of flour and 100g of sugar. The bakery has 5 kg (5000g) of flour and 2 kg (2000g) of sugar available daily. The profit from a Basic Cake is $\textsf{₹}150$ and from a Premium Cake is $\textsf{₹}200$. How can the bakery determine the number of each type of cake to bake daily to maximize its total profit, given the limited ingredients?

Answer:

This is a typical problem that can be formulated and solved using Linear Programming.

The quantities we need to decide are the number of Basic Cakes and Premium Cakes to make daily. These are our decision variables. Let $x$ represent the number of Basic Cakes and $y$ represent the number of Premium Cakes.

The goal is to maximize the total profit. The profit from $x$ Basic Cakes is $150x$ and from $y$ Premium Cakes is $200y$. The total profit, $Z$, is the sum of these individual profits.

Objective Function:

Maximize $Z = 150x + 200y$

The limitations on the available ingredients are the constraints that must be satisfied.

Constraints:

  • Flour constraint: The total amount of flour used for $x$ Basic Cakes ($200x$ g) and $y$ Premium Cakes ($150y$ g) must not exceed the total available flour (5000g).

    $200x + 150y \leq 5000$

    (This inequality can be simplified by dividing by 50: $4x + 3y \leq 100$)

  • Sugar constraint: The total amount of sugar used for $x$ Basic Cakes ($50x$ g) and $y$ Premium Cakes ($100y$ g) must not exceed the total available sugar (2000g).

    $50x + 100y \leq 2000$

    (This inequality can be simplified by dividing by 50: $x + 2y \leq 40$)

Finally, the number of cakes produced cannot be a negative value.

Non-negativity Constraints:

$x \geq 0$

$y \geq 0$

Combining all these components, the Linear Programming Problem for the bakery is:

Maximize $Z = 150x + 200y$

Subject to:

$4x + 3y \leq 100$

$x + 2y \leq 40$

$x \geq 0$

$y \geq 0$

Solving this LPP will yield the values of $x$ and $y$ (number of Basic and Premium cakes) that result in the highest possible profit $Z$ while staying within the flour and sugar limits.

The definition and purpose highlight that LP is about making optimal decisions under constraints, where the relationships are linear.



Related Terminology: Objective Function

Definition of Objective Function

The Objective Function is the central element of a Linear Programming Problem that quantifies the goal we are trying to achieve. It is the mathematical expression that represents the quantity to be optimized, meaning it is either to be maximized (like profit, revenue, output) or minimized (like cost, time, waste).

Crucially, in a Linear Programming Problem, the objective function must always be a linear function of the decision variables. This means the variables are raised to the power of 1, and there are no product terms between variables.

The value of the objective function depends entirely on the values chosen for the decision variables. The process of solving an LPP involves finding the specific values for these decision variables that result in the optimal value of the objective function, subject to the constraints.


General Form of the Objective Function

The objective function is typically denoted by the letter $Z$. It is expressed as a linear combination of the decision variables.

If we have $n$ decision variables, say $x_1, x_2, \dots, x_n$, and $c_1, c_2, \dots, c_n$ are constants (coefficients) that represent the per-unit contribution of each variable to the objective (e.g., profit per unit of $x_1$, cost per unit of $x_2$, etc.), the general form of the objective function is:

$Z = c_1 x_1 + c_2 x_2 + \dots + c_n x_n$

The task in an LPP is then stated as either:

Maximize $Z = c_1 x_1 + c_2 x_2 + \dots + c_n x_n$

OR

Minimize $Z = c_1 x_1 + c_2 x_2 + \dots + c_n x_n$

The values $c_i$ are often called the objective function coefficients or cost coefficients (even in maximization problems, as they represent the "cost" or "value" associated with each variable).


Examples of Objective Functions

Example 1. A furniture manufacturer makes tables and chairs. The profit from each table is $\textsf{₹}1000$, and the profit from each chair is $\textsf{₹}300$. If the manufacturer decides to produce $x$ tables and $y$ chairs, write the objective function for maximizing the total profit.

Answer:

The decision variables are the number of tables ($x$) and the number of chairs ($y$).

The profit from $x$ tables is $\textsf{₹}1000 \times x = 1000x$.

The profit from $y$ chairs is $\textsf{₹}300 \times y = 300y$.

The total profit, $Z$, is the sum of these individual profits.

The objective is to maximize total profit.

Objective Function:

Maximize $Z = 1000x + 300y$

Here, $c_1 = 1000$ and $c_2 = 300$ are the profit coefficients.

Example 2. A company needs to transport goods from a warehouse to a distribution centre. They can use two types of trucks: large trucks and small trucks. The cost of using a large truck for the trip is $\textsf{₹}5000$, and the cost of using a small truck is $\textsf{₹}2000$. If they use $x_1$ large trucks and $x_2$ small trucks, write the objective function for minimizing the total transportation cost.

Answer:

The decision variables are the number of large trucks ($x_1$) and the number of small trucks ($x_2$).

The cost of using $x_1$ large trucks is $\textsf{₹}5000 \times x_1 = 5000x_1$.

The cost of using $x_2$ small trucks is $\textsf{₹}2000 \times x_2 = 2000x_2$.

The total transportation cost, $Z$, is the sum of these individual costs.

The objective is to minimize the total cost.

Objective Function:

Minimize $Z = 5000x_1 + 2000x_2$

Here, $c_1 = 5000$ and $c_2 = 2000$ are the cost coefficients.

Example 3. A nutritionist is formulating a diet using two food types, Food P and Food Q. Each unit of Food P contains 10 units of Vitamin A and 15 units of Vitamin C. Each unit of Food Q contains 20 units of Vitamin A and 10 units of Vitamin C. The cost per unit of Food P is $\textsf{₹}12$, and the cost per unit of Food Q is $\textsf{₹}18$. If the diet uses $p$ units of Food P and $q$ units of Food Q, write the objective function for minimizing the total cost of the diet.

Answer:

The decision variables are the number of units of Food P ($p$) and the number of units of Food Q ($q$).

The cost of using $p$ units of Food P is $\textsf{₹}12 \times p = 12p$.

The cost of using $q$ units of Food Q is $\textsf{₹}18 \times q = 18q$.

The total cost of the diet, $Z$, is the sum of these individual costs.

The objective is to minimize the total cost.

Objective Function:

Minimize $Z = 12p + 18q$

Here, $c_1 = 12$ and $c_2 = 18$ are the cost coefficients. Note that the information about vitamins (10, 15, 20, 10) is related to the constraints, not the objective function itself.

In all these examples, the objective function is a linear expression ($ax + by$ or $c_1x_1 + c_2x_2$), representing the quantity to be optimized (maximized or minimized).



Related Terminology: Constraints

Definition of Constraints

Constraints are fundamental components of a Linear Programming Problem (LPP) that represent the limitations, restrictions, or requirements that the decision variables must satisfy. They define the boundaries within which a solution must exist to be considered valid or "feasible".

These limitations typically arise from the finite availability of resources, such as:

Constraints can also represent specific requirements that must be met, such as:

The set of all points (combinations of decision variable values) that satisfy all the constraints simultaneously forms the feasible region of the LPP. The optimal solution must lie within this feasible region.


Form of Constraints

In Linear Programming, constraints are expressed as linear inequalities or sometimes linear equations involving the decision variables. Just like the objective function, these relationships must be linear, meaning the variables have an exponent of 1 and are not multiplied or divided by each other.

Let's consider an LPP with $n$ decision variables, denoted by $x_1, x_2, \dots, x_n$. A linear constraint can be written in the general form:

$a_1 x_1 + a_2 x_2 + \dots + a_n x_n \mathrel{\{\leq, \geq, =\}} b$

Here:

A typical LPP involves a set of $m$ such constraints. Each constraint $i$ (where $i = 1, 2, \dots, m$) can be written as:

$a_{i1} x_1 + a_{i2} x_2 + \dots + a_{in} x_n \mathrel{\{\leq, \geq, =\}} b_i$

where $a_{ij}$ is the coefficient for variable $x_j$ in constraint $i$, and $b_i$ is the right-hand side value for constraint $i$.


Examples of Constraints

Let's revisit the bakery example from the previous section (Example 1 under I1) where $x$ is the number of Basic Cakes and $y$ is the number of Premium Cakes.

Example 1. In the bakery example, Basic Cakes require 200g of flour, Premium Cakes require 150g of flour, and the bakery has 5 kg (5000g) of flour available daily. Express the flour limitation as a constraint.

Answer:

The amount of flour used for $x$ Basic Cakes is $200x$ grams.

The amount of flour used for $y$ Premium Cakes is $150y$ grams.

The total flour used is the sum of these amounts: $200x + 150y$.

This total usage cannot exceed the available flour (5000g).

Constraint:

$200x + 150y \leq 5000$

... (1)

This inequality represents the flour constraint. It can be simplified by dividing by 50: $4x + 3y \leq 100$.

$4x + 3y \leq 100$

[Simplified form] ... (1')

Example 2. In the same bakery example, Basic Cakes require 50g of sugar, Premium Cakes require 100g of sugar, and the bakery has 2 kg (2000g) of sugar available daily. Express the sugar limitation as a constraint.

Answer:

The amount of sugar used for $x$ Basic Cakes is $50x$ grams.

The amount of sugar used for $y$ Premium Cakes is $100y$ grams.

The total sugar used is $50x + 100y$.

This total usage cannot exceed the available sugar (2000g).

Constraint:

$50x + 100y \leq 2000$

... (2)

This inequality represents the sugar constraint. It can be simplified by dividing by 50: $x + 2y \leq 40$.

$x + 2y \leq 40$

[Simplified form] ... (2')

Now let's consider the Diet Minimization example from the previous section (Example 2 under I2) where $x_1$ is kg of Food 1 and $x_2$ is kg of Food 2.

Example 3. In the diet example, Food 1 contains 5 units of Nutrient A per kg, and Food 2 contains 2 units per kg. The minimum daily requirement for Nutrient A is 20 units. Express this requirement as a constraint.

Answer:

The amount of Nutrient A obtained from $x_1$ kg of Food 1 is $5x_1$ units.

The amount of Nutrient A obtained from $x_2$ kg of Food 2 is $2x_2$ units.

The total Nutrient A obtained is $5x_1 + 2x_2$.

This total must be greater than or equal to the minimum requirement (20 units).

Constraint:

$5x_1 + 2x_2 \ge 20$

... (3)

This inequality represents the minimum Nutrient A requirement.

Example 4. In the same diet example, Food 1 contains 1 unit of Nutrient B per kg, and Food 2 contains 3 units per kg. The minimum daily requirement for Nutrient B is 15 units. Express this requirement as a constraint.

Answer:

The amount of Nutrient B obtained from $x_1$ kg of Food 1 is $1x_1$ units.

The amount of Nutrient B obtained from $x_2$ kg of Food 2 is $3x_2$ units.

The total Nutrient B obtained is $1x_1 + 3x_2$.

This total must be greater than or equal to the minimum requirement (15 units).

Constraint:

$x_1 + 3x_2 \ge 15$

... (4)

This inequality represents the minimum Nutrient B requirement.

In a complete LPP, all these constraints must be satisfied simultaneously. The combination of constraints defines the feasible region, which is the set of all possible solutions that are valid according to the problem's limitations and requirements.


Related Terminology: Decision Variables and Non-negativity Restrictions

Decision Variables

The Decision Variables are the key unknowns in a Linear Programming Problem. They represent the quantities that the decision-maker has control over and whose optimal values need to be determined to achieve the objective. The entire purpose of solving an LPP is to find the values of these decision variables that optimize the objective function while satisfying all the constraints.

These variables typically quantify the level of different activities or choices. For instance, they could represent:

Decision variables are usually denoted using symbols like $x, y, z$ or subscripted variables such as $x_1, x_2, x_3, \dots$. The number of decision variables depends on the complexity of the problem and the number of independent choices available.


Examples of Decision Variables

Example 1. In a problem about maximizing profit from producing two types of chairs, what would be the decision variables?

Answer:

The decision variables would be the number of chairs of each type to be produced.

  • Let $x_1$ = Number of chairs of Type 1 to produce.
  • Let $x_2$ = Number of chairs of Type 2 to produce.

Example 2. In a diet problem where a nutritionist wants to minimize the cost of a diet using three available food items, what would be the decision variables?

Answer:

The decision variables would be the quantity of each food item to include in the diet.

  • Let $f_1$ = Amount (e.g., kg or units) of Food Item 1 to use.
  • Let $f_2$ = Amount of Food Item 2 to use.
  • Let $f_3$ = Amount of Food Item 3 to use.

Example 3. A company transports goods from two warehouses to four retail stores. In a problem to minimize transportation costs, what might the decision variables represent?

Answer:

In this case, the decision variables would represent the quantity of goods shipped from each warehouse to each store.

Let $x_{ij}$ be the quantity shipped from warehouse $i$ to store $j$.

Since there are 2 warehouses (i=1, 2) and 4 stores (j=1, 2, 3, 4), we would have $2 \times 4 = 8$ decision variables:

  • $x_{11}$ = Quantity shipped from Warehouse 1 to Store 1
  • $x_{12}$ = Quantity shipped from Warehouse 1 to Store 2
  • ...
  • $x_{24}$ = Quantity shipped from Warehouse 2 to Store 4

Identifying the decision variables is the very first step in formulating a Linear Programming Problem.


Non-negativity Restrictions

The Non-negativity Restrictions (also called Non-negativity Constraints) are a standard and often implicitly assumed set of constraints in most practical Linear Programming problems. They state that the decision variables cannot take on negative values.

If $x_1, x_2, \dots, x_n$ are the decision variables, the non-negativity restrictions are expressed as:

$x_1 \ge 0$

... (N1)

$x_2 \ge 0$

... (N2)

...

$x_n \ge 0$

... (Nn)

This is often written more concisely as:

$x_j \ge 0$ for all $j = 1, 2, \dots, n$.


Reasoning for Non-negativity

These restrictions are included because in the vast majority of real-world applications modelled by LPPs, the decision variables represent physical or quantifiable entities that cannot meaningfully be negative. For example:

Allowing negative values would lead to solutions that are not interpretable or implementable in the real-world context of the problem. Therefore, the non-negativity restrictions are essential for ensuring that the mathematical solution obtained corresponds to a valid physical or economic reality. While LP models *can* be formulated with variables that are unrestricted in sign (can be positive, negative, or zero), the non-negativity case is the most common and foundational.

In summary, decision variables are what we need to find, constraints limit the possible values these variables can take, and non-negativity restrictions are a standard type of constraint reflecting the real-world nature of most decision variables. Together with the objective function, they form the complete mathematical model of a Linear Programming Problem.