Or Lecture Notes 2023-2024 Hitl
Or Lecture Notes 2023-2024 Hitl
TACHI CLIFORD 1
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
1.1 TERMINOLOGY
Decision variables
Objective function
Constraints
Non negativity constraints
Problem formulation
Slack variables, surplus variables, artificial variables, Big M number.
Basic and non-basic variables
The problem formulation involves the mathematical model of the given problem written in the
algebraic form. It has the following steps:
1. Identifying the decision variables
2. Writing the objective function
3. Writing the constraints
4. Writing the non-negativity restriction
TACHI CLIFORD 2
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
and 12 units of R2 available. The manufacturer also makes a profit of 6frs per unit of product A
sold and 5frs per unit of product B sold.
Let us address the above problem: The manufacturer has to decide on the number of units of
products A and B to produce. It is acceptable that the manufacturer would like to make as much
profit as possible and would decide on the production quantities accordingly. The manufacturer
has to ensure that the resources needed to make the products are available.
Before we attempt to find out the decision of the manufacturer, let us redefine the problem in
an algebraic form. The manufacturer has to decide on the production quantities. Let us call them
X1 and X2 which are defined as follows:
X1 = Number of units of product A made
X2 = Number of units of product B made
The profit associated with X1 units of product A and X2 units of product B is 6 X1 + 5X2. The
manufacturer would determine X1 and X2 such that this function has a maximum value.
The requirements of the two resources are X1 + X2 for R1 and 3X1 + 2X2 for R2 and the
manufacturer has to ensure that these are available. The formulation of the linear programming
problem is as follows:
Maximize Z = 6X1 + 5X2
Subject to
X1 + X2 ≤ 5
3X1 + 2X2 ≤ 12
X1, X2 ≥ 0
TACHI CLIFORD 3
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
They have a budget restriction of 160 million frs and have 80 people available as crew. Formulate
a model to minimize the operating cost.
SOLUTION: Let us define
X1 = Number of vehicles of Type A being purchased
X2 = Number of vehicles of Type B being purchased
X3 = Number of vehicles of Type C being purchased
Objective function: Minimize Z = 200 X1 + 350 X2 + 300 X3
Constraint equation:
5X1 + 10X2 + 8X3 ≤ 160 (budget constraint)
2X1 + 4X2 + 4X3 ≤ 80 (crew constraint)
60X1 + 100X2 + 80X3 ≥ 2000
X1, X2, X3 ≥ 0 and integers
2. In a transport company, 6 trucks of Type 1, 10 trucks of Type 2 and 8 trucks of Type 3 are
available for each day’s requirement. The tonnage capacities are 16 for Type 1, 12 for Type 2 and
9 for Type 3.
The company dispatches its trucks to cities A and B. Tonnage requirements are 20 at city
A and 30 at city B; excess tonnage capacity supplied to a city has no value. Considering the
distance, it is possible for the trucks to go only once to the destinations every day. The cost of
sending a truck to each city is given in the table below:
TACHI CLIFORD 4
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
TACHI CLIFORD 5
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
At (0, 0), Z = 0
At (4, 0), Z = 24
At (0, 5), Z = 25
At (2, 3), Z = 27
We observe that the corner points (2, 3) given by the solution X1 = 2, X2 = 3 has the maximum
objective function value of Z = 27. This is the best solution or optimal solution.
TACHI CLIFORD 6
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
value and can solve for the remaining two variables. The two variables that we fix arbitrary values
can be chosen in 𝐶24 = 6 ways (since we have 4 variables and 2 equations). In each of these six
combinations, we can actually fix the variables to any arbitrary value resulting in infinite number
of solutions. However, we consider fixing the arbitrary value to zero and hence consider only six
distinct possible solutions. The variables that we fix to zero are called non-basic variables and
the variables that we solve are called basic variables. These solutions obtain by fixing the non-
basic variables to zero are called basic solutions. There are as many basic variables as the number
of constraints. The six basic solutions are:
1. Variables X1 and X2 are non-basic and set to zero. Substituting, we get S1 = 5, S2 = 12 and
the value of the objective function Z = 0.
2. Variables X1 and S1 are non-basic and set to zero. Substituting, we solve for X2 = 5 and
2X2 + S2 = 12 and get X2 = 5, S2 = 2 and the value of the objective function Z = 25.
3. Variables X1 and S2 are non-basic and set to zero. Substituting, we solve for X2 + S1 = 5 and
2X2 = 12 and get X2 = 6, S1 = -1.
4. Variables X2 and S1 are non-basic and set to zero. Substituting, we solve for X1 = 5 and 3X1
+ S2 = 12 and get X1 = 5, S2 = -3.
5. Variables X2 and S2 are non-basic and set to zero. Substituting, we solve for X1 + S1 = 5 and
3X1 = 12 and get X1 = 4, S1 = 1 and the value of the objective function Z = 24.
6. Variables S1 and S2 are non-basic and set to zero. Substituting, we solve for X1 + X2 = 5 and
3X1 + 2X2 = 12 and get X1 = 2, X2 = 3 and the value of the objective function Z = 27.
Among these six basic solutions, we observe that four are feasible. These basic solutions that are
feasible (satisfy all constraints) are called basic feasible solutions. The remaining two (solutions
3 and 4) have negative values for some variables and, therefore, infeasible. We are interested
only in feasible solutions and, therefore, do not evaluate the objective function for infeasible
solutions.
The optimal solution is the basic feasible solution that maximizes the objective function. The
optimal solution is X1 = 2, X2 = 3 and Z = 27. It is to be OBSERVED that there are as many variables
in the solutions as the number of constraints.
TACHI CLIFORD 7
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
Zj 0 0 0 0
Cj-Zj 6 5 0 0 0
TACHI CLIFORD 8
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
Cj 6 5 0 0
CB BV X1 X2 S1 S2 RHS Θ
0 S1 0 1/3 1 -1/3 1 3
6 X1 1 2/3 0 1/3 4 6
Zj 6 4 0 2
Cj-Zj 0 1 0 -2 24
CONCLUSION: The Cj-Zj values for the non-basic variables are -3 and -1 which are negative and
zeros for the basic variables. That is, all the values in the Cj-ZJ row (indicator row) are either
negatives or zeros since we have a maximization problem. Thus, the algorithm terminates with
solution; X2 = 3, X1 = 2 and Z = 27 as the optimal solution.
TACHI CLIFORD 9
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
TACHI CLIFORD 10
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
Zj 2M 5M -M -M M M
Cj-Zj 5-2M 12-5M M M 0 0 0
TACHI CLIFORD 11
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
Second iteration
Cj 5 12 0 0 M M
CB BV Y1 Y2 S1 S2 a1 a2 RHS Θ
12 Y2 1/3 1 -1/3 0 1/3 0 2 6
M a2 1/3 0 2/3 -1 -2/3 1 1 3
Third iteration
Cj 5 12 0 0 M M
CB BV Y1 Y2 S1 S2 a1 a2 RHS
12 Y2 0 1 -1 1 1 -1 1
5 Y1 1 0 2 -3 -2 3 3
Zj 5 12 -2 -3 2 3
Cj-Zj 0 0 2 3 M-2 M-3 27
TACHI CLIFORD 12
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
EXERCISES
1. Consider the following linear programming problem:
TACHI CLIFORD 13
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
TACHI CLIFORD 14
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
hours of work respectively, B requires 5, 4 and 4 hours respectively and C requires 2, 4 and 5
hours respectively in each of the three departments. Every day, 60 hours are available in
fabrication department, 72 hours in finishing department and 100 hours in packaging
department. If unit contribution of product A is 5frs, 10frs for B and 8frs for C, then, determine
the number of units of each product so that total contribution to profit is maximized and also
determine if any capacity would remain unutilized.
TACHI CLIFORD 15
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
Definition: It deals with a special class of linear programming problem in which the objective is
to transport a homogeneous commodity from various sources (origins e.g factories, plants, etc) to
different destinations (e.g markets, customers, etc) at a total minimum cost.
TACHI CLIFORD 16
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
The following model is based on the assumption that there are no intermediate
points/facilities
Objective Function
Constraints
Since the total supply from warehouse i is ai , the total outgoing shipment cannot exceed ai . That
is, we must require
Since the demand at outlet j is bj , the total incoming shipment should not be less than
bj . That is, we must require
TACHI CLIFORD 17
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
LP Formulation
TACHI CLIFORD 18
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
1. Balanced
Supply = Demand
2. Unbalanced
Supply ≠ Demand
Exercise
Formulate the following transportation problem as a linear programming problem.
4 6 8 8 40
6 8 6 7 60
5 7 6 8 50
20 30 50 50
TACHI CLIFORD 19
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
This is an algorithm that finds the initial basic feasible solution to a transportation
problem by considering the “penalty cost” of not using the cheapest available rate.
Stepping stone
a) b)
4 6 8 8 40
6 8 6 7 60
5 7 6 8 50
20 30 50 50
TACHI CLIFORD 20
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
TACHI CLIFORD 21
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
Let’s us use the feasible solution obtained from the Min Cost Method above to look for the
optimal solution of the transportation problem. The basic feasible solution MUST respect the
following conditions before the Stepping Stone Method is used.
1. The row column (supply-demand) constraints are satisfied
2. The non-negativity constraints are satisfied
3. The allocations are independent and do not form a loop
4. There are exactly M+N-1 allocated cells. Where M= number of rows and N= Number of
columns
First iteration
Second iteration
TACHI CLIFORD 22
INTRODUCTION TO OPERATION RESEARCH HITL 2023-2024 TLDR 3105
Third iteration
THANK YOU!!!
TACHI CLIFORD 23