OT_Linear_programming
OT_Linear_programming
Dr. S. B. Matekar,
Associate Professor,
Pimpri Chinchwad College of Engineering
Unit 2: Linear Programming
Simplex algorithm,
2
Linear Programming (LP)
It is one of the optimization techniques for solving engineering
problems. The term ‘linear’ implies that the objective function and
constraints are ‘linear’ functions of ‘nonnegative’ decision
variables.
3
Graphical solution
An organization is manufacturing two products P1 and P2. The profits per
ton of the two products are ₹ 50 and ₹ 60 respectively. Both the products
require processing in three types of machines. The following table indicates
available machine hours per week and the time required on each machine for
one ton of P1 and P2. Find the product mix that will maximize profit.
maximize
Total available
Machine Product 1 Product 2 machine Constraints,
4
Graphical solution
5
Simplex method
Constraints,
maximize
Constraints,
Objective function
6
Constraints,
Objective function
7
8
Linear Programming
A company assembles three types of toys, using three operations. Available operation
time for the three operations are 430, 460 and 420 minutes respectively. The profit
per toy is ₹. 3, ₹. 2 and ₹. 5 respectively. The assembly time per operation is shown in
table. Determine optimal production for maximum profit to the company.
maximize
Operation
Toy 1 Toy 2 Toy 3
time Constraints,
1 2 1 430
3 0 2 460
1 4 0 420
9
Maximization Problem
maximize maximize
Constraints, Constraints,
10
Minimization Problem
minimize
Constraints,
11
Artificial variable
Slack variables
Hira Gupta Page 162
• Added when the constraint is ≤
• Negated when the constraint is ≥
Artificial variables
• In many linear programming problems the constraints are ≥ of = type in
such cases the artificial variables are added.
• These variables are fictitious and have no physical meaning.
• They assume the role of slack variables only to be replaced in the later
iterations.
• Thus, they serve the purpose to get the starting basic feasible solution so
that simplex algorithm can be applied.
12
Artificial variable
maximize
Constraints,
13
Two phase method
Phase I
(minimize)
Hira Gupta Page 204
At the end of nth table the artificial variable driven out and minimization is achieved
Phase II
(maximize)
14
maximize
Constraints, Constraints,
18
Primal Dual Simplex Method
19
Primal Dual Simplex Method
20
Primal Dual Simplex Method
21
Primal Dual Simplex Method
22
23
Constraints,
24
Phase I OF minimize
25
minimize maximize
Constraints,
26
Sensitivity analysis
When the optimal solution of LPP has been attained, two situations may arise:
1. During formulation it is assumed that the constants of the parameters are known,
certain and does not change over the time. But, in actual this is a dynamic situation.
3. A design variable or constraint has been omitted while formulating the problem.
A company assembles three types of toys, using three operations. Available operation time for the
three operations are 430, 460 and 420 minutes respectively. The profit per toy is ₹. 3, ₹. 2 and ₹. 5
respectively. The assembly time per operation is shown in table. Determine optimal production for
maximum profit to the company.
Constraints,
Operation
Toy 1 Toy 2 Toy 3
time
maximize
1 2 1 430
3 0 2 460
27
1 4 0 420
Sensitivity analysis
Changes may be discrete or continuous
28
Sensitivity analysis
29
Sensitivity analysis
30
Sensitivity analysis: Case 1
Subject to
31
32
33