Operation Research and Optimization Techniques
Operation Research and Optimization Techniques
Optimization Techniques
(CsEg3071)
By Diriba A.
BHU, 2024
Chapter 1: Operations Research Dev’t
Basic Content:
Overview
Characteristics and Phases
Models
Linear Programming Problem Formulation
1.1: What is Operations Research?
Operations (US), Operational(Brit/Europe)
is an analytical method of problem-solving and decision-
making that is useful in the management of
organizations.
In OR, problems are broken down into basic
components and then solved in defined steps by
mathematical analysis.
Cont.
OR Purpose: to provide a rational basis for decisions
making in the absence of complete information.
1. Problem Formulation:
Identifying a problem that needs to be solved.
Who and What?
Analyst, expert teams examines situation
Clearly define what exactly happening
Identify objective, constraint and variables.
How?
System Study: gather info, consult and develop problem.
Cont.
Model representation:
diagrams, maps, flowcharts, mathematical equations, graphs,
computer simulations, or physical replicas of the system.
2 Basic Purposes of Models:
i. to convey the current understanding of a system or
ii. to generate a new understanding of the system or both.
Cont.
Aim of Models :
to offer ways for examining the performance of the
system for further improvement.
Cont.
Steps in Modelling:
1.Defining the problem
2.Collecting data
3.Building a model of the system
4.Deriving a solution
5.Testing to validate the model and the solution
6.Implementing the solution
Cont.
Principles of Modelling:
If a simple model will be adequate, never choose a
complicated model.
Remember, models never replace decision-makers.
Deduction phase of modeling must be performed diligently.
Validation of models is necessary before implementation.
A model is only as good as the information that it is given.
Cont.
Limitations of Models
Constructed only to understand and attempt to solve the
problem not to be considered as real problem or system.
Validity of any model is verified by experimental analysis
with relevant data characteristics.
1.4. Linear Programming Problem Formulation in OR
Decision Variables
Constraints
Data
Objective Functions
Cont.
Graphical method
Simplex method
Tools such as R, open solver, etc.
Cont.
i. Graphical Method:
Used to optimize the two-variable linear programming.
If the problem has two decision variables, a graphical method is
the best method to find the optimal solution.
The set of inequalities is subjected to constraints are plotted in
the XY plane.
Cont.
Man-days/
Variety Cost (Price/Hec) Net Profit (Price/Hec)
Hec
Wheat 100 50 10
3. The third constraint is the total area present for the plantation.
The total available area is 110 hectares. So the equation
becomes, X + Y ≤ 110
Step 4. Non-Negative Restriction
The values of X and Y will be greater than or equal to 0.
X ≥ 0, Y ≥ 0
Cont.
To plot the graph for the above equations, first, simplify all the
equations.
100X + 200Y ≤ 10,000 can be simplified to X + 2Y ≤ 100 by
dividing by 100.
10X + 30Y ≤ 1200 can be simplified to X + 3Y ≤ 120 by
dividing by 10.
The third equation is in its simplified form, X + Y ≤ 110.
Cont.
4. The most negative entry in the bottom row identifies the pivot
column.
5. Calculate the quotients: the smallest quotient identifies a row.
The element in the column intersection identified in step 4 and the row
identified in this step is the pivot element.
The quotients are computed by dividing the far right column by the
identified column in step 4.
A quotient that is a zero, a negative number, or a zero in the
denominator, is ignored.
Cont.
e.g. Niki holds two part-time jobs, Job I and Job II.
She never wants to work more than a total of 12 hours a week. She
has determined that for every hour she works at Job I, she needs 2
hours of preparation time, and for every hour she works at Job II, she
needs one hour of preparation time, and she cannot spend more than
16 hours on preparation.
If she makes $40 an hour at Job I, and $30 an hour at Job II, how
many hours should she work per week at each job to maximize her
income?
Cont.
Step 1. Set up the problem: write the objective function and the
constraints.
Since the simplex method is used for problems that consist of
many variables, it is not practical to use the variables x, y, z, etc.
We use symbols x1, x2, x3, and so on.
Let
x1 = The number of hours per week Niki will work at Job I and
x2 = The number of hours per week Niki will work at Job II.
Cont.
Here the vertical line separates the left hand side of the equations
from the right side. The horizontal line separates the constraints
from the objective function. The right side of the equation is
represented by the column C.
Cont.
Niki works 8 hours at Job I, and no hours at Job II, her profit Z will
be $320.
Here y_1 = 4 and y_2 = 0 mean that she will be left with 4 hours of
working time and no preparation time.
Cont.
1
Make the pivot element 1 by multiplying row 1 by 2
Cont.
iii. R:
is an open-source tool that is very popular among data scientists
for essential data science tasks.
Performing linear programming is very easy and we can attain
an optimum solution in very few steps.
Used for more than two decision variables or complex problems.
Lpsolve package used for LPP to evaluate the optimum solution.
Example 3: Linear Programming Problem (R Programming)
Solution:
The objective function is: Max.Z=25x+20y, where x are pipe A
units and y are pipe B units.
Constraints: 20x+12y<=2000
5x+5y<=540
Cont.
Output
Cont.