Module 2
Module 2
QUANTITATIVE TECHNIQUES
MODULE 2 – INTRODUCTION TO LINEAR PROGRAMMING
RISHABH RATHORE
INTRODUCTION
• The general LP problem with 𝑛 decision variable and 𝑚 constraints can be stated in the
following form:
• Find the values of decision variables 𝑥1 , 𝑥2 . , … , 𝑥𝑛 so as to
Optimize 𝑀𝑎𝑥. 𝑜𝑟 𝑀𝑖𝑛. 𝑍 = 𝑐1 𝑥1 + 𝑐2 𝑥2 + … … + 𝑐𝑛 𝑥𝑛
Subject to the linear constrains
𝑎11 𝑥1 + 𝑎12 𝑥2 + … … + 𝑎1𝑛 𝑥𝑛 (≤, =, ≥)𝑏1
𝑎21 𝑥1 + 𝑎22 𝑥2 + … … + 𝑎2𝑛 𝑥𝑛 (≤, =, ≥)𝑏2
⋮ ⋮ ⋮ ⋮
𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + … … + 𝑎𝑚𝑛 𝑥𝑛 (≤, =, ≥)𝑏𝑚
𝑥1 , 𝑥2 . , … , 𝑥𝑛 ≥ 0
EXAMPLE
• The first two points are generally two points at which the line intersects the 𝑥1 and 𝑥2 axes.
• For example, when 𝑥1 = 0, we get 6𝑥2 = 360 or 𝑥2 = 60. Similarly, when 𝑥2 = 0, 4𝑥1 = 360 or
𝑥1 = 90
• For example, when 𝑥1 = 0, we get 6𝑥2 = 360 or 𝑥2 = 60. Similarly, when 𝑥2 = 0, 4𝑥1 = 360 or 𝑥1 = 90
• These two points are then connected by a straight line.
• But the question is: where are these points satisfying 4𝑥1 + 6𝑥2 ≤ 360. any point above the constraints
violates the inequality conditions.
• But any points below the line does not violate the constraints.
• Thus, the inequality constraints and non-negativity conditions can only be satisfied by the shaded area
(feasible region) as shown in figure.
• Similarly, the constraints 3𝑥1 + 0𝑥2 ≤ 180 and 0𝑥1 + 5𝑥2 ≤ 200 are also plotted on the graph and are
indicated by shaded area as shown in following figure
• Since all the constraints have been graphed, the area which is bounded by all the constraints line including all
the boundary points is called the feasible region (or solution space)
• The feasible region is by the shaded area OABCD
• Since the optimal value of the objective function occurs at one of the extreme points of the feasible region,
it is necessary to determine their coordinates.
• The coordinates of extreme points of the feasible region are 𝑂 = 0,0 , 𝐴 = 60,0 , 𝐵 = 60,20 , 𝐶 =
30,40 , 𝐷 = (0,40)
Extreme Point Coordinates Objective function
(𝑥1 , 𝑥𝟐 ) 𝑍 = 15𝑥1 + 10𝑥2
O 0,0 15 0 + 10 0 = 0
A 60,0 15 60 + 10 0 = 900
B 60,20 15 60 + 10 20 = 1100
C 30,40 15 30 + 10 40 = 850
D (0,40) 15 0 + 10 40 = 400
• Since we desire Z to be maximum, from the above table, the maximum value of Z is 1100 which is achieved
at point extreme 𝐵 = 60,20
• Hence the optimal solution to the given LP problem is 𝑥1 = 60 and 𝑥2 = 20
• Optimal solution of the LPP is 𝑥1 = 60 and 𝑥2 = 20 and 𝑍 = 1100
EXAMPLES
• Since we desire Z to be minimum, from the above table, the minimum value of Z is 13 which is achieved at
point extreme𝐶 = 1,5
• Hence the optimal solution to the given LP problem is 𝑥1 = 1 and 𝑥2 = 5
• Optimal solution of the LPP is 𝑥1 = 1 and 𝑥2 = 5 and 𝑍 = 13
SPECIAL CASES IN LINEAR PROGRAMMING –
ALTERNATIVE (OR MULTIPLE) SOLUTIONS
• The linear programming problems discussed in the previous section possessed unique
solutions.
• This was because the optimal value occurred at one of the extreme points (corner
points). But situations may arise, when the optimal solution obtained is not unique.
• The presence of multiple solutions is illustrated through the following example.
𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍 = 10𝑥1 + 6𝑥2 (Objective function)
𝑆𝑢𝑏𝑗𝑒𝑐𝑡 𝑡𝑜 5𝑥1 + 3𝑥2 ≤ 30
𝑥1 + 2𝑥2 ≤ 18
𝑥1 ≥ 0 𝑎𝑛𝑑 𝑥2 ≥ 0
SPECIAL CASES IN LINEAR PROGRAMMING –
ALTERNATIVE (OR MULTIPLE) SOLUTIONS
• Infeasibility is the condition that arises when there is no solution of LP problem that
satisfies all the constraints simultaneously.
• There would be no unique feasible region.
• Infeasibility solely depends on the constraints and has nothing to do with objective
function
• This type of a situation requires the ability of the decision-maker to resolve the
conflicting requirements of resources so that a decision that is acceptable to all section
of the organization can be made
SPECIAL CASES IN LINEAR PROGRAMMING –
INFEASIBLE SOLUTION
• A redundant constraint is one that does not affect the feasible solution
region and thus redundancy of any constraint does not cause any difficulty
in solving an LP problem graphically.
MIXED CONSTRAINTS PROBLEM
• What happens when we need more decision variables and more problem constraints?
• We use an algebraic method called the simplex method, which was developed by George
B. DANTZIG (1914-2005) in 1947 while on assignment with the U.S. Department of the
air force
SIMPLEX METHOD
• The nonnegativity constraints are left as inequalities because they are treated separately.. This
conversion is accomplished by introducing slack variables.
• Slack variables are used to convert inequality into equality. (An unused quantity of resources, it is
added to ≤ (less than) type of constraints.
• Surplus variables are known as negative slack variables. It is added ≥ (greater than) type of
constraints. (Amount by which solution value exceeds)
• Artificial variables are added with = and ≥ sign. Artificial variables have no physical sense.
EXAMPLE
• An augmented solution is a solution for the original variables (the decision variables)
that has been augmented by the corresponding values of the slack variables.
For example, augmenting the solution (30 ,12) in the example yields the augmented
solution (30, 12, 168, 90, 140) because the corresponding values of the slack variables are
s1 = 168, s2 = 90 and s3 = 140
• A basic solution is an augmented corner-point solution. (feasible or infeasible)
• A basic feasible (BF) solution is an augmented CPF solution. (only feasible)
BASIC AND NONBASIC VARIABLES
• Basic variables are selected arbitrarily with the restriction that there be as many basic
variables as there are equations.The remaining variables are non-basic variables.
x1 + 2 x2 + s1 = 32
3x1 + 4 x2 + s2 = 84
• This system has two equations, we can select any two of the four variables as basic
variables.The remaining two variables are then non-basic variables.
EXAMPLE
𝑥1 ≥ 0 𝑎𝑛𝑑 𝑥2 ≥ 0 𝑥1 ≥ 0 , 𝑥2 ≥ 0, s1 ≥ 0, s2 ≥ 0, and s3 ≥ 0
STANDARD FORMAT OF TABLE
𝑪𝒋 →
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min
𝑩 Ratio
STANDARD FORMAT OF TABLE
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min
𝑩 Ratio
0 𝒔𝟏 4 6 1 0 0 360
0 𝒔𝟐 3 0 0 1 0 180
0 𝒔𝟑 0 5 0 0 1 200
𝑧 0 0 0 0 0
𝑪𝒋 -𝒁𝒋 15 10 0 0 0
STANDARD FORMAT OF TABLE – ITERATION 1
(ENTERING VARIABLE)
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min
𝑩 Ratio
0 𝒔𝟏 4 6 1 0 0 360
0 𝒔𝟐 3 0 0 1 0 180
0 𝒔𝟑 0 5 0 0 1 200
𝑧 0 0 0 0 0
𝑪𝒋 -𝒁𝒋 15 10 0 0 0
Pivot column
STANDARD FORMAT OF TABLE – ITERATION 1
(ENTERING VARIABLE)
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min
𝑩 Ratio
0 𝒔𝟏 4 6 1 0 0 360
0 𝒔𝟐 3 0 0 1 0 180
0 𝒔𝟑 0 5 0 0 1 200
𝑧 0 0 0 0 0
𝑪𝒋 -𝒁𝒋 15 10 0 0 0
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0
15 𝒙𝟏 1
0 𝒔𝟑 0
𝑧
𝑪𝒋 -𝒁𝒋
STANDARD FORMAT OF TABLE – ITERATION 2
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0
15 𝒙𝟏 1
0 𝒔𝟑 0
𝑧 15
𝑪𝒋 -𝒁𝒋 0
STANDARD FORMAT OF TABLE – ITERATION 2
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0 6 1 -(4/3) 0 120
15 𝒙𝟏 1 0 0 1/3 0 60
0 𝒔𝟑 0 5 0 0 1 200
𝑧 15
𝑪𝒋 -𝒁𝒋 0
STANDARD FORMAT OF TABLE – ITERATION 2
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0 6 1 -(4/3) 0 120
15 𝒙𝟏 1 0 0 1/3 0 60
0 𝒔𝟑 0 5 0 0 1 200
𝑧 15 0 0 0 0
𝑪𝒋 -𝒁𝒋 0
STANDARD FORMAT OF TABLE – ITERATION 2
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0 6 1 -(4/3) 0 120
15 𝒙𝟏 1 0 0 1/3 0 60
0 𝒔𝟑 0 5 0 0 1 200
𝑧 15 0 0 0 0
𝑪𝒋 -𝒁𝒋 0 10 0 0 0
STANDARD FORMAT OF TABLE – ITERATION 2
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0 6 1 -(4/3) 0 120
15 𝒙𝟏 1 0 0 1/3 0 60
0 𝒔𝟑 0 5 0 0 1 200
𝑧 15 0 0 0 0
𝑪𝒋 -𝒁𝒋 0 10 0 0 0
Pivot column
STANDARD FORMAT OF TABLE – ITERATION 2
(EXIT VARIABLE)
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0 6 1 -(4/3) 0 120
15 𝒙𝟏 1 0 0 1/3 0 60
0 𝒔𝟑 0 5 0 0 1 200
𝑧 15 0 0 0 0
𝑪𝒋 -𝒁𝒋 0 10 0 0 0
Pivot column
STANDARD FORMAT OF TABLE – ITERATION 2
(EXIT VARIABLE)
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0 6 1 -(4/3) 0 120 (120/6)=20
15 𝒙𝟏 1 0 0 1/3 0 60 -
0 𝒔𝟑 0 5 0 0 1 200 (200/5)=40
𝑧 15 0 0 0 0
𝑪𝒋 -𝒁𝒋 0 10 0 -1/3 0
Pivot column
STANDARD FORMAT OF TABLE – ITERATION 2
(EXIT VARIABLE)
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0 6 1 -(4/3) 0 120 (120/6)=20
15 𝒙𝟏 1 0 0 1/3 0 60 - Pivot row
0 𝒔𝟑 0 5 0 0 1 200 (200/5)=40
𝑧 15 0 0 0 0
𝑪𝒋 -𝒁𝒋 0 10 0 -1/3 0
Pivot column
STANDARD FORMAT OF TABLE – ITERATION 2
(EXIT VARIABLE)
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0 6 1 -(4/3) 0 120 (120/6)=20
15 𝒙𝟏 1 0 0 1/3 0 60 - Pivot row
0 𝒔𝟑 0 5 0 0 1 200 (200/5)=40
𝑧 15 0 0 0 0
𝑪𝒋 -𝒁𝒋 0 10 0 -1/3 0
Pivot column
STANDARD FORMAT OF TABLE – ITERATION 2
(EXIT VARIABLE)
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
0 𝒔𝟏 0 6 1 -(4/3) 0 120 (120/6)=20
15 𝒙𝟏 1 0 0 1/3 0 60 - Pivot row
0 𝒔𝟑 0 5 0 0 1 200 (200/5)=40
𝑧 15 0 0 0 0 𝑍 = 15𝑥1 + 10𝑥2
𝑪𝒋 -𝒁𝒋 0 10 0 -1/3 0 = (15 × 60) = 900
STANDARD FORMAT OF TABLE – ITERATION 3
𝑪𝒋 → 15 10 0 0 0
𝑪𝑩 Variable in basis 𝒙𝟏 𝒙𝟐 𝒔𝟏 𝒔𝟐 𝒔𝟑 RHS Min Ratio
𝑩
10 𝒙2 0 1 1/6 -(2/9) 0 20
15 𝒙𝟏 1 0 0 1/3 0 60
0 𝒔𝟑 0 0 -(5/6) 10/9 1 100
𝑧 15 10 10/6 5/3 0 𝑍 = 15𝑥1 + 10𝑥2
= (10 × 20 + 15 × 60)
𝑪𝒋 -𝒁𝒋 0 0 -(10/6) -(5/3) 0 = 1100
Going to the optimality test, we find that this solution is optimal because none of the
coefficients in 𝑪𝒋 -𝒁𝒋 row positive, so the algorithm is finished.
SOLUTION
This simplex tableau represents the optimal solution to the LP problem and is interpreted
as:
𝒙𝟏 = 60 and 𝒙2 = 20
Profit Z = 15𝑥1 + 10𝑥2
𝑃𝑟𝑜𝑓𝑖𝑡 = (15 × 60 + 10 × 20) = 1100
QM SOFTWARE
• A steel production company must produce at least 200 kgs of a mixture consisting of
ingredients 𝑥1 and 𝑥2 daily.
• 𝑥1 costs Rs.4 per kg. and 𝑥2 Rs.9 per kg.
• No more than 80 kg. of 𝑥1 can be used and at least 60 kg. of 𝑥2 must be used.
• Formulate a mathematical model to the problem.
• Consider a chocolate manufacturing company (Cadbury) which produces only two types of
chocolate – fruits and nuts (A) and dark chocolate (B). Both the chocolates require Milk and
Choco only.
• To manufacture each unit of A and B, following quantities are required:
• Each unit of A requires 1 unit of Milk and 3 units of Choco
• Each unit of B requires 1 unit of Milk and 2 units of Choco
• The company kitchen has a total of 5 units of Milk and 12 units of Choco. On each sale, the
company makes a profit of
• Rs 6 per unit A sold
• Rs 5 per unit B sold.
• Now, the company wishes to maximize its profit. How many units of A and B should it
produce respectively?
Present the problem in a tabular form
• As per the above table, each unit of A and B requires 1 unit of Milk. The total amount of Milk
available is 5 units. To represent this mathematically,
𝑿+𝒀 ≤ 𝟓
• Also, each unit of A and B requires 3 units & 2 units of Choco respectively. The total amount
of Choco available is 12 units. To represent this mathematically,
𝟑𝑿 + 𝟐𝒀 ≤ 𝟏𝟐
• Also, the values for units of A and B can only be integers.
• So we have two more constraints, 𝑿 ≥ 𝟎 & 𝒀 ≥ 𝟎
EXAMPLE
• Decision Variable:
Let 𝑥1 =number of branded lock to be manufactured
𝑥2 =number of ordinary lock to be manufactured
Objective function: function of the decision variables that the decision maker wants to
maximize.
Constrains: (restrictions)
• Available machine hours for each machine
• Time consumed by each product
SOLUTION
• A manufacturing company is engaged in producing three types of product A, B and C. The production
department produces, each day, component sufficient to make 50 units of A, 25 units of B and 30 units of
C. The management is confronted with the problem of optimizing the daily production of the product on
the assembly department, where only 100 man-hours are available daily for assembling the products. The
following additional information is available:
Type of product Profit contribution per Unit of product (Rs) Assembly Time per Product (hrs)
A 12 0.8
B 20 1.7
C 45 2.5
• The company has a daily order commitment for 20 units of product A and a total of 15 units of product
B and C.
• Formulate the problem to as an LP model so as to maximize the total profit
The data of the problem can be summarized as follows:
Product Type
Resources/Constraints Total
A B C
Production capacity 50 25 30
Man-hours per unit 0.8 1.7 2.5 100
Order commitment 20 15 (for both B and C)
Profit contribution 12 20 45
Let 𝑥1 , 𝑥2 and 𝑥3 =Number of units of products A, B, and C to be produced, respectively
• A manufacturer produces three types of plastic fixtures. The time required for molding,
trimming, and packaging is given in Table. (Times are given in hours per dozen fixtures.).
How many dozen of each type of fixture should be produced to obtain a maximum
profit?
• Letting 𝑥1 , 𝑥2 , 𝑎𝑛𝑑 𝑥3 represent the number of dozen units of Types A, B, and C, respectively,
the objective function is given by
• Maximize Z = 11𝑥1 + 16𝑥2 + 15𝑥3
• Subject to
3
𝑥1 + 2𝑥2 + 𝑥3 ≤ 12000
2
2 2
𝑥1 + 𝑥2 + 𝑥3 ≤ 4600
3 3
1 1 1
𝑥 + 𝑥 + 𝑥 ≤ 2400
2 1 3 2 2 3
𝑥1 , 𝑥2 and 𝑥3 ≥ 0
A BUSINESS APPLICATION: MEDIA SELECTION
• The advertising alternatives for a company include television, radio, and newspaper
advertisements.The costs and estimates for audience coverage are given in Table
• The local newspaper limits the number of weekly advertisements from a single company to ten.
Moreover, in order to balance the advertising among the three types of media, no more than
half of the total number of advertisements should occur on the radio, and at least 10% should
occur on television. The weekly advertising budget is Rs.18,200. How many advertisements
should be run in each of the three types of media to maximize the total audience?
FORMULATION
• The company does not want to spend more than Rs 8,00,000 on advertising. It is further required that
1. At least 2 million exposures takes place among women
2. The cost of advertising on television be limited to Rs 5,00,000
3. At least 3 advertising units be bought on prime day and two units during prime time; and
4. The number of advertising units on the radio and the magazine should each be between 5 and 10.
Formulate the problem as an LP model to maximize potential customer reach.
To begin, we let 𝑥1 , 𝑥2 , 𝑥3 and 𝑥4 represent the number of advertisements unit bought in prime day and
prime time on television, radio and magazine respectively.
The LP model
Maximize (total potential customer reach)
𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍 = 4,00,000𝑥1 + 9,00,000𝑥2 + 5,00,000𝑥3 + 2,00,000𝑥4
Subject to constraints
1. Advertising budget: 40,000𝑥1 + 75,000𝑥2 + 30,000𝑥3 + 15,000𝑥4 ≤ 8,00,000
2. Number of women customer reached by the advertising campaign
3,00,000𝑥1 + 4,00,000𝑥2 + 2,00,000𝑥3 + 1,00,000𝑥4 ≥ 20,00,000
3. Television advertisement
a) 40,000𝑥1 + 75,000𝑥2 ≤ 5,00,000
b) 𝑥1 ≥ 3
c) 𝑥2 ≥ 2
4. Radio and magazine advertising
a) 5 ≤ 𝑥3 ≤ 10
b) 5 ≤ 𝑥4 ≤ 10
And
𝑥1 , 𝑥2 , 𝑥3 𝑎𝑛𝑑 𝑥4 ≥ 0
A businessman is opening a new restaurant and has budget Rs 8,00,000 for advertisement, for coming month. He is considering four type of advertising:
I. 30 second television commercials
II. 30 second radio commercials
III. Half page advertisement in a newspaper
IV. Full page advertisement in a weekly magazine which will appear four times during coming month
The owner wishes to reach a families (a) with income over Rs 50,000 (b) with income under Rs 50,000.The amount of exposure of each media to families of
type (a) and (b) and the cost of each media is shown below:
Media Cost of advertisement (Rs) Exposure to families with Exposure to families with
annual income over 50,000 annual income under 50,000
Television 40,000 2,00,000 3,00,000
Radio 20,000 5,00,000 7,00,000
Newspaper 15,000 3,00,000 1,50,000
Magazine 5,000 1,00,000 1,00,000
To have balanced campaign, the owner has determined the four restrictions:
i. There should be no more than four television advertisements
ii. There should be no more than four advertisements in the magazine
iii. There should not be more than 60% of all advertisements in newspaper and magazine put together
iv. There must be at least 45,00,000 exposures to family with annual income of over Rs 50,000.
Formulate this problem as an LP model to determine the number of each type of advertisement to be given so as to maximize the total
number of exposures.
Let 𝑥1 , 𝑥2 , 𝑥3 𝑎𝑛𝑑 𝑥4 = number of television, radio, newspaper and magazine advertisements to be pursued
respectively.
The LP model
Maximize (total number of exposures of both groups)
𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍
= (2,00,000 + 3,00,000)𝑥1 + (5,00,000 + 7,00,000)𝑥2 + (3,00,000 + 1,50,000)𝑥3 + (1,00,000 + 1,00,000)𝑥4
𝑍 = 5,00,000𝑥1 + 12,00,000𝑥2 + 4,50,000𝑥3 + 2,00,000𝑥4
Subject to constraints
1. Available budget: 40,000𝑥1 + 20,000𝑥2 + 15,000𝑥3 + 5,000𝑥4 ≤ 8,00,000
2. Maximum television advertisement 𝑥1 ≤ 4
3. Maximum magazine advertisement 𝑥4 ≤ 4 (Because magazine will appear only four times in the next month)
4. Maximum newspaper and magazine advertisement 𝑥3 + 𝑥4 ≤ 0.60(𝑥1 + 𝑥2 + 𝑥3 + 𝑥4 ) or
− 0.6𝑥1 − 0.6 𝑥2 + 0.4𝑥3 + 0.4𝑥4 ≤ 0
5. Exposure to families with income over Rs 50,000
2,00,000𝑥1 + 5,00,000𝑥2 + 3,00,000𝑥3 + 1,00,000𝑥4 ≤ 45,00,000
And
𝑥1 , 𝑥2 , 𝑥3 𝑎𝑛𝑑 𝑥4 ≥ 0
EXAMPLE ON FINANCE
XYZ is an investment company. To aid in its investment decision, the company has developed the investment
alternatives for a 10-year period, as given in the following table. The return on investment is expressed as an annual
rate of return on the invested capital. The risk coefficient and growth potential are subjective estimates made by the
portfolio manager of the company. The return of investment is the average length of time period to realize the return
on investment as indicated.
Investment Length of Annual Rate of Risk Growth
Alternative Investment Return (Year) Coefficient Potential
(%) Return (%)
A 4 3 1 0
B 7 12 5 18
C 8 9 4 10
D 6 20 8 32
E 10 15 6 20
F 3 6 3 7
Cash 0 0 0 0
The objective of the company is to maximize the return on its investments.The guidelines for selecting the portfolio are:
(i) The average length of the investment for the portfolio should not exceeds 7 years.
(ii) The average risk for the portfolio should not exceeds 5.
(iii) The average growth potential for the portfolio should be at least 10%
(iv) At least 10% of all available funds must be retained in the form of cash, at all times.
Formulate this problem as an LP problem to maximize total return.
Let 𝑥j represent the proportion of funds to be invested in the 𝑗𝑡ℎ investment alternative (𝑗 = 1,2, … … 7)
The LP model
Maximize (total return)
𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍 = 0.03𝑥1 + 0.12𝑥2 + 0.09𝑥3 + 0.20𝑥4 + 0.15𝑥5 + 0.06𝑥6 + 0.00𝑥7
Subject to constraints
1. Length of Investment: 4𝑥1 + 7𝑥2 + 8𝑥3 + 6𝑥4 + 10𝑥5 + 3𝑥6 + 0𝑥7 ≤ 7
3. Growth potential: 0𝑥1 + 0.18𝑥2 + 0.10𝑥3 + 0.32𝑥4 + 0.20𝑥5 + 0.07𝑥6 + 0.00𝑥7 ≤ 0.10
5. Proportion of funds: 𝑥1 + 𝑥2 + 𝑥3 + 𝑥4 + 𝑥5 + 𝑥6 + 𝑥7 = 1
And
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 , 𝑥5 , 𝑥6 𝑎𝑛𝑑 𝑥7 ≥ 0
EXAMPLE ON MEDICAL
XYZ food company is developing a low-calorie high protein diet supplement called Hi-pro. The specification of
Hi-pro have been established by a medical experts. These specifications along with the calorie, protein and
vitamins contains three different foods, are given in the following table:
What quantities of foods 1, 2, and 3 should be used? Formulate the problem as an LP model to minimize cost of
serving
Let 𝑥1 , 𝑥2 , and 𝑥3 represent the quantities of foods 1, 2, and 3 to be used respectively
The LP model
Minimize (cost of serving)
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 𝑍 = 1.50𝑥1 + 2.00𝑥2 + 1.20𝑥3
Subject to constraints
350𝑥1 + 250𝑥2 + 200𝑥3 ≥ 300
And
𝑥1 , 𝑥2 , 𝑎𝑛𝑑 𝑥3 ≥ 0
EXAMPLE
• A firm manufactures three product A, B and C. The profit per unit product are Rs 3, Rs 2
and Rs 4 respectively. The firm has two machines and the required processing time in
minutes for each machine on each product is given below
Product
A B C
Machine 1 4 3 5
Machine 2 2 2 4
Machine 1 and Machine 2 have 2000 and 1500 machine minutes respectively. The firm
must manufacture 100 unit of product of A, 200 unit of product B and 50 unit of product C
but not no more that 150 unit of A. Formulate an LP to maximize the profit.
SOLUTION
A farmer has 1,000 acres of land on which he can grow corn, wheat or soybeans. Each acre
of corn cost Rs 100 for preparation, requires 7 man-day of work and yield a profit of Rs 30.
An acre of wheat cost Rs 120 for preparation, requires 10 man-day of work and yield a
profit of Rs 40. An acre of soybean cost Rs 70 for preparation, requires 8 man-day of work
and yield a profit of Rs 20. If the farmer has Rs 1,00,000 for preparation and can count on
8,000 man-day of work, formulate the L.P. model to allocate the number of acres to each
crop to maximize the total profit.
Corn Wheat Soyabean
Prepertation Rs 100 Rs 120 Rs 70 1,00,000
Man-day of work 7 10 8 8,000
Profit Rs 30 Rs 40 Rs 20
Let 𝑥1 , 𝑥2 , and 𝑥3 represent the acres of land Corn, Wheat and Soybean respectively
The LP model
Maximize (Profit)
𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍 = 30x1 + 40x2 + 20x3
Subject to constraints
100x1 + 120x2 + 70x3 ≤ 1,00,000
7x1 + 10x2 + 8x3 ≤ 8,000
x1 + x2 + x3 ≤ 1,000
And `
x1 , x2 , 𝑎𝑛𝑑 x3 ≥ 0
BLENDING PROBLEM
BLENDING PROBLEM
A manager at an oil company wants to find optimal mix of two blending processes. Formulate LPP.
Decision Variables:
𝑥1 = No. of operations of 𝑃1
𝑥2 = No. of operations of 𝑃2
Objective Function:
𝑀𝑎𝑥. 𝑍 = 4000 𝑥1 + 5000𝑥2
Subjective to constraints:
6 𝑥1 + 5 𝑥2 ≤ 500
4 𝑥1 + 6 𝑥2 ≤ 400
6 𝑥1 + 5 𝑥2 ≥ 300
9 𝑥1 + 5 𝑥2 ≥ 200
𝑥1 , 𝑥2 ≥ 0
Progress city is studying the feasibility of introducing a mass-transit bus system that will alleviate the smog
problem by reducing in-city driving. The study seeks the minimum number of buses that can handle the
transportation needs. After gathering necessary information, the city engineer noticed that the minimum
number of buses needed fluctuated with the time of the day and that the required number of buses could be
approximated by constant values over successive 4-hour intervals. Following figure summarizes the engineer’s
findings.To carry out the required daily maintenance, each bus can operate 8 successive hours a day only.
We can see from the figure that because of the overlapping of the shifts,
the number of buses for the successive 4-hour period is given as
SOLUTION
• Evening shift resident doctors in a government hospital work five consecutive days and
have two consecutive days off. Their five days can start on any day of the week and their
schedule rotates indefinitely. The hospital requires the following minimum number of
.
doctors to work on the given days
• No more than 40 doctors can start their five days on the same dat. Formulate this
problem as ab LP problem to minimize the number of doctors employed by the hospital
SOLUTION
𝑖 𝑥1 + 𝑥4 + 𝑥5 + 𝑥6 + 𝑥7 ≥ 35 𝑣 𝑥5 + 𝑥1 + 𝑥2 + 𝑥3 + 𝑥4 ≥ 60
𝑖𝑖 𝑥2 + 𝑥5 + 𝑥6 + 𝑥7 + 𝑥3 ≥ 55 𝑣𝑖 𝑥6 + 𝑥2 + 𝑥3 + 𝑥4 + 𝑥5 ≥ 50
𝑖𝑖𝑖 𝑥3 + 𝑥6 + 𝑥7 + 𝑥1 + 𝑥2 ≥ 60 𝑣𝑖𝑖 𝑥7 + 𝑥3 + 𝑥4 + 𝑥5 + 𝑥6 ≥ 45
𝑖𝑣 𝑥4 + 𝑥7 + 𝑥1 + 𝑥2 + 𝑥3 ≥ 50 𝑣𝑖𝑖𝑖 𝑥1 +𝑥2 + 𝑥3 + 𝑥4 + 𝑥5 + 𝑥6 + 𝑥7 ≤ 40
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 , 𝑥5 , 𝑥6 , 𝑥7 ≥ 0
SIMPLEX ALGORITHM (MINIMIZATION CASE)
• The Big M method is a method of solving linear programming problems using the simplex algorithm.
• The Big M method extends the simplex algorithm to problems that contain "greater-than" constraints. It does
so by associating the constraints with large negative constants which would not be part of any optimal solution,
if it exists.
• The Big M method introduces surplus and artificial variables to convert all inequalities into that form. The "Big
M" refers to a large number associated with the artificial variables, represented by the letter M.
• For example, x + y ≤ 100 becomes x + y + s1 = 100, whilst x + y ≥ 100 becomes x + y − s1 + a1 = 100. The
artificial variables must be shown to be 0. The function to be maximised is rewritten to include the sum of all
the artificial variables.
• The value of M must be chosen sufficiently large so that the artificial variable would not be part of any
feasible solution.
BIG M METHOD
Maximize 𝒛 = 𝒙𝟏 + 𝟓𝒙𝟐
Maximize 𝒙𝟏 + 𝟓𝒙𝟐 + 𝟎𝒔𝟏 + 𝟎𝒔𝟐 – 𝑴𝑨𝟏
• subject to subject to
3𝑥1 + 4𝑥2 ≤ 6 3𝑥1 + 4𝑥2 + 𝑠1 = 6
𝑥1 + 3𝑥2 ≥ 2 𝑥1 + 3𝑥2 – 𝑠2 + 𝐴1 = 2
𝑥1 ≥ 0, 𝑥2 ≥ 0, 𝑠1 ≥ 0, 𝑠2 ≥ 0, 𝐴1 ≥ 0
𝑥1, 𝑥2 ≥ 0
• In phase I, we form a new objective function by assigning zero to every original variable
(including slack and surplus variables) and −1 to each of the artificial variables. Then we
try to eliminate the artificial varibles from the basis.
• The solution at the end of phase I serves as a basic feasible solution for phase II.
• In phase II, the original objective function is introduced and the usual simplex algorithm is
used to find an optimal solution.
ASSUMPTIONS OF LPP
1. Proportionality:
• A basic assumption of LP is that proportionality exists in the objective function and the constraints.
• This assumption implies that if a product yields a profit of Rs 10, the profit earned form the sale of 12
such product will be Rs (10×12)= Rs 120.
• Likewise, it is assumed that if one product requires processing time of 5 hours, then ten such products
will require processing time of 5×10=50 hours. This may not be true as processing time per unit often
decreases with increase in number of units produced.
2. Additivity:
• It means if we use 𝑡1 hours on machine 𝐴 to make product 1 and 𝑡2 hours to make product 2, the
total time required to male products1 and 2 on machine 𝐴 is 𝑡1 + 𝑡2 hours. This, however, is true if
the change-over time from product 1 to product 2 is negligible. Some process may not behave in
this way.
3. Continuity
• Another assumption in the LP model is that the decision variables are continuous i.e. they are
permitted to take non-negative values that satisfy the constraints.
• However there are some problems wherein variables are restricted to have integer values only.
• Such problem are not LP problems, they are frequently solved by LP techniques and the values are
then rounded off to the nearest integers to satisfy the constraints.
ASSUMPTIONS OF LPP
4. Certainty:
• Another underlying assumption of linear programming is a certainty, i.e. the parameters of
objective function coefficients and the coefficients of constraint inequalities is known with
certainty. Such as profit per unit of product, availability of material and labor per unit,
requirement of material and labor per unit are known and is given in the linear programming
problem.
5. Finite Choices:
• This assumption implies that the decision maker has certain choices, and the decision
variables assume non-negative values. The non-negative assumption is true in the sense, the
output in the production problem can not be negative. Thus, this assumption is considered
feasible.
MERITS OF LPP