LP Formulation
LP Formulation
Programming
Chapter Two
Hamdy Taha
1 Maha El-Ashram
• A LP model consists of 3 main components:
2 Maha El-Ashram
Formulating LP Problems
• One of the most common LP applications is the product
mix problem.
• Two or more products are produced using limited
resources such as personnel, machines, and raw
materials.
• The profit that the firm seeks to maximize is based on
the profit contribution per unit of each product.
3 Maha El-Ashram
Example 1 : Flair Furniture Company
The Flair Furniture Company produces inexpensive tables
and chairs.
Processes are similar in that both require a certain amount
of hours of carpentry work and in the painting and
varnishing department.
Each table takes 4 hours of carpentry and 2 hours of
painting and varnishing.
Each chair requires 3 of carpentry and 1 hour of painting
and varnishing.
There are 240 hours of carpentry time available and 100
hours of painting and varnishing.
Each table yields a profit of $70 and each chair a profit of
$50.
4 Maha El-Ashram
Flair Furniture Company Data
The company wants to determine the best combination of tables
and chairs to produce to reach the maximum profit.
HOURS REQUIRED
TO PRODUCE 1
UNIT
AVAILABLE
HOURS THIS
DEPARTMENT TABLES CHAIRS WEEK
Carpentry 4 3 240
Painting and
2 1 100
varnishing
Profit per unit $70 $50
5 Maha El-Ashram
Flair Furniture Company
The objective is to:
Maximize profit
6 Maha El-Ashram
Flair Furniture Company
7 Maha El-Ashram
Flair Furniture Company
Similarly,
Painting and varnishing time used
≤ Painting and varnishing time available.
2 x1 + 1x2 ≤ 100 (hours of painting and varnishing time)
8 Maha El-Ashram
Flair Furniture Company
The values for x1 and x2 must be nonnegative.
x1 ≥ 0 (number of tables produced is greater
than or equal to 0)
x2 ≥ 0 (number of chairs produced is greater
than or equal to 0)
The complete problem stated mathematically:
Max Z = 70 x1 + 50 x2
subject to
4x1 + 3x2 ≤ 240
2 x1 + x2 ≤ 100
x1 , x2 ≥ 0
9 Maha El-Ashram
Linear Programming model
Find x j that :
n
Max. (or Min.) Z c j x j
j 1
such that :
n
a x
j 1
ij j or or bi i 1,...., m
xj 0 j 1,....., n
10 Maha El-Ashram
Example 2: The Reddy Mikks Company
Max . Z 5 x 1 4 x 2
S .t .
6 x 1 4 x 2 24
x1 2 x 2 6
x1 x 2 1
x2 2
x1 , x 2 0
12 Maha El-Ashram
Example 2: The Whitt Window Company
13 Maha El-Ashram
Let x1 be the number of wood-framed windows produced
x2 be the number of aluminum-framed windows produced
Max . Z 180 x 1 90 x 2
S .t .
x1 6
x2 4
6 x 1 8 x 2 48
x1 , x 2 0
14 Maha El-Ashram
Example 3: The Diet Problem
• Ozark Farms uses at least 800 lb of special feed daily. The
special feed is a mixture of corn and soybean meal with the
following compositions:
Lb per lb of feedstuff
Feedstuff Protein Fiber Cost ($/lb)
Corn o.o9 0.02 0.30
Soybean meal 0.60 0.06 0.90
15 Maha El-Ashram
Let x1 be the number of pounds (lb) of corn in the daily mix
x2 be the number of pounds (lb) of soybean meal in the daily
mix
Min .Z 0 . 30 x1 0 . 90 x 2
S .t .
x1 x 2 800
0 . 09 x1 0 . 6 x 2 0 . 30 x1 x 2
0 . 02 x1 0 . 06 x 2 0 . 05 x1 x 2
x1 , x 2 0
16 Maha El-Ashram
After doing the required simplifications for the constraints, the
problem becomes:
Min .Z 0 . 30 x1 0 . 90 x 2
S .t .
x1 x 2 800
0 . 03 x1 0 . 01 x 2 0
0 . 21 x1 0 . 3 x 2 0
x1 , x 2 0
17 Maha El-Ashram