Linear Programing
Linear Programing
ISE 102
Introduction to Linear
Programming (LP)
Introduction to Linear
Programming
Many managerial decisions involve trying to
make the most effective use of an organization’s
resources. Resources typically include:
Machinery/equipment
Labor
Money
Time
Energy
Raw materials
These resources may be used to produce
Products (machines, furniture, food, or clothing)
Services (airline schedules, advertising policies, or
investment decisions)
Asst. Prof. Dr. Mahmut Ali GÖKÇE, Izmir University of Economics
2 of 52
www.izmirekonomi.edu.tr
Spring, 2007
Brief History of LP
History of LP (contd)
LP Problems
Typical Applications of LP
Aggregate Planning
Develop a production schedule which
satisfies specified sales demands in future periods
satisfies limitations on production capacity
minimizes total production/inventory costs
Scheduling Problem
Produce a workforce schedule which
satisfies minimum staffing requirements
utilizes reasonable shifts for the workers
is least costly
Typical Applications of LP
(contd)
Product Mix (“Blending”) Problem
Develop the product mix which
satisfies restrictions/requirements for customers
does not exceed capacity and resource constraints
results in highest profit
Logistics
Determine a distribution system which
meets customer demand
minimizes transportation costs
Typical Applications of LP
Marketing
(contd)
Determine the media mix which
meets a fixed budget
maximizes advertising effectiveness
Financial Planning
Establish an investment portfolio which
meets the total investment amount
meets any maximum/minimum restrictions of
investing in the available alternatives
maximizes ROI
Asst. Prof. Dr. Mahmut Ali GÖKÇE, Izmir University of Economics
9 of 52
www.izmirekonomi.edu.tr
Spring, 2007
Typical Applications of LP
(contd)
What do these applications have in common?
All are concerned with maximizing or
minimizing some quantity, called the
objective of the problem
All have constraints which limit the degree
to which the objective function can be
pursued
Typical Applications of LP
(contd)at Delta Air Lines
Fleet Assignment
Delta Air Lines flies over 2500 domestic flight legs every
day, using about 450 aircrafts from 10 different fleets
that vary by speed, capacity, amount of noise
generated, etc.
The fleet assignment problem is to match aircrafts (e.g.
Boeing 747, 757, DC-10, or MD80) to flight legs so that
seats are filled with paying passengers
The result?!
Formulating LP Models
An LP model is a model that seeks to maximize or
minimize a linear objective function subject to a
set of constraints
PetCare Problem
PetCare specializes in high quality care for large
dogs. Part of this care includes the assurance that
each dog receives a minimum recommended
amount of protein and fat on a daily basis. Two
different ingredients, Mix 1 and Mix 2, are
combined to create the proper diet for a dog. Each
kg of Mix 1 provides 300 gr of protein, 200 gr of
fat, and costs $.80, while each kg of Mix 2
provides 200 gr of protein, 400 gr of fat, and costs
$.60. If PetCare has a dog that requires at least
1100 gr of protein and 1000 gr of fat, how many
kgs of each mix should be combined to meet the
nutritional requirements at a minimum cost?
Asst. Prof. Dr. Mahmut Ali GÖKÇE, Izmir University of Economics
19 of 52
www.izmirekonomi.edu.tr
Spring, 2007
LP Formulation Steps
PetCare Problem
PetCare specializes in high quality care for large
dogs. Part of this care includes the assurance that
each dog receives a minimum recommended
amount of protein and fat on a daily basis. Two
different ingredients, Mix 1 and Mix 2, are
combined to create the proper diet for a dog. Each
kg of Mix 1 provides 300 gr of protein, 200 gr of
fat, and costs $.80, while each kg of Mix 2
provides 200 gr of protein, 400 gr of fat, and
costs $.60. If PetCare has a dog that requires at
least 1100 gr of protein and 1000 gr of fat, how
many kgs of each mix should be combined to meet
the nutritional requirements at a minimum cost?
Asst. Prof. Dr. Mahmut Ali GÖKÇE, Izmir University of Economics
21 of 52
www.izmirekonomi.edu.tr
Spring, 2007
PetCare: LP Formulation
STEP 1: Understand the Problem
STEP 2: Identify the decision variables
x1 : kgs of mix 1 to be used to feed the dog
x2 : kgs of mix 2 to be used to feed the dog
STEP 3: State the objective function
minimize 0.8 x1 + 0.6 x2 (total cost)
maximize 40 x1 + 25 x2 (objective
function)
A Multi-Period Production
Planning
Sailco CorporationPr.
must determine how many sailboats to produce
during each of the next four quarters. The demand during each of
the next four quarters is as follows:
Quarters 1 2 3 4 .
Demand 40 60 75 25
At the beginning of the first quarter Sailco has an inventory of 10
sailboats.
At the beginning of each quarter Sailco must decide how many
sailboats to produce that quarter. Sailboats produced during a
quarter can be used to meet demand for that quarter.
Capacity Cost .
Regular Time 40 (sailboats) $400/sailboat
Overtime $450/sailboat
Inventory Holding Cost: $20/sailboat
Determine a production schedule to minimize the sum of production
and inventory holding costs during the next four quarters.
Asst. Prof. Dr. Mahmut Ali GÖKÇE, Izmir University of Economics
32 of 52
www.izmirekonomi.edu.tr
Spring, 2007
A Multiperiod PP Problem
(contd)
Defining Decision Variables
R1 : regular time production at quarter 1
R2 : regular time production at quarter 2
…
…
Rt : regular time production at quarter t
Ot : overtime production at quarter t
It : inventory at the end of quarter t
A Multiperiod PP Problem
(contd)
Defining the Constraint Set
10 + R1 + O1 - I1 = 40
I1 + R2 + O2 -1I2 = 60
I2 + R3 + O3 - I3 = 75
I3 + R4 + O4 - I4 = 25
R1 40
R2 40
R3 40
R4 40
LP Summary
2 x1 - x2 0
5 x1 , x2 0
4
(2,4)[180]
0 2.5 3.754
2 5 6 7 X1
Desk
(1) s
Z=15
Z=10 0
0
Asst. Prof. Dr. Mahmut Ali GÖKÇE, Izmir University of Economics
36 of 52
www.izmirekonomi.edu.tr
Spring, 2007
(contd)
Corn
60
Farner Jane (modified)
max 200 x1 + 300 x2
50 s.t x1 + x2 45
45 3 x1 + 2 x2 100
40
2 x1 + 4 x2 120
x1 ≥ 10
(20,20) x1 , x 2 0
30
(10,25)
20 (30,15)
10
(3)
(2) (1)
0
20 33.3 40 45 X1
10
30
50 60
[2000] Whea
[6667] t
Z=7080
Z=6000
Asst. Prof. Dr. Mahmut Ali GÖKÇE, Izmir University of Economics
37 of 52
www.izmirekonomi.edu.tr
Spring, 2007
Infeasible Redundant
Constraint
Asst. Prof. Dr. Mahmut Ali GÖKÇE, Izmir University of Economics
38 of 52
www.izmirekonomi.edu.tr
Spring, 2007