Lecture 01 - Intro&Formulation
Lecture 01 - Intro&Formulation
▶ The roots of OR can be traced back many decades when early attempts were
made to use a scientific approach in the management of organizations
Origins of Operations Research (OR)
▶ The roots of OR can be traced back many decades when early attempts were
made to use a scientific approach in the management of organizations
▶ However, the beginning of the activity called “Operations Research” has
generally been attributed to the military services early in World War II
motivated by an urgent need to allocate scarce resources to the various
military operations and to the activities within each operation in an
effective manner
Origins of Operations Research (OR)
▶ The roots of OR can be traced back many decades when early attempts were
made to use a scientific approach in the management of organizations
▶ However, the beginning of the activity called “Operations Research” has
generally been attributed to the military services early in World War II
motivated by an urgent need to allocate scarce resources to the various
military operations and to the activities within each operation in an
effective manner
▶ Therefore, the British and then the U.S. military management called upon a
large number of scientists to apply a scientific approach to dealing with this
and other strategic and tactical problems - “Research” on the Military
“Operations”
Origins of Operations Research (OR)
▶ The roots of OR can be traced back many decades when early attempts were
made to use a scientific approach in the management of organizations
▶ However, the beginning of the activity called “Operations Research” has
generally been attributed to the military services early in World War II
motivated by an urgent need to allocate scarce resources to the various
military operations and to the activities within each operation in an
effective manner
▶ Therefore, the British and then the U.S. military management called upon a
large number of scientists to apply a scientific approach to dealing with this
and other strategic and tactical problems - “Research” on the Military
“Operations”
▶ The success of OR in the war effort spurred interest in applying OR outside
the military as well
Origins of Operations Research (OR)
▶ As the industrial boom following the war was running its course, the problems
caused by the increasing complexity and specialization in organizations were
again coming to the forefront
Origins of Operations Research (OR)
▶ As the industrial boom following the war was running its course, the problems
caused by the increasing complexity and specialization in organizations were
again coming to the forefront
▶ It was becoming apparent to a growing number of people, including business
consultants who had served on or with the OR teams during the war, that
these were basically the same problems that had been faced by the military
but in a different context
Origins of Operations Research (OR)
▶ As the industrial boom following the war was running its course, the problems
caused by the increasing complexity and specialization in organizations were
again coming to the forefront
▶ It was becoming apparent to a growing number of people, including business
consultants who had served on or with the OR teams during the war, that
these were basically the same problems that had been faced by the military
but in a different context
▶ By the early 1950s, these individuals had introduced the use of OR to a
variety of organizations in business, industry, and government. The rapid
spread of OR soon followed
Origins of Operations Research (OR)
▶ As the industrial boom following the war was running its course, the problems
caused by the increasing complexity and specialization in organizations were
again coming to the forefront
▶ It was becoming apparent to a growing number of people, including business
consultants who had served on or with the OR teams during the war, that
these were basically the same problems that had been faced by the military
but in a different context
▶ By the early 1950s, these individuals had introduced the use of OR to a
variety of organizations in business, industry, and government. The rapid
spread of OR soon followed
▶ At least two other factors that played a key role in the rapid growth of OR
during this period can be identified
Origins of Operations Research (OR)
▶ After the war, many of the scientists who had participated on OR teams or
who had heard about this work were motivated to pursue research relevant to
the field - A prime example is the Simplex Method for solving Linear
Programming Problems (LPPs), developed by George Dantzig in 1947
Origins of Operations Research (OR)
▶ After the war, many of the scientists who had participated on OR teams or
who had heard about this work were motivated to pursue research relevant to
the field - A prime example is the Simplex Method for solving Linear
Programming Problems (LPPs), developed by George Dantzig in 1947
▶ Many of the standard methodologies of OR, such as Linear Programming,
Dynamic Programming, Queueing Theory and Inventory Theory, were
relatively well developed before the end of the 1950s
Origins of Operations Research (OR)
▶ After the war, many of the scientists who had participated on OR teams or
who had heard about this work were motivated to pursue research relevant to
the field - A prime example is the Simplex Method for solving Linear
Programming Problems (LPPs), developed by George Dantzig in 1947
▶ Many of the standard methodologies of OR, such as Linear Programming,
Dynamic Programming, Queueing Theory and Inventory Theory, were
relatively well developed before the end of the 1950s
▶ A second factor that gave great impetus to the growth of the field was the
onslaught of the computer revolution. A large amount of computation is
usually required to deal most effectively with the complex problems typically
considered by OR
Origins of Operations Research (OR)
Reddy Mikks produces both interior and exterior paints from two raw materials, M1
and M2 . The following table provides the basic data of the problem:
The daily demand for interior paint cannot exceed that for exterior paint by more
than 1 ton. Also, the maximum daily demand for interior paint is 2 tons. Reddy
Mikks wants to determine the optimum (best) product mix of interior and exterior
paints that maximizes the total daily profit.
Formulation I - Product Mix Problem
Identify Decision variables:
x1 = Tons produced daily of exterior paint
Formulation I - Product Mix Problem
Identify Decision variables:
x1 = Tons produced daily of exterior paint
x2 = Tons produced daily of interior paint
Formulation I - Product Mix Problem
Identify Decision variables:
x1 = Tons produced daily of exterior paint
x2 = Tons produced daily of interior paint
Formulation I - Product Mix Problem
Identify Decision variables:
x1 = Tons produced daily of exterior paint
x2 = Tons produced daily of interior paint
Identify Constraints:
6x1 + 4x2 ≤ 24 (Daily usage of raw material M1 )
Formulation I - Product Mix Problem
Identify Decision variables:
x1 = Tons produced daily of exterior paint
x2 = Tons produced daily of interior paint
Identify Constraints:
6x1 + 4x2 ≤ 24 (Daily usage of raw material M1 )
x1 + 2x2 ≤ 6 (Daily usage of raw material M2 )
Formulation I - Product Mix Problem
Identify Decision variables:
x1 = Tons produced daily of exterior paint
x2 = Tons produced daily of interior paint
Identify Constraints:
6x1 + 4x2 ≤ 24 (Daily usage of raw material M1 )
x1 + 2x2 ≤ 6 (Daily usage of raw material M2 )
x2 − x1 ≤ 1 (Daily demand of Exterior and Interior Paint)
Formulation I - Product Mix Problem
Identify Decision variables:
x1 = Tons produced daily of exterior paint
x2 = Tons produced daily of interior paint
Identify Constraints:
6x1 + 4x2 ≤ 24 (Daily usage of raw material M1 )
x1 + 2x2 ≤ 6 (Daily usage of raw material M2 )
x2 − x1 ≤ 1 (Daily demand of Exterior and Interior Paint)
x2 ≤ 2 (Daily demand of Interior Paint)
Formulation I - Product Mix Problem
Identify Decision variables:
x1 = Tons produced daily of exterior paint
x2 = Tons produced daily of interior paint
Identify Constraints:
6x1 + 4x2 ≤ 24 (Daily usage of raw material M1 )
x1 + 2x2 ≤ 6 (Daily usage of raw material M2 )
x2 − x1 ≤ 1 (Daily demand of Exterior and Interior Paint)
x2 ≤ 2 (Daily demand of Interior Paint)
x1 , x2 ≥ 0 (Non-negativity of Decision Variables)
Identify Objective Function:
Profit associated with Exterior Paint is Rs. 5/Ton and with interior paint Rs. 4/Ton
So, total daily profit is: 5x1 + 4x2 , which needs to be maximized
So, Objective function is
max 5x1 + 4x2 (Profit Function)
General Structure of OR Problems
Objective Function:
Here
c = [c1 , c2 , . . . , cp ] is objective function coefficient vector and
x = [x1 , x2 , . . . , xp ]T is decision variable vector
General Structure of OR Problems
Objective Function:
Here
c = [c1 , c2 , . . . , cp ] is objective function coefficient vector and
x = [x1 , x2 , . . . , xp ]T is decision variable vector
Constraints:
The daily requirement of nurses in a private nursing home is given in the following
table. The nurses start working at the beginning of the shift i.e. at 8 am, 12 noon
etc and work for 8 continuous hours. What is the minimum number of nurses
required to meet the daily demand?
The demands for 2 weeks for a product are 800 and 1000 units respectively. The
company can produce up to 700 units in regular production hours @ Rs 100/
product. It can employ overtime and produce up to an extra 300 units in a week @
Rs 120/ product. The cost of carrying a product from one week to the next week is
Rs 15/product/week. How should they design their production plan to meet the
demand at minimum cost?
Formulation III - Production Planning
The demands for 2 weeks for a product are 800 and 1000 units respectively. The
company can produce up to 700 units in regular production hours @ Rs 100/
product. It can employ overtime and produce up to an extra 300 units in a week @
Rs 120/ product. The cost of carrying a product from one week to the next week is
Rs 15/product/week. How should they design their production plan to meet the
demand at minimum cost?
Identifying Decision Variables
Let,
x1 be the number of products to be produced using regular time in week 1
x2 be the number of products to be produced using regular time in week 2
y1 be the number of products to be produced using over time in week 1
y2 be the number of products to be produced using over time in week 2
w be the number of products to be carried from week 1 to week 2
Formulation III - Production Planning, Contd.
Objective function:
subject to:
Formulation III - Production Planning, Contd.
Objective function:
subject to:
x1 + y1 = 800 + w
Formulation III - Production Planning, Contd.
Objective function:
subject to:
x1 + y1 = 800 + w
w + x2 + y2 = 1000
Formulation III - Production Planning, Contd.
Objective function:
subject to:
x1 + y1 = 800 + w
w + x2 + y2 = 1000
x1 ≤ 700 , x2 ≤ 700
Formulation III - Production Planning, Contd.
Objective function:
subject to:
x1 + y1 = 800 + w
w + x2 + y2 = 1000
x1 ≤ 700 , x2 ≤ 700
y1 ≤ 300 , y2 ≤ 300
Formulation III - Production Planning, Contd.
Objective function:
subject to:
x1 + y1 = 800 + w
w + x2 + y2 = 1000
x1 ≤ 700 , x2 ≤ 700
y1 ≤ 300 , y2 ≤ 300
x1 , x2 , y1 , y2 , w ≥ 0
Formulation III - Production Planning, Contd.
Modified Formulation
Putting w = x1 + y1 − 800 the objective function becomes:
subject to:
x1 + y1 ≥ 800
Formulation III - Production Planning, Contd.
Modified Formulation
Putting w = x1 + y1 − 800 the objective function becomes:
subject to:
x1 + y1 ≥ 800
x1 + x2 + y1 + y2 = 1800
Formulation III - Production Planning, Contd.
Modified Formulation
Putting w = x1 + y1 − 800 the objective function becomes:
subject to:
x1 + y1 ≥ 800
x1 + x2 + y1 + y2 = 1800
x1 ≤ 700 , x2 ≤ 700
Formulation III - Production Planning, Contd.
Modified Formulation
Putting w = x1 + y1 − 800 the objective function becomes:
subject to:
x1 + y1 ≥ 800
x1 + x2 + y1 + y2 = 1800
x1 ≤ 700 , x2 ≤ 700
y1 ≤ 300 , y2 ≤ 300
Formulation III - Production Planning, Contd.
Modified Formulation
Putting w = x1 + y1 − 800 the objective function becomes:
subject to:
x1 + y1 ≥ 800
x1 + x2 + y1 + y2 = 1800
x1 ≤ 700 , x2 ≤ 700
y1 ≤ 300 , y2 ≤ 300
x1 , x2 , y1 , y2 ≥ 0
Formulation III - Production Planning, Contd.
Modified Formulation
Second functional constraint with ≥ rather than = will indicate the excess
production incurring holding cost in objective function
Constraints:
x1 + y1 ≥ 800
Formulation III - Production Planning, Contd.
Modified Formulation
Second functional constraint with ≥ rather than = will indicate the excess
production incurring holding cost in objective function
Constraints:
x1 + y1 ≥ 800
x1 + x2 + y1 + y2 ≥ 1800
Formulation III - Production Planning, Contd.
Modified Formulation
Second functional constraint with ≥ rather than = will indicate the excess
production incurring holding cost in objective function
Constraints:
x1 + y1 ≥ 800
x1 + x2 + y1 + y2 ≥ 1800
x1 ≤ 700, x2 ≤ 700 , y1 ≤ 300, y2 ≤ 300
Formulation III - Production Planning, Contd.
Modified Formulation
Second functional constraint with ≥ rather than = will indicate the excess
production incurring holding cost in objective function
Constraints:
x1 + y1 ≥ 800
x1 + x2 + y1 + y2 ≥ 1800
x1 ≤ 700, x2 ≤ 700 , y1 ≤ 300, y2 ≤ 300
x1 , x2 , y1 , y2 ≥ 0
Now the objective function becomes:
Regular Cost Overtime Cost
z }| { z }| {
min z = 100x1 + 100x2 + 120y1 + 120y2
+15 {(x1 + y1 − 800) + (x1 + x2 + y1 + y2 − 1800)}
| {z }
Carrying Cost
Formulation III - Production Planning, Contd.
Modified Formulation
Second functional constraint with ≥ rather than = will indicate the excess
production incurring holding cost in objective function
Constraints:
x1 + y1 ≥ 800
x1 + x2 + y1 + y2 ≥ 1800
x1 ≤ 700, x2 ≤ 700 , y1 ≤ 300, y2 ≤ 300
x1 , x2 , y1 , y2 ≥ 0
Now the objective function becomes:
Regular Cost Overtime Cost
z }| { z }| {
min z = 100x1 + 100x2 + 120y1 + 120y2
+15 {(x1 + y1 − 800) + (x1 + x2 + y1 + y2 − 1800)}
| {z }
Carrying Cost
= 130x1 + 115x2 + 150y1 + 135y2 − 39, 000
Formulation III - Production Planning, Contd.
Modified Formulation
Second functional constraint with ≥ rather than = will indicate the excess
production incurring holding cost in objective function
Constraints:
x1 + y1 ≥ 800
x1 + x2 + y1 + y2 ≥ 1800
x1 ≤ 700, x2 ≤ 700 , y1 ≤ 300, y2 ≤ 300
x1 , x2 , y1 , y2 ≥ 0
Now the objective function becomes:
Regular Cost Overtime Cost
z }| { z }| {
min z = 100x1 + 100x2 + 120y1 + 120y2
+15 {(x1 + y1 − 800) + (x1 + x2 + y1 + y2 − 1800)}
| {z }
Carrying Cost
= 130x1 + 115x2 + 150y1 + 135y2 − 39, 000
Formulation IV - Caterer Problem
The requirements of napkins on five consecutive days of dinner are 100, 60, 80,
90 and 70. New napkins cost Rs 60. Napkins sent to laundry at the end of any day
take one full day for washing etc. The laundry cost is Rs 20/ napkin. Find a plan to
minimize the total cost of usage of napkins in terms of buying new ones or sending
the used napkins to laundry.
Formulation IV - Caterer Problem
The requirements of napkins on five consecutive days of dinner are 100, 60, 80,
90 and 70. New napkins cost Rs 60. Napkins sent to laundry at the end of any day
take one full day for washing etc. The laundry cost is Rs 20/ napkin. Find a plan to
minimize the total cost of usage of napkins in terms of buying new ones or sending
the used napkins to laundry.
Identifying Decision Variables
Let,
x1 to x5 be the numbers of napkins to be bought on each day
and
y1 to y3 be the numbers of napkins to be sent to laundry at the end of the day
Formulation IV - Caterer Problem, Contd.
Formulating the constraints
Day 1 demand:
For day 1, no other option than buying. So,
x1 ≥ 100
Formulation IV - Caterer Problem, Contd.
Formulating the constraints
Day 1 demand:
For day 1, no other option than buying. So,
x1 ≥ 100
Day 2 demand:
x1 − 100 unused napkins are carried over from day 1 to day 2
x1 − 100 + x2 ≥ 60
≡ x1 + x2 ≥ 160
Formulation IV - Caterer Problem, Contd.
Formulating the constraints
Day 1 demand:
For day 1, no other option than buying. So,
x1 ≥ 100
Day 2 demand:
x1 − 100 unused napkins are carried over from day 1 to day 2
x1 − 100 + x2 ≥ 60
≡ x1 + x2 ≥ 160
Day 3 demand:
Is given by Extra napkins from day 2 + new napkins on day 3 + napkins from
laundry from day 1
x1 + x2 − 160 + x3 + y1 ≥ 80
≡ x1 + x2 + x3 + y1 ≥ 240
Formulation IV - Caterer Problem, Contd.
Day 4 demand:
x1 + x2 + x3 + y1 − 240 + x4 + y2 ≥ 90
≡ x1 + x2 + x3 + x4 + y1 + y2 ≥ 330
Day 5 demand:
x1 + x2 + x3 + x4 + y1 + y2 − 330 + x5 + y3 = 70
≡ x1 + x2 + x3 + x4 + x5 + y1 + y2 + y3 = 400
Formulation IV - Caterer Problem, Contd.
y1 ≤ 100
y2 ≤ 60
y3 ≤ 80
Formulation IV - Caterer Problem, Contd.
y1 ≤ 100
y2 ≤ 60
y3 ≤ 80
Objective function:
X5 3
X
min z = 60( xi ) + 20( yj )
i=1 j=1
Formulation IV - Caterer Problem, Contd.
Let the number of new napkins bought in day i be Xi and number of napkins sent
to the laundry at the end of day i be Yi
Objective function:
n
X n−p
X
min z = c xi + a yi
i=1 i=1
subject to:
i
X X i i
X
xj + yj ≥ di ∀i
j=1 j=p+1 j=1
yi ≤ di
xi , yi ≥ 0
Here,
c = Cost of new napkin a = Laundry cost
d = Demand p = Laundry days
Formulation V - Cutting Stock Problem
Consider a big steel roll from which steel sheets of same lengths but different
widths to be cut. Lets us assume that the roll is of 20 inches width and the
following sizes have to be cut:
▶ 9 inches - 511 pieces
▶ 8 inches - 301 pieces
▶ 7 inches - 263 pieces
▶ 6 inches - 383 pieces
It is assumed that all the cut sheets have the same length of 25 inches (One
dimensional cutting). The problem is to cut the sheets in such a way to minimize
the wastage of material.
Formulation V - Cutting Stock Problem
Let us define the waste first
If we cut only 9 inches pieces from 20 inches then waste is = 20 − 2 × 9 = 2
If we cut only 8 inches pieces from 20 inches then waste is = 20 − 2 × 8 = 4
In this way, identify the wastes for different cutting patterns:
2x1 + x5 + x6 + x7 = 511
2x2 + x5 + x8 + x9 = 301
2x3 + x6 + x8 + x10 = 263
x3 + 3x4 + x7 + 2x9 + 2x10 = 383
xj ≥ 0 and Integer
Objective Function
min 2x1 + 4x2 + 2x4 + 3x5 + 4x6 + 5x7 + 5x9 + x10
Here, = type of constraints are used to bring out the fact that anything left is of no
use
Formulation V - Cutting Stock Problem
Instead of forced constraints of = type if we plan for to reuse the waste material
Identifying Decision Variables: xj : number of sheets cut using pattern j
Identifying Constraints: From the table of patterns, develop the constraints:
2x1 + x5 + x6 + x7 ≥ 511
2x2 + x5 + x8 + x9 ≥ 301
2x3 + x6 + x8 + x10 ≥ 263
x3 + 3x4 + x7 + 2x9 + 2x10 ≥ 383
xj ≥ 0 and Integer
Objective Function min 2x1 + 4x2 + 2x4 + 3x5 + 4x6 + 5x7 + 5x9 + x10
Formulation VI - Water Supply Network Design
A Water Treatment Plant wants to pump water from Source (S) to Destination (D)
or Sink using the network in diagram. Nodes 1 to 5 are the internal nodes between
S and D. This type of network is called as Directed Acyclic Network as there is no
cycle between the nodes. The connecting arcs between the nodes are having a
particular carrying capacity in million gallons written on the arc. Objective is to find
out the flow in each arc so that there is maximum flow of water i.e. the amount of
water supplied by S must fully reach to the D. No node has any storage in it.
2
10
20
f 30 f
25
30
S 1 4 5 D
35
40
20
3
Formulation VI - Water Network Design, Contd.
Identifying Decision Variables Let, xij be the flow in arc connecting node i and j
Formulation VI - Water Network Design, Contd.
Identifying Decision Variables Let, xij be the flow in arc connecting node i and j
So, Decision variables are x12 , x13 , . . ., x45
Formulation VI - Water Network Design, Contd.
Identifying Decision Variables Let, xij be the flow in arc connecting node i and j
So, Decision variables are x12 , x13 , . . ., x45
Constraints: Capacity Constraints on Arcs:
x12 ≤ 20, x13 ≤ 40, x23 ≤ 30, x24 ≤ 30, x34 ≤ 35, x25 ≤ 10, x45 ≤ 25, x35 ≤ 20
Formulation VI - Water Network Design, Contd.
Identifying Decision Variables Let, xij be the flow in arc connecting node i and j
So, Decision variables are x12 , x13 , . . ., x45
Constraints: Capacity Constraints on Arcs:
x12 ≤ 20, x13 ≤ 40, x23 ≤ 30, x24 ≤ 30, x34 ≤ 35, x25 ≤ 10, x45 ≤ 25, x35 ≤ 20
Flow Constraints: Lets suppose that, entering amount at Node 1 is f . So the exit
amount from Node 5 also will be f .
Objective function:
8
X
min yj = y1 + y2 + . . . + y8
j=1
Formulation VII - Bin Allocation Problem, Contd.
Constraints
Each number must belong to one and only one group.