Unit 1 Introduction: 1.1.introduction To Operations Research
Unit 1 Introduction: 1.1.introduction To Operations Research
Phase 6: Implementation
The implementation of controlled solution involves the translation of models which results into
operating instructions. It is important in OR to ensure that the solution is accurately translated
into an operating procedure to rectify faults in the solution.
1. Accounting:
Assigning audit teams effectively
Credit policy analysis
Cash flow planning
Developing standard costs
Establishing costs for byproducts
Planning of delinquent account strategy
2. Construction:
Project scheduling, monitoring and control
Determination of proper work force
Deployment of work force
Allocation of resources to projects
3. Facilities Planning:
Factory location and size decision
Estimation of number of facilities required
Hospital planning
International logistic system design
Transportation loading and unloading
Warehouse location decision
4. Finance:
Building cash management models
Allocating capital among various alternatives
Building financial planning models
Investment analysis
Portfolio analysis
Dividend policy making
5. Manufacturing:
Inventory control
Marketing balance projection
Production scheduling
Production smoothing
6. Marketing:
Advertising budget allocation
Product introduction timing
Selection of Product mix
Deciding most effective packaging alternative
7. Organizational Behavior / Human Resources:
Personnel planning
Recruitment of employees
Skill balancing
Training program scheduling
Designing organizational structure more effectively
8. Purchasing:
Optimal buying
Optimal reordering
Materials transfer
9. Research and Development:
R & D Projects control
R & D Budget allocation
Planning of Product introduction
1.4.Advanages of Operation Research
Decision Variables: The decision variables are the variables that will decide my output.
They represent my ultimate solution. To solve any problem, we first need to identify the
decision variables. For the above example, the total number of units for A and B denoted
by X & Y respectively are my decision variables.
Objective Function: It is defined as the objective of making decisions. In the above
example, the company wishes to increase the total profit represented by Z. So, profit is
my objective function.
Constraints: The constraints are the restrictions or limitations on the decision variables.
They usually limit the value of the decision variables. In the above example, the limit on
the availability of resources Milk and Choco are my constraints.
Non-negativity restriction: For all linear programs, the decision variables should always
take non-negative values. This means the values for decision variables should be greater
than or equal to 0.
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?
Solution: The first thing I’m gonna do is represent the problem in a tabular form for better
understanding.
Milk Choco Profit per unit
A 1 3 Rs 6
B 1 2 Rs 5
Total 5 12
Let the total number of units produced by A be = X
Let the total number of units produced by B be = Y
The company will try to produce as many units of A and B to maximize the profit. But the
resources Milk and Choco are available in a limited amount.
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,
X+Y ≤ 5
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,
3X+2Y ≤ 12
For the company to make maximum profit, the above inequalities have to be satisfied.
This is called formulating a real-world problem into a mathematical model.
A firm produces three products. These products are processed on three different machines. The
time required to manufacture one unit of each of the three products and the daily capacity of the
three machines are given in the table below:
It is required to determine the daily number of units to be manufactured for each product. The
profit per unit for product 1, 2 and 3 is Rs. 4, Rs.3 and Rs.6 respectively. It is assumed that all
the amounts produced are consumed in the market. Formulate the mathematical (L.P.) model that
will maximize the daily profit.
There will be two constraints. One for machine hours availability and for labour hours
availability.
Decision variables
X1 = Number of units of A manufactured per month.
X2 = Number of units of B manufactured per month.
The objective function:
Max Z = 50x1+ 40x2
Subjective Constraints
For machine hours
1.5x1+ 2.5x2 ≤ 300
For labour hours
2.5x1+ 1.5x2 ≤ 240
Non negativity
x1, x2 ≥0
EXAMPLE: 3
A company produces three products A, B, C.
For manufacturing three raw materials P, Q and R are used.
Profit per unit
A - Rs. 5, B - Rs. 3, C - Rs. 4
Resource requirements/unit
Objective Function
Since Profit per unit is given, objective function is maximization
Max Z = 5x1+ 3x2 + 4x3
Constraints:
For P:
0x1+ 20x2 + 30x3 ≤ 80
For Q:
20x1+ 30x2 + 20x3 ≤ 100
For R:
50x1+ 0x2 + 40x3 ≤ 150
(for B, R is not required)
x1, x2, x3 ≥ 0
Solution:
Decision Variables:
X1 = Amount invested in Security A
X2 = Amount invested in Security B
Objective Function:
The objective is to maximize the return on total investment.
A company has two grades of inspectors, I and II to undertake quality control inspection. At least
1, 500 pieces must be inspected in an 8-hour day. Grade I inspector can check 20 pieces in an
hour with an accuracy of 96%. Grade II inspector checks 14 pieces an hour with an accuracy of
92%. Wages of grade I inspector are Rs. 5 per hour while those of grade II inspector are Rs. 4
per hour. Any error made by an inspector costs Rs. 3 to the company. If there are, in all, 10 grade
I inspectors and 15 grade II inspectors in the company, find the optimal assignment of inspectors
that minimize the daily inspection cost.
Solution:
Let x1 and x2 denote the number of grade I and grade II inspectors that may be assigned the job
of quality control inspection.
The objective is to minimize the daily cost of inspection. Now the company has to
incur two types of costs; wages paid to the inspectors and the cost of their inspection
errors. The cost of grade I inspector/hour is
where x11, x12, x13, x21, x22, x23, x24, x25, x26 ≥ 0
EXAMPLE 7: MEDIA SELECTION
An advertising agency is planning to launch an ad campaign. Media under consideration are T.V.,
Radio & Newspaper. Each medium has different reach potential and different cost.
Minimum 10, 000, 000 households are to be reached through T.V. Expenditure on newspapers
should not be more than Rs. 10, 00, 000. Total advertising budget is Rs. 20 million.
Following data is available:
Solution:
Decision Variables:
x1 = Number of units of T.V. ads,
x2 = Number of units of Radio ads,
x3 = Number of units of Newspaper ads.
Objective function: (Maximize reach)
Max. Z = 20, 00, 000 x1 + 10, 00, 000 x2 + 2, 00, 000x3
Subject to constraints:
20, 00, 000 x1 ≥ 10, 000, 000........ (for T.V.)
2, 00, 000 x1 + 80, 000 x2 + 40, 000 x3 ≤ 20, 000, 000.......... (Ad. budget)
x1, x2, x3 ≥ 0
Simplifying constraints:
For T.V. 2 x1 ≥ 10
x1 ≥ 5
For Newspaper 4 x3 ≤ 100
x3 ≤ 25
For Ad. Budget
20 x1 + 8 x2 + 4 x3 ≤ 2000
5 x1 + 2 x2 + x3 ≤ 500
x1, x2, x3 ≥ 0
Vitamins B1 and B2 are found in two foods F1 and F2. 1 unit of F1 contains 3 units of B1 and 4 units of
B2. 1 unit of F2 contains 5 units of B1 and 3 units of B2 respectively.
Minimum daily prescribed consumption of B 1 & B2 is 50 and 60 units respectively. Cost per unit of
F1 & F2 is Rs. 6 & Rs. 3 respectively.
Formulate as LPP.
Solution:
Decision Variables:
x1 = No. of units of P1 per day.
x2 = No. of units of P2 per day.
Objective function:
Min. Z = 100 x1 + 150 x2
Subject to constraints:
3 x1+ 5x2 ≥ 30 (for N1)
A manager at an oil company wants to find optimal mix of two blending processes.
Formulate LPP.
Data:
Data: Process Input (Crude Oil) Output (Gasoline)
Grade A Grade B X Y
P1 6 4 6 9
P2 5 6 5 5
Variables:
x1 = No. of operations of P1
x2 = No. of operations of P2
Objective Function:
Max. Z = 4000 x1 + 5000 x2
Subjective to constraints:
6x1+ 5x2 ≤ 500
4x1+ 6x2 ≤ 400
6x1+ 5x2 ≥300
9x1+ 5x2 ≥200
x1, x2 ≥ 0
EXAMPLE 10: FARM PLANNING
A farmer has 200 acres of land. He produces three products X, Y & Z. Average yield per acre for
X, Y & Z is 4000, 6000 and 2000 kg.
Selling price of X, Y & Z is Rs. 2, 1.5 & 4 per kg respectively. Each product needs
fertilizers. Cost of fertilizer is Rs. 1 per kg. Per acre need for fertilizer for X, Y & Z is 200, 200
& 100 kg respectively. Labour requirements for X, Y & Z are 10, 12 & 10 man hours per acre.
Cost of labour is Rs. 40 per man hour. Maximum availability of labour is 20, 000 man hours.
Formulate as LPP to maximize profit.
Objective function
Max. = 7400 x1 + 8320 x2 + 7500 x3
Subject to constraints:
x1+ x2 + x3 = 200 (Total Land)
10 x1 + 12 x2 + 10 x3 ≤ 20, 000 (Max Man hours)
x1, x2, x3 ≥ 0
MERITS OF LPP
DEMERITS OF LPP
1. Existence of non-linear equation: The primary requirements of Linear Programming is the
objective function and constraint function should be linear. Practically linear relationship do not
exist in all cases.
2. Interaction between variables: LP fails in a situation where non-linearity in the equation
emerge due to joint interaction between some of the activities like total effectiveness.
3. Fractional Value: In LPP fractional values are permitted for the decision variable.
4. Knowledge of Coefficients of the equation: It may not be possible to state all coefficients in
the objective function and constraints with certainty.
Graphical Method:-
Step 1:-Convert each inequality into equality
i.e. replaces ≤ and ≥ by =
Step 2:- Convert each equation into the standard form
x y
+ =1
a b
which, represents a straight line in intercepts form. The line passing through (a,0) and (0,b)
Step 3:- Find shape the feasible region
A feasible region is region in which all the constraints hold good.
Step 4:- Substitute the co-ordinates of the corner points of feasible region in the given objective
function to optimize the given linear programming problem (LPP)
Note:-
1. If all the constraints are of the type ≤ , then feasible region will be towards the origin.
2. When all the constraints are of the type ≥ ,then the feasible region will be away from the
origin.
3. x= constraints is a line parallel to y-axis
4, y= constraints as line parallel to x-axis
5. y =x is a straight line passing that the origin making an make angle of 450 with line’ +’ ve
x –axis.
Example 1 Solve the following linear programming problem graphically:
Maximize, Z = 4x + y
subject to the constraints:
x + y 50
3x + y 90
x 0, y 0
Solution
Line 1:
3x + y 3x + y
3x + y 3x + y
Dividing by 90 Dividing by 90
3x y 3x y
+ =1 + =1
90 90 90 90
x = 30 y = 30
(30,0) (0,90)
Line 2:
x + y x + y
x + y x + y
Dividing by 50 Dividing by 50
x y x y
+ =1 + =1
50 50 50 50
Putting y=0 then we get, Putting x=0 then we get,
x = 50 y = 50
Therefore, Therefore,
The points are B(50,0) and (0,50)
The shaded region in Fig is the feasible region determined by the system. We observe that the
feasible region OABC is bounded. So, we now use Corner Point Method to determine the
maximum value of Z.
The coordinates of the corner points O, A, B and C are (0, 0), (30, 0), (20, 30) and (0, 50)
respectively. Now we evaluate Z at each corner point
Corner Point Corresponding value of
Z = 4x + y
(0, 0) 0
(30, 0) 120 aximum
(20, 30) 110
(0, 50) 50
Example 2 A company manufactures two products A and B. Both products are processed on two
machines M1 & M2
Profit per unit for A is Rs. 100 and for B is Rs. 80. Find out the monthly production of A and B to
maximize profit by graphical method.
Solution
Formulation of LPP
X1 = No. of units of A/Month
X2 = No. of units of B/Month
Max Z = 100 X1 + 80 X2
Subject to constraints:
6 X1 + 4 X2 ≤ 7200
2 X1 + 4 X2 ≤ 4000
X1, X2 ≥ 0
Line 1:
6 X1 + 4 X2 = 7200
6 X1 + 4 X2 ≤ 7200
6 X1 + 4 X2 = 7200 Dividing by 7200
Dividing by 7200 6 X1 4 X2
6 X1 4 X2 + =1
7200 7200
+ =1
7200 7200 Putting X1=0 then we get,
Putting X2 =0 then we get,
X2 = 1800
X1 = 1200;
(0, 1800)
(1200,0)
The points are A (1200, 0)and (0, 1800)
Plot the first Line 1
Line 2:
2 X1 + 4 X2 ≤ 4000
2 X1 + 4 X2 = 4000
Dividing by 4000
2 X 1 4 X2 2 X1 + 4 X2 = 4000
+ =1
4000 4000 Dividing by 4000
Putting X2 =0 then we get,
X1 = 2000; 2 X 1 4 X2
+ =1
Therefore, 4000 4000
X2 = 1000
Therefore,
(0, 1000)
Simplex method
Simplex method is the method to solve ( LPP ) models which contain two or more
decision variables.
Basic variables:
Are the variables which coefficients One in the equations and Zero in the other equations.
Non-Basic variables:
Are the variables which coefficients are taking any of the values, whether positive or negative or
zero.
Slack, surplus & artificial variables:
a) If the inequality be (less than or equal, then we add a slack variable + S to change to =.
b) If the inequality be (greater than or equal, then we subtract a surplus variable - S to
Change to =.
c) If we have = we use artificial variables.
Optimality condition:
The entering variable in a maximization (minimization) problem is the non-basic variable
having the most negative (positive) coefficient in the Z-row.
The optimum is reached at the iteration where all the Z-row coefficient of the non-basic
variables are non-negative (non-positive).
Feasibility condition:
For both maximization and minimization problems the leaving variable is the basic
associated with the smallest non-negative ratio (with strictly positive denominator).
Pivot row:
a) Replace the leaving variable in the basic column with the entering variable.
b) New pivot row equal to current pivot row divided by pivot element.
Steps involved in Simplex Method:-
Step 1: Convert the LP problem to a system of linear equations.
We do this by turning each constraint inequality into a linear equation by adding new
variables we call slack variables, and rewriting the objective function
Step 2: Represent the system of equations obtained above in the form of an augmented matrix
Step 5: Use the pivot to clear the pivot column in the normal manner.
This gives the next tableau. To clear the column, or "pivot," we follow the exact
prescription for formulating the row operations
Step 6: Repeat Steps 3–5 until there are no more negative numbers in the bottom row (with
the possible exception of the Answer column).
That is, we take the most negative number in the bottom row of the current tableau
(excluding the rightmost entry) and clear its column using a pivot selected as per Step 4 to obtain
the next tableau, and so on, until there are no more negative numbers in the bottom row
(excluding the rightmost entry). At that point, we are done, and the solution to the LP problem is
the corresponding basic solution.
Example1