2 Linear Programming (LP) Problem - Formulations
2 Linear Programming (LP) Problem - Formulations
Problem- Formulations
Example 1. (Product Mix Problem)
• Consider a small manufacturer making two products A and B.
• The profit function that the manufacturer wishes to increase, represents the
objective of making the decisions on the product quantities and is called the
objective function.
• The conditions matching the resource availability and resource requirement are
called constraints.
– These usually limit (or restrict) the values the decision variables can take.
• We have also explicitly stated that the decision variables should take non
negative values
– This is true for all Linear Programming problems.
– This is called non negativity restriction
• The problem that we have written down in algebraic form represents the
mathematical model of the given system and is called the Problem formulation.
• The problem formulation has the following steps.
– Identifying the decision variables.
– Writing the objective function
– Writing the constraints.
– Writing the non negativity restrictions.
• In the above formulation, the objective function and the constraints are
linear.
– Therefore the model that we formulated is a linear programming
problem.
• The estimated demand for the product for the next four months are
1000, 800, 1200, 900 respectively.
• The company has a regular time capacity of 800 per month and
over time capacity of 200 per month.
• The cost of regular time production is Rs 20 per unit and the cost of
over time production is Rs 25 per unit.
• The company can carry inventory to the next month and the
holding cost is Rs 3/unit/month.
It is assumed that all the cut sheets have the same length
(Say, 50 Inches). Only one dimensional cutting is only
allowed.
• The gain (or pay off) for A when A adopts strategy i and B adopts
strategy j is given by aij. A 2 x 2 matrix would look like
Minimize Z = 3(X1+X2+X3+X4+X5)+(Y1+Y2+Y3)
STC
X1>=100
X1+X2>=160
X1+X2+X3+Y1>=240
X1+X2+X3+X4+Y1+Y2>=330
X1+X2+X3+X4+X5+Y1+Y2+Y3>=400
Y1<=100
Y2<=60
Y3<=80
Principal buyers 20 % 15 % 8%
The budgeted amount for the advertisements is at most Rs. 1.0 lakh. The owner
has already decided that magazine A should have not more than 15
advertisements and that B and C each gets at least 8 advertisements. Formulate a
linear programming model for this problem.
Solution to Problem 12
Let x1, x2 and x3 be no. Of advertisements insertions in
magazines A, B and C, respectively.
The total exposure of principal buyers of the magazine is
Zmax= (20% of 1,00,000)x1 + (15% of 60,000)x2+(8% of 40,000)x3
The Objective function
Zmax= 20000x1 +9000x2+3200x3
Subject to the constraint
8000x1 +6000x2+5000x3≤1,00,000
x1 ≤ 15, x2 ≥ 8, x3 ≥ 8
x1≥0, x2≥0, x3≥0
GRAPHICAL METHOD FOR LPP
Graphical Method
Linear programming problems involving two
decision variables can easily be solved by
graphical method, which provides a pictorial
representation of the solution.
Steps in Graphical Method
• Formulate the given problem as LPP
• Draw a graph with one variable on the horizontal axis
and one on the vertical axis.
• Plot each of the constraint as if they were equalities
or equations.
• Identify the feasible region (Solution space) that is
the area that satisfies all the constraints.
• Name the intersections of the constraints on the
perimeter of the feasible region and get their co-
ordinates,
• Substitute each of the co-ordinates into the objective
function and solve for Z
• Select the solution that optimizes Z (based on
objective) that is obtain Zmin or Zmax
Various Cases in Graphical Method
A Linear-programming problem may be having
–A unique optimal solution
–An infinite number of optimal solution
(alternative optimal solution).
–An unbounded solution and
–No solution.
Problem 1. Solve graphically
“Fresh and tasty” bakers make cakes and pastries. On
a Sunday morning they have to make ‘plum cake”
and “fruit pastries”. They have 450 units of flour and
they use 1 units of flour per cake and 1 units per
pastry. They also have 600 units of time in the oven
that day and each cake requires 2 units in the oven
and each pastry requires 1 units of time in the oven.
They sell each cake for Rs 3 and each pastry for Rs 4.
How many cakes and pastries they should make to
maximize their sale?
Formulate this problem as L.P.P.
– Solve graphically.
Solution to Problem 1
Z=5X1 + 8X2
6
5
Z=5*3 + 8*2
4 Z=15+16 = Rs 31/-
3
2
1
0 1 2 4
3 5 6
Problem 5. Solve graphically
• A company produce 2 types of leather belts type A &
type B. Profits on 2 types of belts are Rs 40 & Rs 30
respectively per belt. Each type of A belt requires twice
as much time as required by type B belt. If all the belts
are of type B the company would produce 1000
belts/day. But the supply of leather is sufficient only to
produce 800 belts/day. Belt A requires fancy buckles and
400 fancy buckles are available for this/day. For belt B
only 700 buckles are available/day. How should the
company manufacture the 2 types of belts in order to
maximize the profits.
– Formulate this problem as L.P.P.
– Solve graphically.
Solution to problem no 5
• Maximize Z = 40 X + 30 Y
• 2X + Y <= 1000
• X + Y <= 800
• X<=400
• Y<= 700
Co-ordinates Zmax=3x1+8x2
O(0,0) ZO=3(0)+8(0)=0
A(2,4) ZA=3(2)+8(4)=38
B(t,4) ZB=3(t)+8(4)=3t + 32
C(t,0) ZC=3(t)+8(0)=3t
The price of A’s scrap is Rs. 200 per quintal and that of B’s is Rs. 400
per quintal. Formulate this problem as LP model and solve it to
determine the quantities that the firm should buy from the two
suppliers so as to minimize total purchase cost.