Linear Programming
Linear Programming
Programming
DISCLAIMER
“The content provided herein are created and owned by various authors and licensed
to Sorting Hat Technologies Private Limited (“Company”). The Company disclaims all
rights and liabilities in relation to the content. The author of the content shall be solely
responsible towards, without limitation, any claims, liabilities, damages or suits which
may arise with respect to the same.”
Linear Programming
INTRODUCTION:
The mathematical definition of linear programming is optimizing a linear
function with some constraints in linear inequalities form.
The term “linear programming” consists of two words a linear and
programming. The term “linear” describes the relationship between
multiple variables with first degree. The term “programming” refers to
the process of choosing the best solution for a variety of alternatives
Linear Programming model are used in resource development. It can be
used in manufacturing, calculating how to allocate staff and equipment
to reduce operating costs.
It can be used in high-quality business activities, to determine what
products should be sold and at what prices to maximize the profits.
It can also be used in transportation, to determine how resources are
used to get work done in a limited amount of time.
In this chapter, we will solve problems of linear programming by
graphical method only, although there are many other ways to solve
those problems.
MATHEMATICAL MODELING:
Let understand the mathematical formulation by a simple example of
the manufacturing industry.
The industry produces chairs and tables. Cost and time require to
manufactured a chair is ₹ 2 and 3 hours and for table ₹ 4 and 2 hours
respectively. The factory can operate 150 hours maximum with budget
of ₹ 220 to produce these products per week. If each chair sells for ₹ 6
and each table sells for ₹ 7, then how many individual products should
be made this week to increase profits?
Let x be the number of chairs produced, and let y be the number of the
table produced. Then the first constrain in form of inequality is
2x + 4y ≤ 220 …(1)
Time constraints
Linear Programming
3x + 2y ≤ 150 …(2)
Further, two very common constraints are written below as It’s not
possible to produce less than 0 of any components, so constraints are
1.
x ≥ 0
…(3)
y ≥ 0
These are called non-negative constraints.
All 3 equations of the above form a system of constraints.
2x + 4y ≤ 220
3x + 2y ≤ 150
…(4)
x ≥0
y ≥0
Each chair costs ₹ 2 to make and sells for ₹ 6. This gives a profit of
₹ 4 per chair. Each table costs ₹ 4 to make and sells for ₹ 7. This gives a
profit of ₹ 3 per table. The profit function can be defined as
profit Z = 4x + 3y …(5)
2.
GRAPHICAL SOLUTION OF LINEAR INEQUALITIES
IN TWO VARIABLES:
A line divides the XY plane into two parts and
each part is called half-plane as shown in the
figure.
3.
Q. Solve 40x – 20y ≤ 120 graphically
Sol. x + y ≥ 6 ...(1)
x – y ≤ 4 ...(2)
Two equations divide the XY plane
into four regions.
Step-1: First draw the solution region
of equation (1) and equation (2) as
shown in the figure.
Step-2: The solution region of inquality
(1) and inquality (2) is represented by
region (I), (II) and (II), (III) respectively.
Common region II is a required solution
region of a given system of inequality.
Linear Programming
4.
Q. Represent solution region of linear inequalities on XY plane
x + 2y ≤ 6 ; 2x + y ≤ 6 ; x ≥ 0 ; y≥0
Sol. x + 2y ≤ 6 ...(1)
2x + y ≤ 6 ...(2)
x ≥ 0 ...(3)
y ≥ 0 ...(4)
Fundamental Theorem
Theorem-1: Let S and Z = Ax + By be the
feasible region and the objective function
respectively for an LPP (Linear Programming
Problem). When objective function Z has
an optimal solution, then this optimal value
always lies on corner points.
Theorem-2: Let S and Z = Ax + By be the
feasible region and the objective function
Linear Programming
5.
STEPS TO FOLLOW FOR THE SOLUTION OF THE LPP MODEL :
Steps Bounded Region Unbounded Region
Corner points z = x + 2y
(0,2) 4
(1.5,1.5) 4.5 = max
6.
As solution region is un-bounded we
need to draw the x + 2y > 4.5 and
feasible region have common points
with solution region of In-equality x +
2y > 4.5
Hence no max value of z exist.
Q. Minimize z = x + 1.5y
subject to constraints
2x + 3y ≥ 12 ; 4x + 3y ≥ 12
find the optimal solution of objective function.
7.
DIET PROBLEM
Now draw the graph of 40x + 60y < 130 as the region is unbounded and check
whether the half-plane has any point common with the feasible solution. It
is observed that there is no point common. So, 130 is the minimum value of
objective function Z.
8.
MANUFACTURING PROBLEMS :
Q. Elon musk has 3 machines in the Space-X manufacturing factory, named M-1,
M-2 and M-3. To produce rocket MARS-1 and MOON-2 all 3 machines are used
M-1 and M-2 have the capacity to run at most 12 hrs. and M-3 must run for
at least five hours a day. Time taken by each machine to produce one unit of
each item is given in the table
No. of hours required
Item
M-1 M-2 M-3
MARS-1 1 2 1
MOON-2 2 1 1.25
Elon can earn a profit of ₹ 600 and ₹ 400 on items MARS-1 and MOON-2
respectively. Find the optimal quantity of each rocket to maximize the profit
and maximum profit?
9.
TRANSPORTATION PROBLEM:
Q. Government of INDIA decides to distribute free ration for which the government
stored food in godowns A and B of the capacity of 1000 quintals and 500
quintals respectively. Government supply ration to three ration shop L, M,
and N whose requirements are 600,500 and 400 respectively. Transportation
costs from godowns to ration shops are given in the following table.
Transportation cost per quintal (in Rs)
From/To A B
L 60 40
M 30 20
N 25 30
Indian government wants to minimize the cost of transportation to continuously
supply free ration. What is the minimum cost?
Constraints
x≥0 600 – x ≥ 0 500 – y ≥ 0 x + y – 600 ≥ 0 1000– (x + y) ≥ 0
y≥0 ⇒ x ≤ 600 ⇒ y ≤ 500 ⇒ x + y ≥ 600 ⇒ x + y ≤ 1000
Objective Function:
Total expenditure on transportation
Z = 60x + 30y + [1000 – (x + y)]25 + (600 – x)40 + (500 – y)20 + [x + y –600]30
Z = 25x + 15y + 41000
Linear Programming
10.
Corner points:
Corner points are determined by solving constraints equations
A(100, 500), B(500, 500), C(600, 400) and D(600, 0)
Linear Programming
11.
SUMMARY
• If two corner points of the solution region both give same optimal
solutions. then every point on one segment joining these points is also
an optimal solution.
Linear Programming
12.
13.
14.