Professional Documents
Culture Documents
1
BITS Pilani
Pilani|Dubai|Goa|Hyderabad
Contact Session 1
Introduction to Linear Programming
2
Text Book
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Course Highlights
Focus on
• Problem formulation
• Solution technique
• Solution interpretation
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Course Coverage
Topic Chapter
Linear Programming 7,8, 9, 10, 12
Integer Programming 11
Waiting Line Models 15
Inventory Models 14
Simulation 16
Markov Process 17
Decision Analysis 4
Utility and Game 5
Introduction to forecasting 6
Chapter no 2, 3 and 13 are not in syllabus. 5
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Teaching Methodology
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Evaluation Scheme:
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Important links and information
Elearn portal: https://elearn.bits-pilani.ac.in
Students are expected to visit the Elearn portal on a regular
basis and stay up to date with the latest announcements and
deadlines.
Contact sessions: Students should attend the online lectures as
per the schedule provided on the Elearn portal.
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Introduction to Linear Programming
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
A Simple Maximization Problem
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
A Simple Maximization Problem
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Linear Programming (LP) Problem
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Linear Programming
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Linear Programming (LP) Problem
The maximization or minimization of some quantity is the
objective in all linear programming problems.
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Problem Formulation
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Guidelines for Model Formulation
Understand the problem thoroughly.
Describe the objective.
Describe each constraint.
Define the decision variables.
Write the objective in terms of the decision variables.
Write the constraints in terms of the decision variables.
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Example
A furniture makers produces desks, chairs and
racks. He has 100 sq ft of wood available.
Desk requires 0.8 sq ft
Chair requires 0.4 sq ft
Rack requires 0.5 sq ft
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
650 man-hours are available.
Desk requires 5 hrs.
Chairs requires 3 hours
Rack requires 3 hours
Capacity of storing is 1260 sq ft.
Area required by desk 9 sq. ft.
Area requires by chair 6 sq ft.
Area requires by rack 9 sq ft.
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Market profit – value of
Desk of Rs. 20, Chair of Rs. 11, Rack of Rs. 15
Determine how many desks, chairs and racks should be made to
maximize the profit.
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Solution
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
BITS Pilani
Pilani|Dubai|Goa|Hyderabad
Graphical Solution
23
Product Mix Formulation
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
First Constraint Graphed
x2
6 s.t. x1 < 6
Shaded region
5 contains all 2x1 + 3x2 < 19
4 feasible points x1 + x2 < 8
for this constraint
3
2 (6, 0) x1 > 0 and x2 > 0
1
x1
1 2 3 4 5 6 7 8 9 10
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Second Constraint
Graphed
x2
8 (0, 6 1/3)
Max 5x1 + 7x2
7
6 s.t. x1 < 6
2x1 + 3x2 = 19
5 2x1 + 3x2 < 19
4 x1 + x2 < 8
Shaded
3
region contains
2 all feasible points (9 1/2, 0)
for this constraint
x1 > 0 and x2 > 0
1
x1
1 2 3 4 5 6 7 8 9 10
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Third Constraint Graphed
x2
(0, 8)
Max 5x1 + 7x2
8
7
6 x1 + x 2 = 8 s.t. x1 < 6
5 2x1 + 3x2 < 19
4 x1 + x2 < 8
Shaded
3
region contains
2 all feasible points x1 > 0 and x2 > 0
for this constraint (8, 0)
1
x1
1 2 3 4 5 6 7 8 9 10
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Combined-Constraint Graph Showing Feasible Region
x2
x1 + x2 = 8
8 Max 5x1 + 7x2
7
x x1 = 6
6 s.t. x1 < 6
5 2x1 + 3x2 < 19
4
x x1 + x2 < 8
3
Feasible 2x1 + 3x2 = 19
2 Region x
x1 > 0 and x2 > 0
1
x1
x x
1 2 3 4 5 6 7 8 9 10
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Objective Function Line: 5x1 + 7x2 = 35
x2
Max 5x1 + 7x2
8
7
(0, 5)
6 5x1 + 7x2 = 35
5
s.t. x1 < 6
4 2x1 + 3x2 < 19
3 x1 + x2 < 8
2
(7, 0)
1 x1 > 0 and x2 > 0
x1
1 2 3 4 5 6 7 8 9 10
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Selected Objective Function Lines
x2
8 8
7 7
(0, 5) 5x1 + 7x2 = 35
6 5x1 + 7x2 = 35 6
5 5 5x1 + 7x2 = 39
4 4
3 3 5x1 + 7x2 = 42
2 2
(7, 0)
1 1
x1
1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Optimal Solution
x2
Maximum
Objective Function Line
8 5x1 + 7x2 = 46
7
x
Max 5x1 + 7x2
Optimal Solution
6
(x1 = 5, x2 = 3) s.t. x1 < 6
5
4 2x1 + 3x2 < 19
x
3 x1 + x2 < 8
2 x x1 > 0 and x2 >0
1
x1
x x
1 2 3 4 5 6 7 8 9 10
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Extreme Points and the Optimal
Solution
The corners or vertices of the feasible region are referred to as
the extreme points.
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Optimal Solution Max 5x1 + 7x2
x2
s.t. x1 < 6
8 2x1 + 3x2 < 19
7
x x1 + x2 < 8
6 Optimal Solution
(x1 = 5, x2 = 3) x1 > 0 and x2 >0
5
4 x
3
What are the binding constraints?
2
Constraints 2 and 3
x
Any non-binding constraint?
1
x1
Constraint 1
x x
1 2 3 4 5 6 7 8 9 10
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
A Simple Minimization Problem
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
The Feasible Region
x2
6
Min 5x1 + 2x2 Feasible Region
5
4x1 - x2 > 12
s.t. 2x1 + 5x2 > 10 4
4x1 - x2 > 12 3
x1 + x2 > 4
x1 + x2 > 4
2 2x1 + 5x2 > 10
x1, x2 > 0 1
x1
1 2 3 4 5 6
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Objective Function Graphed
x1, x2 > 0 4
x1 + x2 > 4
Should the objective fn move left or right?
3
Left!
2 2x1 + 5x2 > 10
Solve the two equations
x1 = 16/5, x2 = 4/5 1
x1
1 2 3 4 5 6
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Optimal Solution
x2
6
4x1 - x2 > 12
5
x1 + x2 > 4
4
Optimal Solution:
3
x1 = 16/5, x2 = 4/5,
2 5x1 + 2x2 = 17.6
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Binding Constraint
x2
6
4x1 - x2 > 12
5
x1 + x2 > 4
4
Optimal Solution:
3 x1 = 16/5, x2 = 4/5,
5x1 + 2x2 = 17.6
2
2x1 + 5x2 > 10
1
x1
1 2 3 4 5 6
20-07-2019 BA ZC412 Rakhee BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956