Operation Research
Operation Research
Many experts consider the start of OR in the III century B.C, during
the II Punie War, with analysis and solution that Archimedes
named for the defense of the city of Syracuse, besieged by the
Romans.
Since strategic and tactical decisions during the war are very complicated with time
horizon for such decisions being comparatively small, the necessity for group
analysis and use of mathematical, economic and statistical theories along with
engineering, behavioral and Physical Sciences was felt and utilized.
Hence, when the war ended, an effort was made to apply the OR techniques to
other areas of business and industry.
Nature and significance of operations research
Because of the computational nature of these fields, OR has also strong ties to computer
science and analytics.
The principal phases for implementing OR
b) Model Construction:
Here the problem is translated into mathematical relationship.
c) Model Solution:
Model is solved using various mathematical and statistical tools. Using the
input data.
Both simple and complex systems can easily be studied by concentrating on some
portion or key features instead of concentrating on every detail of it.
Models can be constructed in various forms by establishing relationships among
specified variables and parameters of the system, is called a model.
Models do not, and cannot, represent every aspect of reality because of the
innumerable and changing characteristics of the real life problems to be represented.
For a model to be effective, it must be representative of those aspects of reality
that are being investigated and have a major impact on the decision situation.
Classification of OR Model
Define the meaning of Operations Research and discuss the origin and
development of it. And, state the major application areas of OR models.
LINEAR PROGRAMMING
Certainty: assert that all parameters of the problem are fixed known
constants.
Assume that Philips corporation produces 2 types of Tv sets Model A and Model B.
The profit realized from model A and B are Br 300 and 250 respectively. The
company wants to produce and sell 1000 TV sets daily but this is not possible due
to some limitation. This limitations are:
1. There are only 40 hours of labor each day in the
production department.
2. There are only 45 hours of machine time each day.
A firm that assembles computers and computer equipment is about to start production
of two new micro-computers (Type 1 and Type 2). Each type of micro-
computer will require assembly time, inspection time and storage space. The
amounts of each of this resources that can be devoted to the production of
microcomputers is limited.
The manager of the firm would like to determine the quantity of each micro-
computer to produce in order to maximize the profit generated by sales of this
Micro-computers. In order to develop 2 suitable model of the problem, the
manager has met with the design and manufacturing personnel. As a result of these
meetings, the manager has obtained the following information:
Conti…
Type 1 Type 2
Profit 60 50
Assembly time 4 10
Inspection time 2 1
Storage space/unit 3 3
The manager has also acquired information on the availability of the company
of resources. This daily amount are
Resource Amounts available
Assembly time 100 hours
Inspection time 22 hours
Storage space 39 cubic feet
Conti…
The manager also met with the firms marketing manager and learn that the demand
for Micro-computer was such that whatever combination of these two types of
Micro-computers produced all of the outputs can be sold.
Q:Formulate the Linear Programming Model.
Step 1: Problem definition:
To determine the quantity of type I and type II micro-computers to be
produced per day so as to maximize profit given the restrictions.
Step 2: Identify the decision variables.
X1 = The quantity of type I micro-computer to be produced and sold per day.
X2= The quantity of type II micro-computer to be produced and sold per day.
Z = Total profit
Conti…
General format
Min.C = c1 x1+c2x2+ … + Cn xn
Subject to:
a11 x1 + a12 x2+ … + a1n xn ≥ b1
a21 x1 + a22 x2+ … + a2n xn ≥ b2
. . . .
. . . .
am1 x1+am2 x2+ …+amn xn ≥ bn
x1, x2 …., xn ≥ 0
Minimization Example 1
C = Total cost
Step 3: Develop the objective function.
Step 3: Determine the region or area that contains all the points that satisfy the
entire set of constraints. Then,
Determine the values of the decision variables at each of the corner points.
This can be done either by observation or by solving 2 equations
simultaneously.
Substitute the values of the decision variables at each corner point into the
objective function to compute its value.
Step 4: select the one with the highest or lowest value of the objective function
depending on the optimization case and make an interpretation.
If the objective function is maximization, we can select the highest value.
When it is minimization, we may select the lowest value.
Methods of finding graphical solutions
There are basically two methods that can be applied widely to find the optimal
solution through graphical method
1. Objective function approach
2. Extreme point approach
Steps in the Objective function approach
1. Graph the constraint
2. Identify the feasible solution space
3. Set the objective function equal to some amount divisible by each of the
objective function co-efficient. This will yield integer values for X1 and
X2 and thus, simplify plotting the line. Now, determine the optimal point
by moving away from the origin (for a maximum problem or moving
towards the origin (for a minimization problem parallel to the objective
Conti…
Solution
Write the given constraint in the form of equation i.e. 3x + 5y = 15,
Put x = 0, then y = 3 and Put y = 0, then x = 5
So the coordinates are (0, 3) and (5, 0)
Put x = 0, y = 0 in the given constraint, the condition turns out to be false i.e.
0 > 15 is false. So the region does not contain (0, 0) as solution. The feasible
region lies on the outer part of the line as shown in the graph.
Conti…
Conti…
Solution
Write the given constraint in the form of equation i.e. 3x + 5y
= 15, Put x=0 then the value y=3 and Put y=0 then the value x=5
Therefore the coordinates are (0, 3) and (5, 0). Thus these points are joined
to form a straight line as shown in the graph.
Put x=0, y=0 in the given constraint then 0<15, the condition is true. (0, 0) is
solution nearer to origin. So shade the region below the line, which is the feasible
region.
Conti…
Conti…
The second constraint 2x1 + 4x2 ≤ 32, written in a form of equation 2x1 + 4x2 =32
Let x1 =0, then x2 = 8
Let x2 =0, then x1 = 16
Conti…
A 0 8 Observation 440
B 8 4 Simultaneous 860
C 10 0 Observation 800
The first constraint 3x1 + 2x2 ≥ 60, written in a form of equation 3x1 + 2x2 = 60
Let x1 =0, then x2 = 30, let x2 =0, then x1 = 20 and the coordinates are (0, 30) and (20, 0)
The second constraint 7x1 + 2x2 ≥ 84, written in the equation 7x1 + 2x2 = 84
Let x1 =0, then x2 = 42, let x2 =0, then x1 = 12 and the coordinates are (0, 42) and (12, 0)
The third constraint 3x1 +6x2 ≥ 72, written in a form of equation 3x1 +6x2 = 72
Put x1 =0, then x2 = 12 and let x2 =0, then x1 = 24 and the coordinates are (0, 12) and (24, 0)
Conti…
Example 5:
A manufacturer of furniture makes two products: chairs and tables. Processing
of this product is done on two machines A and B. A chair requires 2 hours on
machine A and 6 hours on machine B. A table requires 5 hours on machine A
and no time on machine B. There are 16 hours of time per day available on
machine A and 30 hours on machine B. Profit gained by the manufacturer
from a chair and a table is Br 2 and Br 10 respectively. What should be
the daily production of each of two products? And find the optimal value
through extreme pinot method.
Conti…
The first constraint 2x1+ 5x2 ≤ 16, written in a form of equation 2x1+ 5x2
= 16
Let x1 = 0, then x2 = 16/5 = 3.2, let x2 = 0, then x1 = 8
The coordinates are (0, 3.2) and (8, 0)
x1 ≤ 4.5
x2 ≤ 6
x1 ≥ 0 , x2 ≥ 0
Conti…
X1 X2
A 0 6 Observation 18
B 1.5 6 Simultaneous 24
C 4.5 2 Simultaneous 24
Step
D 4: Select
4.5
the optimal
0
solution
Observation 18
Max Z = 24, which is achieved at both B and C corner points. It can be
achieved not only at B and C but every point between B and C. Hence the
given problem has multiple optimal solutions.
2. No optimal solution
x1+ x2 ≥ 6 x1+ x2 ≥ 6
x1 ≥ 0 , x2 ≥ 0 x1 ≥ 0 , x2 ≥ 0
Conti…
The values of objective function at corner points are 35, 28, 21 and 27. But
there exists infinite number of points in the feasible region which is
unbounded. The value of objective function will be more than the value
of these four corner points i.e. the maximum value of the objective function
occurs at a point at ∞. Hence the given problem has unbounded solution.
The simplex method
Slack Variables
“A mathematical representation of surplus resources.” In real life problems, it’s
unlikely that all resources will be used completely, so there usually are unused
resources. Slack variables represent the unused resources between the left- hand side
and right-hand side of each inequality.
Basic and Non-basic 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.
x 1 2 x 2 s1 32
3 x1 4 x 2 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. A
solution found by setting the two non-basic variables equal to 0 and solving for
the two basic variables is a basic solution. If a basic solution has no
negative values, it is a basic feasible solution.
Use the following steps to solve the linear programming
Step 5: Use elementary row operations calculate new values for the pivot
row so that the pivot is 1 (Divide every number in the row by the pivot
number.)
Step 6: Use elementary row operations to make all numbers in the pivot
column equal to 0 except for the pivot number. If all entries in the bottom
row are zero or positive, this the final tableau. If not, go back to step 3.
3F furniture Company produces tables and chairs. Each table takes four
hours of labor from the carpentry department and two hours of labor from
the finishing department. Each chair requires three hours of carpentry and
one hour of finishing. During the current week, 240 hours of carpentry
time are available and 100 hours of finishing time. Each table
produced gives a profit of $70 and each chair a profit of $50. How
many chairs and tables should be made?
Step 1
P = 70x1 + 50x2
x 1, x 2 > 0
Conti…
The first step of the simplex method requires that each inequality
be converted into an equation. ”less than or equal to”
inequalities are converted to equations by including slack
variables.
Suppose carpentry hours and finishing hours remain unused in a week.
The constraints become;
The slack variables S1 and S2 form the initial solution mix. The initial
solution assumes that all available hours are unused. i.e. The slack
variables take the largest possible values.
Conti…
Variables in the solution mix are called basic variables. Each basic variables
has a column consisting of all 0’s except for a single 1. All variables not
in the solution mix take the value 0.
Select the pivot column (determine which variable to enter into the
solution mix). Choose the column with the “most negative” element in the
objective function row.
x1 should enter into the solution mix because each unit of x1 (a table)
contributes a profit of $70 compared with only $50 for each unit of x1
(a chair)
Step 4
No, There aren’t any positive elements in the pivot column above the
dashed line.
We can go on step 5
Step 5
Select the pivot row (determine which variable to replace in the solution
mix). Divide the last element in each row by the corresponding
element in the pivot column. The pivot row is the row with the smallest
non-negative result.
Conti…
R2
2
Conti…
If 50 tables are made, then the unused carpentry hours are reduced by
200 hours (4 h/table multiplied by 50 tables); the value changes from
240 hours to 40 hours. Making 50 tables results in the profit being
increased by $3500; the value changes from $0 to $3500.
Conti…
Calculate new values for the pivot row. As the pivot number is already
1, there is no need to calculate new values for the pivot row. Use row
operations to make all numbers in the pivot column equal to except for the
pivot number.
Conti…
As the last row contains no negative numbers, this solution gives the
maximum value of P.
Conti…
This simplex tableau represents the optimal solution to the LP problem and is
interpreted as:
x1 = 30, x2 = 40, s1 = 0, s2 = 0 and profit or P = $4100
Harley’s Sand and Gravel Pit has contracted to provide topsoil for
three residential housing developments. Top soil can be supplied from
three different “farms” as follows:
1 50
2 150
3 300
The manager of the sand and gravel pit has estimated the cost per
cubic yard to ship over each of the possible routes:
Conti…
5 1 9
Farm B 200
7 6 3
Farm C 200
Subject to:
x11+x12+x13 ≤ 100
x21+x22+x23 ≤ 200 Capacity/ Source constraint
x31+x32+x33 ≤ 200
x11+x21+x31≤ 50
x12+x22+x32≤150 Demand/ Destination constraint
x13+x23+x33≤300
Conti…
Zmin: 4x11+2x12+8x13+5x21+x22+9x23+7x31+6x32+3x33
Subject to:
x11+x12+x13 ≤ 100
x21+x22+x23 ≤ 200
x31+x32+x33 ≤ 200
x11+ x21+ x31 ≤ 50
x12+ x22+ x32 ≤ 150
x13+ x23+ x33 ≤ 300
x11, x12, x13, x21, x22, x23, x31, x32, x33 ≥ 0
Finding an initial feasible solution
2. The number of non-zero(occupied) cells should equal one less than the sum of
the number of rows and the number of columns in a transportation table.
In the case of a table with 3 rows and 3 columns, the number of occupied
cells should be 3+3-1 = 5 in order to be able to use the transportation
algorithm.
Sometimes, fewer occupied or completed cells appear in a solution. When
that happens, the solution is referred to as a degenerated solution; such a
solution requires modification in order to be able to determine if it is
optimal.
Conti…
Vogel’s/Penalty Method
The Northwest-Corner Method
To:
ProjectProject Project Suppl
From: #1 #2 #3 y
4 2 8
Farm A 50 50 100
(first)(second)
5 1 9
Farm B 100 100 200
(third) (fourth)
7 6 3
Farm C 200 200
(last)
1. Identify the cell that has the lowest unit cost. If there is
a tie, select one arbitrarily. Allocate a quantity to this
cell that is equal to the lower of the available supply
for the row and the demand for the column.
4. Repeat steps (ii) and (iii) until all supply and demand
have been exhausted.
Conti…
To:
Project Project Project Supply
From: #1 #2 #3
4 2 8
Farm A 50 50 100
5 1 9
Farm B 150 50 200
7 6 3
Farm C 200 200
The unoccupied cells are A-3, B-1, C-1, and C-2. They
must be evaluated one at a time, but in no particular
order.
Rules for tracing Stepping-stone
paths:
All unoccupied cells must be evaluated. Evaluate cells one at
a time.
Solving maximization
problems.
Alternate Optimal Solutions
Cell B-3 had the largest dollar value: $9. Hence, each
cell’s dollar amount would be subtracted from 9. For cell
A-1, the resulting opportunity cost would have been 9-4
= 5 and so on. Cell B-3 would have an opportunity cost
of 0 making it the most desirable route.
Conti…
To :
From: Project Project Project Supply
#1 #2 #3
5 7 1
Farm A 100
4 8 0
Farm B 200
2 3 6
Farm C 200
Effective Matrix
A cost Matrix in A.P. is called an “Effectiveness
Matrix” when there is at least one zero in each row
and column. Following is an example of Effectiveness
Matrix.
HUNGARIAN ASSIGNEMNT METHOD
(HAM)
A method, designed specially to handle the
assignment problems in an efficient way, called the
Hungarian Assignment Method, is available, which is
based on the concept of opportunity cost.
Job
J1 J2 J3
P 9 0 M J42 J5
1P 319 12 9 0
2P 54 1 44 M
3P 06 12 4 0
person
P 45 011 0 0 0
dumm 0
y
Conti…
Job
J1 J2 J3 J4 J5
P1 9 0 M 6 3
P2 15 8 9 0 1
P3 4 1 4 M 0
P4 2 8 0 0X
person
P5 0 0X 0X 7 0
dummy 0 X
Further, the second and the third rows have one zero
each. We make assignments B-4 and C-5, and cross out
zeros at D-4 and E-5.
Now, both the rows left two zeros each and so have
both the columns. This indicates existence of multiple
optimal solutions. To obtain the solutions, we select zeros
arbitrarily and proceed as discussed below.
Conti…
Where:
Ai = the ith alternative
Sj = the jth states of nature
Vij = the value or payoff that will be realized if
alternative i is chosen and event j occurs.
Decision making under certainty
Example:
The following payoff table provides
data about profits of the various states of
nature/alternative combination.
2) Maximin,
3) Laplace,
5) Hurwicz
Conti…
“best
Conti…
A1 32 10.67
A2 21 7
A3 18 6
Example:
Conti…
Decision
Tree
Conti…
A
B
C
Step 2. Add our possible states of nature,
probabilities, and payoffs
Apartment building
1 Office building
Warehouse
Step 2. Add our possible states of nature,
probabilities, and payoffs
Br 42,000
Poor economic conditions (0.4) Br 30,000
A
EVA=0.6(50,000)+0.4(30,000)=Br 42,000
Conti…
Br 44,000
Poor economic conditions (0.4) Br -40,000
O
EVB=0.6(100,000)+0.4(-40,000)=Br 44,000
Conti…
Br 22,000
Poor economic conditions (0.4) Br 10,000
W
EVC=0.6(30,000)+0.4(10,000)=Br 22,000
Step 4. Make decision