Linear and Integer Programming Models
Linear and Integer Programming Models
Linear and
and Integer
Integer
Programming
Programming Models
Models
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
Assumptions of the linear programming
model
◦ The parameter values are known with certainty.
◦ The objective function and constraints exhibit
constant returns to scale.
◦ There are no interactions between the decision
variables (the additivity assumption).
◦ The Continuity assumption: Variables can take
on any value within a given feasible range.
5
The Galaxy Industries Production
Problem –
A Prototype Example
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 than 350.
• Technological 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.
9
A linear programming model
can provide an insight and an
intelligent solution to this problem.
10
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
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+4X22400
X1
500 700
Interior points. Boundary points. Extreme points.
• There are three types of feasible points 17
Solving Graphically for an Optimal
Solution
18
X2 Start at some arbitrary profit, say profit = $2,000...
1000 Then increase the profit, if possible...
...and continue until it becomes infeasible
X1
19
500
The search for an optimal solution
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.
21
Multiple optimal solutions
• For multiple optimal solutions to exist, the objective
function must be parallel to one of the constraints
22
2.4 The Role of Sensitivity
Analysis of the Optimal
Solution
Is the optimal solution sensitive to changes
in input parameters?
23
Sensitivity Analysis of
Objective Function
Coefficients.
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.
24
Sensitivity Analysis of
Objective Function Coefficients.
1000 X2
M
Ma ax 4
x3
.75 X1 +
X 5X
1 +
Ma
5X 2
x8
2
X1
+5
500
X2
Max
2X + 5X
1
2
X1
500 800 25
Sensitivity Analysis of
Objective Function Coefficients.
X2
1000
Ma
x8
X1
Ma
x1
500
0 X1
Ma
x3
+5
.7 5
X1
X2
+5
X2
Complementary slackness
At the optimal solution, either the value of a variable is
zero, or its reduced cost is 0.
27
Sensitivity Analysis of
Right-Hand Side Values
28
Sensitivity Analysis of
Right-Hand Side Values
Anychange to the right hand side of a binding
constraint will change the optimal solution.
29
Assuming there are no other changes to
the input parameters, the change to the
objective function value per unit increase
to a right hand side of a constraint is
called the “Shadow Price”
Shadow Prices
30
The Plastic
constraint X2
When more plastic becomes available (the
plastic constraint is relaxed), the right hand
side of the plastic constraint increases.
1000
2X 1 Maximum profit = $4360
2X 1
+1
+1
x 2<
x 2<
=10
Maximum profit = $4363.4
=10
01
500
00
Shadow price =
4363.40 – 4360.00 = 3.40
Shadow Price – graphical
Production time demonstration X 1
constraint
500
31
Assuming there are no other changes to
the input parameters, the range of
feasibility is
◦ The range of values for a right hand side of a
constraint, in which the shadow prices for the
constraints remain unchanged.
◦ In the range of feasibility the objective function
value changes as follows:
Change in objective value =
[Shadow price][Change in the right hand side
value]
Range of Feasibility
32
The Plastic
Range of Feasibility
constraint X2
1000
x 2<
constraint constraint
X1 + X2 700
500
This is an infeasible solution
Production time
constraint
X1
500 33
The Plastic Range of Feasibility
constraint 2X 1 X2
1000
as the amount of plastic
x 2
increases.
100
0
500
Production time
constraint
X1
500 34
Range of Feasibility
X2
500
2X1 + 1X2 1100
A new active
constraint
X1
500 35
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.
36
Other Post - Optimality Changes
Addition of a constraint.
Deletion of a constraint.
Addition of a variable.
Deletion of a variable.
Changes in the left - hand side
coefficients.
37
2.7 Models Without Unique Optimal
Solutions
45
Infeasible Model
No point, simultaneously,
lies both above line 1 and
below lines 2 and 3
2
.
3 1
46
Unbounded
solution
the Ma
xim
Ob
jec ize
Th ive t
ef Fu
ea nct
reg sib ion
ion le
48
The Navy is considering changing the makeup of the content of
Navy Sea Rations (NSR), the canned food containing certain
minimum quantities of vitamin A, vitamin D, Iron, and other
nutrients. TexFoods is the current supplier. Each 2 ounce portion of
the TexFoods product costs the Navy $0.60 and supplies 20% of
the required vitamin A, 25% of the required vitamin D, and 50% of
the required Iron.
53
Cost Minimization Diet Problem
Decision variables
◦ X1 (X2) -- The number of two-ounce portions of
Texfoods
◦ (Calration) product used in a serving.
The Model
Minimize 0.60X1 + 0.50X2
Cost per 2 oz.
Subject to
20X1 + 50X2 100 Vitamin A
25X1 + 25X2 100 Vitamin D
50X1 + 10X2 100 Iron
% Vitamin A
provided per 2 oz. X1, X2 0
% required
54
The Diet Problem - Graphical solution
10
The Iron constraint
Feasible Region
55
2 4 5
Cost Minimization Diet Problem
Summary of the optimal solution
◦ Texfood product = 1.5 portions (= 3 ounces)
Calration product = 2.5 portions (= 5 ounces)
56
Computer Solution of Linear
Programs With Any Number of
Decision Variables