Over 7,029,000 live tutoring sessions served!
Top

Linear Programming

Linear programming deals with the optimization (maximization or minimization) of linear functions subject to linear constraints.This technique has found its applications to important areas of product mix, blending problems and diet problems.Oil refineries, chemical industries, steel industries and food processing industry are also using linear programming with considerable success. Linear programming problems involving only two variables can be effectively solved by a graphical technique which provides a pictorial representation of the solution.

Step 1: Formulate the given problem as a linear programming problem.

Step 2: Plot the given constraints as equalities on x1-x2 coordinate plane and determine the convex region formed by them.

Step 3: Determine the vertices of the convex region and find the value of objective function at each vertex.The vertex which gives the optimal value of the objective function gives the desired optimal solution to the problem.

 

General Linear Programming Problem

Back to Top

Any linear programming problem involving more than two variables may be expressed as follows

Find the values of the variable x1, x2,............,xn which maximize (or minimize) the objective function

Z=c1x1+c2x2+..............+cnxn

subject to the constraints

a11x1+a12x2+.............+a1nxn b1

a21x1+a22x2+............. +a2nxn b2

.............................................................

am1x1+am2x2+..............+amnxn bm

and meet the non negative restrictions

x1, x2,...........xn 0

1 . A set of values x1,x2......xn which satisfies the constraints of linear programming problem is called its solution.

2 . Any solution to a linear programming problem which satisfies the non negativity restrictions of the problem is called its feasible solution.

3. Any feasible solution which maximizes(or minimizes) the objective function of the linear programming problem is called

its optimal solution.

Forms of Linear Programming

Back to Top

There are two forms of linear programming problem. They are Canonical form:

The general linear programming problem can be expressed as Maximize z=c1x1+c2x2+........cnxn subject to the constraints

ai1x1+ai2x2+.........ainxn<=bi; x1, x2........xn 0. This form is called its canonical form and has the following characteristics:

1. objective function is of maximization type

2. all constraints are of () type

3 .all variables xi are non-negative

Standard form:

Standard form has its following characteristics:

1. objective function is of maximization type

2. all constraints are expressed as equations

3. right hand side of each constraint is non negative

4. all variables are non negative

Rules to Solve Linear Programming

Back to Top

Step 1. Identify the unknowns in the given LPP. Denote then by x and y.

Step 2. Formulate the objective function in terms of x and y. be sure whether it is to be maximized or minimized.

Step 3. Translate all the constraints in the form of linear inequations.

Step 4. Solve these inequations simultaneously. Mark the common area by shaded region. This is the feasible region .

Step 5. Find the coordinates of all the vertices of the feasible region

Step 6. Find the value of the objective function at each vertex of the feasible region.

Step 7. Find the values of x and y for which the objective function z = ax + by has maximum or minimum value (as the case may be)

Linear Programming Examples

Back to Top
Below are the example problems on linear programming-

Problem 1:
Solve the following linear program maximize 5x1 + 6x2 subject to
x1 + x2 ≤ 10
x1 - x2 ≥ 3
5x1 + 4x2 ≤ 35
x1 ≥ 0
x2 ≥ 0

Solution:
It is plain that the maximum occurs at the intersection of
5x1 + 4x2 = 35 and
x1 - x2 = 3
Solving simultaneously, rather than by reading values off the graph, we have that
5(3 + x2) + 4x2 = 35
i.e. 15 + 9x2 = 35
i.e. x2 = ($\frac{20}{9}$) = 2.222 and
x1 = 3 + x2 = ($\frac{47}{9}$) = 5.222
The maximum value is 5($\frac{47}{9}$) + 6($\frac{20}{9}$) = ($\frac{355}{9}$) = 39.444

Problem 2:
A carpenter makes tables and chairs. Each table can be sold for a profit of £30 and each chair for a profit of £10. The carpenter can afford to spend up to 40 hours per week working and takes six hours to make a table and three hours to make a chair. Customer demand requires that he makes at least three times as many chairs as tables. Tables take up four times as much storage space as chairs and there is room for at most four tables each week.Formulate this problem as a linear programming problem .

Solution:

Variables
Let,
xT = number of tables made per week
xC = number of chairs made per week

Constraints total work time 6xT + 3xC ≤ 40 customer demand xC ≥ 3xT storage space
($\frac{xC}{4}$) + xT ≤ 4, all variables ≥ 0

Objective maximize 30xT + 10xC

The graphical representation of the problem is given below and from that we have that the solution lies at the intersection of
($\frac{xC}{4}$) + xT = 4 and 6xT + 3xC = 40

Solving these two equations simultaneously we get xC = 10.667, xT = 1.333 and the profit = £146.667

Limitations of Linear Programming

Back to Top
  • Linear programming is applicable only to problems where the constraints and objective function are linear i.e., where they can be expressed as equations which represent straight lines. In real life situations, when constraints or objective functions are not linear, this technique cannot be used.
  • Factors such as uncertainty, weather conditions etc. are not taken into consideration.
  • There may not be an integer as the solution, e.g., the number of men required may be a fraction and the nearest integer may not be the optimal solution. i.e., Linear programming technique may give practical valued answer which is not desirable.
  • Only one single objective is dealt with while in real life situations, problems come with multi-objectives.
  • Parameters are assumed to be constants but in reality they may not be so.
More topics in  Linear Programing
Simplex Method Graphical Method
*AP and SAT are registered trademarks of the College Board.