Linear Programming
Linear Programming
Linear programming (LP) or Linear Optimization may be defined as the problem of maximizing
or minimizing a linear function that is subjected to linear constraints. The constraints may be
equalities or inequalities. The optimisation problems involve the calculation of profit and
loss. Linear programming problems are an important class of optimisation problems, that helps to
find the feasible region and optimise the solution in order to have the highest or lowest value of the
function.
In other words, linear programming is considered as an optimization method to maximize or
minimize the objective function of the given mathematical model with the set of some requirements
which are represented in the linear relationship. The main aim of the linear programming problem is
to find the optimal solution.
Linear programming is the method of considering different inequalities relevant to a situation and
calculating the best value that is required to be obtained in those conditions. Some of the
assumptions taken while working with linear programming are:
• Decision Variables
• Constraints
• Data
• Objective Functions
Graphical Method
The graphical method is used to optimize the two-variable linear programming. If the problem has
two decision variables, a graphical method is the best method to find the optimal solution. In this
method, the set of inequalities are subjected to constraints. Then the inequalities are plotted in the
XY plane. Once, all the inequalities are plotted in the XY graph, the intersecting region will help to
decide the feasible region. The feasible region will provide the optimal solution as well as explains
what all values our model can take. Let us see an example here and understand the concept of linear
programming in a better way.
Example:
Calculate the maximal and minimal value of z = 5x + 3y for the following constraints.
x + 2y ≤ 14
3x – y ≥ 0
x–y≤2
Solution:
The three inequalities indicate the constraints. The area of the plane that will be marked is the
feasible region.
The optimisation equation (z) = 5x + 3y. You have to find the (x,y) corner points that give the
largest and smallest values of z.
To begin with, first solve each inequality.
x + 2y ≤ 14 ⇒ y ≤ -(1/2)x + 7
3x – y ≥ 0 ⇒ y ≤ 3x
x–y≤2⇒y≥x–2
Here is the graph for the above equations.
Now pair the lines to form a system of linear equations to find the corner points.
y = -(½) x + 7
y = 3x
Solving the above equations, we get the corner points as (2, 6)
y = -1/2 x + 7
y=x–2
Solving the above equations, we get the corner points as (6, 4)
y = 3x
y=x–2
Solving the above equations, we get the corner points as (-1, -3)
For linear systems, the maximum and minimum values of the optimisation equation lie on the
corners of the feasibility region. Therefore, to find the optimum solution, you only need to plug
these three points in z = 3x + 4y
(2, 6) :
z = 5(2) + 3(6) = 10 + 18 = 28
(6, 4):
z = 5(6) + 3(4) = 30 + 12 = 42
(–1, –3):
z = 5(-1) + 3(-3) = -5 -9 = -14
Hence, the maximum of z = 42 lies at (6, 4) and the minimum of z = -14 lies at (-1, -3)
• Engineering – It solves design and manufacturing problems as it is helpful for doing shape
optimisation
• Efficient Manufacturing – To maximise profit, companies use linear expressions
• Energy Industry – It provides methods to optimise the electric power system.
• Transportation Optimisation – For cost and time efficiency.