Linear Programming Linear Programming
Linear Programming Linear Programming
Chapter 2:
2:
Linear
Linear Programming
Programming
2010-2011
Chapter Outline
Part I:
Introduction
The Linear Programming Model
Examples of Linear Programming Problems
Developing Linear Programming Models
Graphical Solution to LP Problems
Introduction
Mathematical programming is used to find the best or optimal
solution to a problem that requires a decision or set of
decisions about how best to use a set of limited resources to
achieve a state goal of objectives.
Example:
Shirts 20 70 12 8.00
Blouses 60 60 4 12.00
Profit got = 8 x1 + 12 x2
z = 8 x1 + 12 x2
satisfying the constraints:
20 x1 + 60 x2 ≤ 25 40 60
70 x1 + 60 x2 ≤ 35 40 60
12 x1 + 4 x2 ≤ 5 40 60
x1, x2 ≥ 0, integers
Introduction
Any values of x1, x2 that satisfy all the constraints of the model is
The decision variables, xI, x2, ..., xn, represent levels of n competing
activities
The Linear Programming Model
An LPP satisfies the three basic properties:
1. Proportionality: It means, the contributions of each
decision variable in the objective function and its
requirements in the constraints are directly proportional to
the value of the variable
2. Additivity: This property requires the contribution of all
the variables in the objective function and its constraints
to be the direct sum of individual contributions of each
variables.
3. Certainty: All the objective and constraint coefficient of
the LP model are deterministic. This mean that they are
known constants- a rare occurrence in real life.
Examples of LP Problems
1. A Product Mix Problem
The cost of shipping a unit from the ith origin to the jth
destination is known for all combinations of origins and
destinations.
Steps Involved:
The total amount of raw material available per day for both products is
15751b. The total storage space for all products is 1500 ft2, and a
maximum of 7 hours per day can be used for production.
Developing LP Model
Example: Product Mix Problem
All products manufactured are shipped out of the storage area at the end
of the day. Therefore, the two products must share the total raw material,
storage space, and production time. The company wants to determine
how many units of each product to produce per day to maximize its
total income
Solution
• The company has decided that it wants to maximize its sale income,
which depends on the number of units of product I and II that it
produces.
• Therefore, the decision variables, x1 and x2 can be the number of units
of products I and II, respectively, produced per day.
Developing LP Model
• The object is to maximize the equation:
Z = 13x1 + 11x2
subject to the constraints on storage space, raw materials, and
production time.
• Each unit of product I requires 4 ft2 of storage space and each unit of
product II requires 5 ft2. Thus a total of 4x1 + 5x2 ft2 of storage space is
needed each day. This space must be less than or equal to the
available storage space, which is 1500 ft2. Therefore,
4X1 + 5X2 1500
• Similarly, each unit of product I and II produced requires 5 and 3 1bs,
respectively, of raw material. Hence a total of 5xl + 3x2 Ib of raw
material is used.
Developing LP Model
• This must be less than or equal to the total amount of raw material
available, which is 1575 Ib. Therefore,
5x1 + 3x2 1575
• Prouct I can be produced at the rate of 60 units per hour. Therefore, it
must take I minute or 1/60 of an hour to produce I unit. Similarly, it
requires 1/30 of an hour to produce 1 unit of product II. Hence a total of
x1/60 + x2/30 hours is required for the daily production. This quantity
must be less than or equal to the total production time available each
day. Therefore,
x1 / 60 + x2 / 30 7
or x1 + 2x2 420
• Finally, the company cannot produce a negative quantity of any
product, therefore x1 and x2 must each be greater than or equal to
zero.
Developing LP Model
Graphical Solution
+ Example (2):
Reddy Mikks produce both interior and exterior paints from two raw
materials, M1 and M2.
The following table provides the basic data of the problem:
Developing LP Model
Example Problem
A market survey indicates that the daily demand for the interior paint
cannot exceed that for extirior paint by more than one ton. Also, the
maximam daily demand for the interior paint is 2 tons. Reddy Mikks
wants to determine the optimum(best) product mix of the interior and
exterior paints that maximizes the total daily profit.
Solution
• Reddy Mikks has decided that it wants to maximize its total daily profit,
which depends on the product mix of the interior and exterior paints.
• Therefore, the decision variables, x1 and x2 can be the ton of exterior
and interior paints, respectively, produced per day.
Developing LP Model
• The object is to maximize the equation:
» Z = 5x1 + 4x2
• The daily raw material M1 is 6tons per ton of exterior paint and 4 tons
per ton of interior paint must be equal the daily avaliability of raw
material M1 (24 ton) , Therefore,
» 6x1+ 4x2 24
• Similary, The daily usage of raw material M2 is 1ton per ton of exterior
paint and 2 tons per ton of interior paint must be equal the daily
aviliability or raw material M2 (6 tons), Therefore,
» x1+ 2x2 6
Developing LP Model
• The first demand restriction stipulates that the excess the daily
production of interior over exterior paint should not exceed 1 ton,
Therefore ,
x2 - x1 1
• The second demand restrection stipulates that the maximum daily
demand of interior paint is limited to 2 tons. Therefore,
x2 2
Developing LP Model
Graphical Solution
(2 x1 + x2 ) c ≤ 400 c
x1 ≤ 150
x2 ≤ 200
x1, x2 ≥ 0, integers
Developing LP Model
Example (4):
Day 1 2 3 4 5
Subject to
x1 = 80, x2 = 50, x3 +y1 =100,
x4 + y2 = 80, x5 + y3 = 150,
Minimize z x1 x2 x3 x4 x5 x6 x7
Subject to
x1 x4 x5 x6 x7 10 (Mon) x1 x2 x3 x4 x7 12 (Thu)
x1 x2 x5 x6 x7 6 (Tue) x1 x2 x3 x4 x5 7 (Fri)
x1 x2 x3 x6 x7 8 (Wed) x2 x3 x4 x5 x6 9 (Sat)
x3 x4 x5 x6 x7 4 (Sun)
The Graphical Solution
Example:
production .
Graphical LP Solution Model
Let the company produce x1 type I motors and x2 type II motors per
day.
Subject to x1 + 3 x2 15
2 x1 + 2 x2 20
3 x1 + 2 x2 24
x 1, x 2 0
Graphical Solution of Feed Mix Problem
(0,12)
z = 26
z = 30
z= 36
z = 39
(4,6)
z = 42
z = 22.5
Minimum at (7.5,2.5) (15,0)
Graphical LP Solution Model (5)
Maximize z = 2x1 + x2
Subject to x1 + x2 ≤ 40
4 x1 + x2 ≤ 100
x1, x2 ≥ 0
(0,40)
z maximum at
(20,20)
(25,0)
The Graphical Solution
Graphical Solution
Solution
We can consider that,
Subject to constrains:
The Graphical Solution