Handouts Operational Research Chap2-Part1
Handouts Operational Research Chap2-Part1
1
2.1 Introduction to Linear Programming
• A Linear Programming model seeks to
maximize or minimize a linear function,
subject to a set of linear constraints.
• The linear model consists of the following
components:
– A set of decision variables.
– An objective function.
– A set of constraints.
2
Introduction to Linear Programming
• The Importance of Linear Programming
– Many real world problems lend themselves to linear
programming modeling.
– Many real world problems can be approximated by linear
models.
– There are well-known successful applications in:
• Manufacturing
• Marketing
• Finance (investment)
• Advertising
• Agriculture
3
Introduction to Linear Programming
• The Importance of Linear Programming
– There are efficient solution techniques that solve linear
programming models.
– The output generated from linear programming packages
provides useful “what if” analysis.
4
Introduction to Linear Programming
6
The Galaxy Industries Production Problem –
A Prototype Example
• Marketing requirement
– Total production cannot exceed 700 dozens.
– Number of dozens of Space Rays cannot
exceed number of dozens of Zappers by more
• Technological
than 350. input
– Space Rays requires 2 pounds of plastic and
3 minutes of labor per dozen.
– Zappers requires 1 pound of plastic and
4 minutes of labor per dozen. 7
The Galaxy Industries Production Problem –
A Prototype Example
• The current production plan calls for:
– Producing as much as possible of the more profitable
product, Space Ray ($8 profit per dozen).
– Use resources left over to produce Zappers ($5 profit
per dozen), while remaining within the marketing
guidelines.
• The current production plan consists of:
Space Rays = 450 dozen 8(450) + 5(100)
Zapper = 100 dozen
Profit = $4100 per week
8
Management is seeking a
production schedule that
will increase the company’s
profit.
9
A linear programming model
can provide an insight and an
intelligent solution to this problem.
10
The Galaxy Linear Programming Model
• Decisions variables:
– X1 = Weekly production level of Space Rays (in
dozens)
– X2 = Weekly production level of Zappers (in
dozens).
• Objective Function:
– Weekly profit, to be maximized
11
The Galaxy Linear Programming Model
FEASIBLE REGION
13
Using a graphical presentation
we can represent all the
constraints,
the objective function, and the
three
types of feasible points.
14
Graphical Analysis – the Feasible Region
X2
X1
15
Graphical Analysis – the Feasible Region
X2
Infeasible
Production Feasible
Time
3X1+4X2 ≤ 2400 X1
500 700
16
Graphical Analysis – the Feasible
Region
X2
1000 The Plastic constraint
2X1+X2 ≤ 1000
700 Total production constraint:
X1+X2 ≤ 700 (redundant)
500
Infeasible
Production mix
constraint:
Production Feasible X1-X2 ≤ 350
Time
3X1+4X2≤ 2400
X1
500 700
Interior points. Boundary points. Extreme points.
• There are three types of feasible points 17
Solving Graphically for an Optimal Solution
X1
18
500
Summary of the optimal solution
Space Rays = 320 dozen
Zappers = 360 dozen
Profit = $4360
– This solution utilizes all the plastic and all the production
hours.
20
Multiple optimal solutions
• For multiple optimal solutions to exist, the objective
function must be parallel to one of the constraints
21
2.4 The Role of Sensitivity
Analysis of the Optimal
Solution
• Is the optimal solution sensitive to changes
in input parameters?
• Range of Optimality
– The optimal solution will remain unchanged as
long as
• An objective function coefficient lies within its range of
optimality
• There are no changes in any other input parameters.
500
X1
24
500 800
Sensitivity Analysis of
Objective
X
Function Coefficients.
1000 2
500
25
400 600 800 X1
• Reduced cost
Assuming there are no other changes to the input
parameters, the reduced cost for a variable Xj that has a
value of “0” at the optimal solution is:
– The negative of the objective coefficient increase of the
variable Xj (-∆Cj) necessary for the variable to be positive
in the optimal solution
– Alternatively, it is the change in the objective value per
unit increase of Xj.
• Complementary slackness
At the optimal solution, either the value of a variable is
zero, or its reduced cost is 0.
26
Sensitivity Analysis of
Right-Hand Side Values
29
Shadow Price – graphical demonstration
The Plastic
constraint X2
When more plastic becomes available (the
plastic constraint is relaxed), the right hand
side of the plastic constraint increases.
1000
Production time X1
constraint
500 30
Range of Feasibility
X1
500 32
The Plastic
Range of Feasibility
constraint X2
500
Production time
constraint
X1
500 33
Range of Feasibility
X2
500
A new active
constraint
X1
500 34
The correct interpretation of shadow prices
– Sunk costs: The shadow price is the value of
an extra unit of the resource, since the cost of
the resource is not included in the calculation of
the objective function coefficient.
• Addition of a constraint.
• Deletion of a constraint.
• Addition of a variable.
• Deletion of a variable.
• Changes in the left - hand side coefficients.
36