16. Linear Programming
16. Linear Programming
Linear Programming
Linear Programming is a branch of mathematics where we wish to maximize or minimize
a given quantity subject to conditions (constrains) that can be represented by a system of
linear inequalities.
Limitation-
1. Relation among decision variables linear.
2. Answer will not be integer always.
3. Linear programming deals with single objective function. In real life, business
and other works have multiple objective.
4. Ignore the effect of time.
Example-01
A company manufactures two products X and Y, which require the following resources.
The resources are the capacities machine M1, M2, and M3. The available capacities are
50, 25 and 15 hours respectively in the planning period. Product X requires 1 hour of
machine M2 and 1 hour of machine M3. Product Y requires 2 hours of machine M1, 2
hours of machine M2 and I hour of machine M3. The profit contribution of products X and Y
are Rs.5/- and Rs.4/- respectively. Formulate the above as a linear programming model.
Solution:
let x is the number of unit of X Product and y is the number of unit of Y product.
Solution:
Maximization, Z=30x+50y
Condition
2x+y ≤ 16
x+2y ≤ 11
x+3y ≤ 15
x, y ≥ 0
Example-03
Solution:
Maximization, Z=4x+3y+6z
2x+3y+2z ≤ 440
4x+3z ≤ 470
2x+5y+ ≤ 430
x, y, z ≥ 0
Graphical Solution of a LP Problem:-
To solve LP problem with two (sometimes three) variables are consists of two phases:
Findings the values of the decision variables for which all the constraints are met
(feasible region)
Determine the optimal solution from all the points in the feasible region
Example-04
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 6 hours to make a table and 3 hours to make a chair. Customer
demand requires that he makes at least 3 times as many chairs as tables. Tables take up
4 times as much storage space as chairs and there is room for at most 4 tables each
week.
Formulate this problem as a linear programming problem and solve it graphically.
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
(xC/4) + xT ≤ 4
all variables ≥ 0
Objective
Maximization, 30xT + 10xC
The graphical representation of the problem is given below and from that we have that
the solution lies at the intersection of
(xC/4) + xT = 4 and 6xT + 3xC = 40
Solving these two equations simultaneously we get xT = 1.333, xC = 10.667 and the
corresponding profit = £146.667
*Thank You *