For OR
For OR
Thus, operations research is applied to problems that concern how to conduct and
coordinate the operations (i.e., the activities) within an organization.
The nature of the organization is essentially immaterial, and, in fact, OR has been
applied extensively in such diverse areas as manufacturing, transportation,
construction, telecommunications, financial planning, health care, the military, and
public services, to name just a few.
(ii) O.R. is a tool for taking decisions which searches for the optimum results in
parity with the overall objectives and constraints of the organization.
The procedure for making decisions with the OR study generally involves
the following three phases:
(i) Judgment Phase:
i. Determination of operation.
ii. Determination of objectives.
iii. Determination of effectiveness of measures.
iv. Determination of type of problem, its origin and causes.
(ii) Research Phase:
i. Observation and data collection for better understanding of the problem.
ii. Formulation of relevant hypothesis and models.
iii. Analysis of available information and verification of hypothesis.
iv. Production and generation of results and consideration of alternatives.
1. In Agriculture
• Optimum allocation of land to various crops in accordance with the
climate conditions.
• Optimum distribution of water from various resources like canal for
irrigation purposes.
2. In Finance
• to maximize the per capita income with minimum resources.
• to find out the profit plan for the company
• to determine the best replacement policies
3. In Industry
• for deciding optimum allocation of various limited resources such as
men, machines, material, money, time etc.
• Complexity, Scattered Responsibility
• Knowledge Explosion
4. In Marketing
• Where to distribute the products for sale so that the total cost of
transportation is minimum
• the minimum per unit sale price ?
• the size of the stock to meet the future demand ?
• how to select best adv. media w.r.t. time, cost etc. ?
• how, when & what to purchase at the minimum possible cost ?
5. In Personnel Management
• to appoint the most suitable person on minimum salary.
• to determine the best age of retirement for the employees.
• to find out the no. of persons to be appointed on full time basis when
the workload is seasonal.
6. In production Management
• to find out the no. & size of items to be produced.
• in scheduling & sequencing the production run by proper allocation of machines.
• in calculating the optimum product mix.
• to select, locate & design the sites for the production plants.
Main characteristics of operations research (O.R.) are follows:
(i) Inter-Disciplinary Team Approach:
This requires an inter-disciplinary team including individuals with
skills in mathematics, statistics, economics, engineering, material
sciences, computer etc.
(ii) Holistic Approach to the System:
While evaluating any decision, the important interactions and their impact on
the whole organization against the functions originally involved are reviewed.
(iii) Objectives:
Considering the problem as whole, objectives should be defined.
(iv) Alternatives:
The O.R. study determines as to which alternative course of action is most
effective to achieve the desired objectives. Expected reactions of the
competitors to the alternative must also be considered.
2. Deriving Solution:
Models are used to determine the solution either by simulation or by
mathematical analysis.
The validity of the solution is checked by comparing the results with those ob
tained without using the model.
4. Establishing Controls over the Solution:
The solution derived from a model remains effective so long as the uncontrolled
variables retain their values and the relationship.
After applying the solution to the system, O.R. group must study the response of
the system to the changes made.
Operation Research Models:
Operation Research model is an idealized representation of the real life situation
and represents one or more aspects of reality.
Objective of the model is to provide a means for analyzing the behavior of the
system for improving its performance.
Classification of Models:
The models we use in operations research may broadly classified as:.
it is very difficult to remember about the variables and constraints, in case
machines A, B, and C.
on machine C.
Similarly, product Y takes one hour, 8 hours and 7 hours on Machine A, B, and
C respectively.
In the coming planning period, 40 hours of machine A, 240 hours of machine
Each unit of X brings a profit of Rs 5/- and Y brings Rs. 7 per unit.
The team of specialists prepares this statement after studying the system.
objective function.
(ii) Mathematical Model
• 1x + 1y ≤ 40
Such problems are generally faced by the managers of mutual funds, banks and
insurance companies.
(ii) In deciding financial mix strategies, involving the selection of means for
financing firm, projects, inventories etc.
Chapter 2:
2.1. INTRODUCTION.
A model, which is used for optimum allocation of scarce or limited
resources to competing products or activities under such assumptions as
certainty, linearity, fixed technology, and constant profit per unit, is linear
programming.
Linear Programming is one of the most versatile, powerful and useful
techniques for making managerial decisions.
Linear Programming Technique are used for solving operation problems having
many variables subject to certain restrictions.
competing activities for achieving our desired objective, the technique that helps
us is LINEAR PROGRAMMING
Linear programming uses a mathematical model to describe the problem of
concern.
The adjective linear means that all the mathematical functions in this model are
required to be linear functions.
The word programming does not refer here to computer programming; rather,
it is essentially a synonym for planning.
Any linear programming model (problem) must have the following properties:
(a) The relationship between variables and constraints must be linear.
(b) The model must have an objective function.
(c) The model must have structural constraints.
(d) The model must have non-negativity constraint.
2.2.1. General Linear Programming Problem
A general mathematical way of representing a Linear Programming Problem
(L.P.P.) is as given below:
To show the relationship between left hand side and right hand side the
To formulate the model, let the company manufactures x units of X and y units
of Y. As the profit contributions of X and Y are Rs.5/- and Rs. 4/- respectively.
2. It is assumed that the relationship between variables in the problem and the
resources available i.e., constraints of the problem exhibits linearity.
3. We assume here fixed technology. Fixed technology refers to the fact that the
production requirements are fixed during the planning period and will not change
in the period.
5. It is assumed that the decision variables are continuous. It means that the
companies manufacture products in fractional units. For example, company
manufacture 3.2 barrels of oil etc. This is referred to as the assumption of
divisibility.
6. It is assumed that only one decision is required for the planning period.
This condition shows that the linear programming model is a static model,
which implies that the linear programming problem is a single stage decision
problem. (Note: Dynamic Programming problem is a multistage decision
problem).
7. All variables are restricted to nonnegative values (i.e., their numerical value
will be ≥ 0).
2.3. Maximization models
Example 2. A retail store stocks two types of shirts A and B. These are packed in
attractive cardboard boxes. During a week the store can sell a maximum of 400
shirts of type A and a maximum of 300 shirts of type B. The storage capacity,
however, is limited to a maximum of 600 of both types combined. Type A shirt
fetches a profit of Rs. 2/- per unit and type B a profit of Rs. 5/- per unit.
Solution: Here shirts A and B are problem variables. Let the store stock ‘a’ units
of A and ‘b’ units of B. As the profit contribution of A and B are Rs.2/- and Rs.5/-
respectively, objective function is:
Maximize Z = 2a + 5b subjected to condition (s.t.)
Structural constraints are, stores can sell 400 units of shirt A and 300 units of
shirt B and the storage capacity of both put together is 600 units. Hence the
structural constraints are:
1a + 0b ≤ 400 and 0a + 1b ≤ 300 for sales capacity and
1a + 1b ≤ 600 for storage capacity.
And non-negativity constraint is both a and b are ≥ 0. Hence the model is:
Maximize Z = 2a + 5b s.t.
1a + 0b ≤ 400
0a + 1b ≤ 300
1a + 1b ≤ 600 and
Both a and b are ≥ 0.
2.4. Minimization models
Example 3. A patient consult a doctor to check up his ill health. Doctor examines
him and advises him that he is having deficiency of two vitamins, vitamin A and
vitamin D. Doctor advises him to consume vitamin A and D regularly for a
period of time so that he can regain his health. Doctor prescribes tonic X and
tonic Y, which are having vitamin A, and D in certain proportion. Also advises
the patient to consume at least 40 units of vitamin A and 50 units of vitamin D
daily. The cost of tonics X and Y and the proportion of vitamin A and D that
present in X and Y are given in the table below.
This method takes too much of time and laborious, hence this method is not
discussed here.
3. The Vector method. In this method each decision variable is considered as a
vector and principles of vector algebra is used to get the optimal solution.
4. The Simplex method. When the problem is having more than two decision
variables, simplex method is the most powerful method to solve the problem.
2.5.1. Graphical Method
In graphical method, the inequalities (structural constraints) are considered to
be equations.
Only two variable problems are considered, because we can draw straight
lines in two-dimensional plane (X- axis and Y-axis).
The characteristics of Graphical method are:
(i) Generally the method is used to solve the problem, when it involves two
decision variables.
(ii) For three or more decision variables, the graph deals with planes and
requires high imagination to identify the solution area.
(iv) This method provides a basis for understanding the other methods of
solution.
Example. A company manufactures two products, X and Y by using three machines A, B,
and C.
Similarly, the available capacity of machines B and C during the coming week is 24 hours
and 35 hours respectively.
One unit of product X requires 1 hour of Machine A, 3 hours of machine B and 10 hours
of machine C.
Similarly one unit of product Y requires 1 hour, 8 hour and 7 hours of machine A, B and C
respectively.
When one unit of X is sold in the market, it yields a profit of Rs. 5/- per product and that
of Y is Rs. 7/- per unit.
Machine B When x = 0 , y = 24/8 = 3 and when y = 0 x = 24/3 = 8
Machine C When x = 0, y = 35/10 = 3.5 and when y = 0, x = 35 / 7 = 5.
These values we can plot on a graph, taking product X on x-axis and product Y
on y- axis.
The above Figure 2.5 shows the feasible area for all the three machines
combined.
This is the fact because a products X and Y are complete when they are
processed on machine A, B, and C.
The area covered by all the three lines PQ. RS, and TU form a closed polygon
is the feasible area for the three machines.
This means that all the points on the lines of polygon and any point within the
polygon satisfies the inequality conditions of all the three machines.
To find the optimal solution, we use the following method
Hence the optimal solution for the problem is company has to manufacture
1.6 units of product X and 2.4 units of product Y, so that it can earn a
maximum profit of Rs. 24.80 in the planning period.
2. Linear Programming Models Solution by Simplex Method
As discussed earlier, there are many methods to solve the Linear Programming Problem,
such as
Graphical Method,
Simplex Method.
Though we use graphical method for solution when we have two problem variables, the
other method can be used when there are more than two decision variables in the problem
Among all the methods, SIMPLEX METHOD is most powerful method.
The Simplex tableau is optimal, if in the 0th row there are no negative
coefficients in any NBVs.
If the tableau is optimal the algorithm terminates, and the optimal value and
decision can be read from the BV and RHS columns.
• Determine the leaving variable In Step 3 we chose some variable to enter as a new
BV. Now we have to make one of the old BVs to leave to be a NBV. Now each BV in a
Simplex tableau is associated to some row. The leaving BV will the one associated to
the row that wins the ratio test (the smallest value is the winner)
RHS of row
Coefficient of entering variable in row
The idea of the ratio test is, that we shall increase the entering variable as much as
possible. At some point the increasing of the entering variable will force one of the BVs
to become zero. This BV will then leave. The ratio test picks up the row associated to the
leaving variable.
Determine the entering variable If the BFS is not optimal, we have to change
the BVs. One of the NBVs will become a BV (entering), and one of the old BVs
will become a NBV (leaving).
The entering variable will be the one with smallest coefficient in the 0th row.
Indeed, this way we increase the value of the objective z the most
Comparisons between graphical and simplex methods
1. The graphical method is used when we have two decision variables in the
problem.
Whereas in Simplex method, the problem may have any number of decision
variables.
But in Simplex method, the inequalities are converted into equations by:
Adding a SLACK VARIABLE in maximisation problem and
subtracting a SURPLUS VARIABLE in case of minimisation problem.
3. In graphical solution the Isoprofit line moves away from the origin to towards
the far off point in maximisation problem and
In minimisation problem, the Isocost line moves from far off distance towards
origin to reach the nearest point to origin.
4. In graphical method, the areas outside the feasible area (area covered by all the
lines of constraints in the problem) indicates idle capacity of resource
Where as in Simplex method, the presence of slack variable indicates the idle
capacity of the resources.
5. In graphical solution, if the isoprofit line coincides with more than one point of
the feasible polygon, then the problem has second alternate solution.
In case of Simplex method if the net evaluation row has zero for non-basis
variable the problem has alternate solution.
Basic Linear Algebra
Matrices and Vectors
Matrices
D E F I N I T I O N ■ A matrix is any rectangular array of numbers. ■
Matrix Operations
o The Scalar Multiple of a Matrix
Given any matrix A and any number c (a number is sometimes referred to as a scalar), the matrix cA is
obtained from the matrix A by multiplying each element of A by c. For example,
o Addition of Two Matrices
MAXIMISATION CASE
As we do not know the exact values of decision variables a and b how much to
add to convert the inequality into an equation.
Slack variable for first inequality is S1, that of second one is S2 and that of
‘n’th inequality is Sn.
Regarding the objective function, if we sell one unit of A it will fetch the
company Rs. 23/– per unit and that of B is Rs. 32/– per unit.
If company does not manufacture A or B, all resources remain idle. Hence the
profit will be Zero birr.
This clearly shows that the profit contribution of each hour of idle resource is
zero.
In Linear Programming language, we can say that the company has capacity of
manufacturing 2,500 units of S1, i.e.,
Hence the profit contributions of S1, S2 and S3 are Rs.0/– per unit.
By using this concept, the inequalities are converted into equations as shown
below:
2. The second column, labeled as Profit per unit in birr shows the profit co-
efficient of the basic variables i.e., Cb.
3. In the quantity column, that is 3rd column, the values of the basic variables in
the programme or solution i.e, S1, S2 and S3 i.e., 2500, 2000 and 500
respectively. The variables that are not present in this column are known as
non-basic variables. The values of non-basis variables are zero.
4. In any programme, the profit contribution, resulting from manufacturing the
quantities of basic variables in the quantity column is the sum of product of
quantity column element and the profit column element. In the present table
the total profit is Z = 2500 × 0 + 2000 × 0 + 500 × 0 = Rs. 0.00.
5. The number in the net evaluation row, Cj – Zj row gives the net effect of
exchange between one unit of each variable and basic variables.
In general, select the variable, which is having higher opportunity cost as the
incoming variable (or select the variable, which is having highest positive
number in the net evaluation row.
Hence the opportunity cost of product ‘b’ is higher than that of ‘a’, hence ‘b’
will be the incoming variable. This column is known as KEY COLUMN.
Divide the capacity column elements by key column numbers to get
REPLACEMENT RATIO COLUMN ELEMENTS, which show that how
much of variable ‘b’ can be manufactured in each department, without violating
the given constraints.
Select the lowest replacement ratio and mark a tick (√) at the end of the row,
which indicates OUT GOING VARIABLE/ KEY ROW. In the problem 200
units is the limiting ratio, which falls against S2, i.e., S2 is the outgoing
variable.
This means that the entire capacity of machine Y is utilized.
The element at the intersection of key column and key row is known as KEY
NUMBER. This is known as key number because with this number we have to
get the next table.
For getting the revised programme, we have to transfer the rows of table 1 to
table 2. To do this the following procedure is used.
Step 1: To Write the incoming variable ‘b’ in place of out going variable S2.
Enter the profit of ‘b’ in profit column. Do not alter S1 and S3. While doing so
DO NOT ALTER THE POSITION OF THE ROWS.
Step 4: Elements of Net evaluation row are obtained by: Objective row element
at the top of the row – Σ new key column element × new profit column element.
Step 5: Select the highest positive element in net evaluation row or highest
opportunity cost and mark the column by an arrow to indicate key column
(incoming variable).
Step 6: Find the replacement ratios by dividing the capacity column element in
the row by key column element of the same row and write the ratios in
replacement ratio column. Select the limiting (lowest) ratio and mark with a tick
mark to indicate key row (out going variable).
The element at the intersection of key column and key row is known as key
number.
This discovery revealed that every linear programming problem has associated
with it another linear programming problem called the dual.
The relationships between the dual problem and the original problem (called
the primal) prove to be extremely useful in a variety of ways.
One of the key uses of duality theory lies in the interpretation and
implementation of sensitivity analysis.
Because most of the parameter values used in the original model are just
estimates of future conditions, the effect on the optimal solution if other
conditions prevail instead needs to be investigated.
The dual problem uses exactly the same parameters as the primal problem,
but in different locations.
Consequently,
(1) The parameters for a constraint in either problem are the coefficients of
a variable in the other problem and
(2) The coefficients for the objective function of either problem are the
right sides for the other problem.
Primal-Dual Relationships
Weak duality property: If x is a feasible solution for the primal problem and
and y* is an optimal solution for the dual problem, then cx* = y*b.
Complementary solutions property (CSP): At each iteration, the simplex
method simultaneously identifies a feasible solution x for the primal problem
Symmetry property: For any primal problem and its dual problem, all
relationships between them must be symmetric because the dual of this dual
problem is this primal problem.
Economic interpretation of duality
solution of making changes in the values of the model parameters aij, bi, and
cj.
However, changing parameter values in the primal problem also changes
the corresponding values in the dual problem. Because of the primal-dual
relationships it is easy to move back and forth between the two problems as
desired.
In some cases, it is more convenient to analyze the dual problem directly in
order to determine the complementary effect on the primal problem.
Therefore, one main purpose of sensitivity analysis is to identify the sensitive
parameters (i.e., the parameters whose values cannot be changed without
changing the optimal solution).
ASSIGNMENT
Convert the following dual problem to their respective primal problem.
1. 2.
CHAPTER 4
INTEGER PROGRAMMING
PURE-INTEGER PROBLEMS
MIXED-INTEGER PROBLEMS
– Require some, but not all, of the decision variables to have integer values in the
final solution, whereas others need not have integer values.
3. If all the basic variables have integer values, Optimality of the Integer
programming problem is reached. So go step 7; otherwise go to step 4.
4. Examine the constraints corresponding to the current optimal solution.
For each Basic Variable with non-integer solution in the current optimal
table, find the fractional part, fi ,
Therefore, bi = [bi] + fi, where [bi] is the integer part of bi, and
6. Add the fractional cut as the last row in the latest optimal table and proceed
further using simplex method, and find the new optimum solution.
BRANCHING:
“If the solution to the linear programming problem contains value of the
decision variable “X1” is 2.5, then two more problems will be created by using
each of the following constraints. X1 ≤ 2 and X1 ≥ 3.
BOUND:
UPPER BOUND: The upper bound is the value of the objective function
corresponding to the linear programming solution.
FATHOMED SUBPROBLEM / NODE: A problem is said to be fathomed if
any one of the following three conditions is true:
2. The upper bound of the problem which has non–integer values for its decision
variables is not greater than the current best lower bound.
This means that further branching from this type of fathomed nodes is not
necessary.
Branch & bound algorithm applied to maximization problem:
2. Check, Whether the problem has integer solution. If yes, print the current
solution as the optimal solution and stop; Otherwise go to Step–3.
3. Identify the variable Xk which has the maximum fractional part as the
branching variable.
4. Create two more problems by including each of the following constraints to
the current problem and solve them.
a. Xk ≤ Integer part of Xk
b. Xk ≥ Next Integer of Xk
5. If any one of the new sub-problems has infeasible solution or fully integer
values for the decision variables, the corresponding node is fathomed.
5
Once they are equal, go to step two. If not by opening a Dummy row or Dummy
column balance the problem. The cost coefficients of dummy cells are zero.
Step II. A .Basic feasible solution can be obtained by three methods, they are
(b) Least - cost cell method. (Or Inspection method Or Matrix minimum - row
minimum - column minimum method)
1. The allocation made must satisfy the rim requirements, i.e., it must satisfy availability
constraints and requirement constraints.
This will have four constraints of ≤ type and three constraints of ≥ type.
a) North- west corner method
b) Solution by Least cost cell (or inspection) Method:
ASSIGNMENT
1. Use the graphical method find corner-point
feasible solutions (CPF solutions) and corner-point infeasible
solutions ?
Maximize Z = 3x1 + 5x2,
subject to
x1 ≤ 4
2x2 ≤12
3x1 + 2x2 ≤ 18
and
x1 ≥ 0, x2 ≥ 0
2. From the above equation Find optimal solution using simplex tableau
step by step
THE END !!!