Handouts
Handouts
Virtual Campus
by
VCOMSATS
Learning Management System
To my unknown students
ii
Dr. Malik has published several research articles in international journals and
conferences. His area of research includes the study of fractional differential equa-
tions and their applications to image processing. He is also interested in inverse
source problem related to fractional diffusion equations which has numerous appli-
cations ranging from biomedical imaging to the anomalous diffusion in heterogeneous
media .
Course Information
Title and Course Code: Operations Research (MTH467)
Course Objective: The objective of the course is to introduce the basic termi-
nologies of Operations Research. The mathematical modeling of certain real world
problems and adopt different Operations Research techniques to get the best possi-
ble answer.
There are a variety of real world problems will be discussed in the course and
several algorithms will be discussed. This is an introductory course to Operations
Research.
2. Understand the theoretical workings of the simplex method for linear pro-
gramming and perform iterations of it by hand.
3. Understand the relationship between a linear program and its dual, includ-
ing strong duality and complementary slackness.
1 Lecture No. 01 2
1.1 History (1939-1945) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Decision variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 Objective Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4 Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.5 Feasible Solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.6 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Lecture No. 02 9
2.1 Mathematical Modeling . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 15
3 Lecture No. 03 16
3.1 Graphical Linear Programming (LP) Solution . . . . . . . . . . . . . 16
4 Lecture No. 04 19
4.1 Solution of a Minimization Problem . . . . . . . . . . . . . . . . . . 22
4.2 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 25
5 Lecture No. 05 26
5.1 Urban Renewal Model . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5.2 Controlling Air Pollution . . . . . . . . . . . . . . . . . . . . . . . . . 29
5.3 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 31
6 Lecture No. 06 32
6.1 The essence of simplex method . . . . . . . . . . . . . . . . . . . . . 32
6.2 The Simplex Method . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6.3 LP Model in Equation Form . . . . . . . . . . . . . . . . . . . . . . . 34
6.4 Algebraic Determination of Corner Points . . . . . . . . . . . . . . . 35
6.5 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 37
7 Lecture No. 07 39
7.1 Algebraic Steps for the Simplex Method . . . . . . . . . . . . . . . . 39
7.2 Entering and Leaving variable selection . . . . . . . . . . . . . . . . . 41
7.3 Summary of the Simplex Method . . . . . . . . . . . . . . . . . . . . 43
7.4 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 44
8 Lecture No. 08 45
8.1 M-Technique/Method . . . . . . . . . . . . . . . . . . . . . . . . . . 45
8.2 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 49
Contents v
9 Lecture No. 09 50
9.1 Two Phase Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
9.2 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 54
10 Lecture No. 10 55
10.1 Special Cases in Simplex Method . . . . . . . . . . . . . . . . . . . . 55
10.2 Degeneracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
10.3 Alternative Optima . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
10.4 Unbounded Solution . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
10.5 Infeasible Solution Space . . . . . . . . . . . . . . . . . . . . . . . . . 59
10.6 Some Practice problems . . . . . . . . . . . . . . . . . . . . . . . . . 60
11 Lecture No. 11 62
11.1 Sensitivity Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
11.2 Changes in the Objective Coefficients . . . . . . . . . . . . . . . . . . 64
12 Lecture No. 12 68
12.1 Algebraic Sensitivity Analysis . . . . . . . . . . . . . . . . . . . . . . 68
13 Lecture No. 13 75
13.1 The dual problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
13.2 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 81
14 Lecture No. 14 82
14.1 Simplex Tableau Computations . . . . . . . . . . . . . . . . . . . . . 82
14.2 Economic Interpretation of Dual Variables . . . . . . . . . . . . . . . 85
14.3 Economic Interpretation of Dual Constraints . . . . . . . . . . . . . . 86
14.4 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 88
15 Lecture No. 15 89
15.1 Dual Simplex Method . . . . . . . . . . . . . . . . . . . . . . . . . . 89
15.2 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 92
17 Lecture No. 17 95
17.1 Transportation Problem . . . . . . . . . . . . . . . . . . . . . . . . . 95
17.2 Transport model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
17.3 Balancing the Transportation Model . . . . . . . . . . . . . . . . . . 100
17.4 Some Practice Problems . . . . . . . . . . . . . . . . . . . . . . . . . 102
7.1 Basic and nonbasic variables for corner points of the figure below . . 39
7.2 Graphical solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
7.3 Graphical interpretation . . . . . . . . . . . . . . . . . . . . . . . . . 41
7.4 Simplex tableau iterations for WYNDOR GLASS problem . . . . . . 44
Lecture No. 01
The contents of the course Operations Research can be divided into three major
parts, described below:
Part I:
Part II:
Part III:
• Integer Programming
• Network Models
• Inventory Models
• Queuing theory
1.1. History (1939-1945) 3
public services, to name just a few. Therefore, the breadth of application is unusually
wide.
The research part of the name means that operations research uses an approach
that resembles the way research is conducted in established scientific fields.
6. Implement.
The problem: Imagine that you have a 5-week business commitment between
Fayetteville (FYV) and Denver (DEN).
You fly out of Fayetteville on Mondays and return on Wednesdays. A regular
round-trip ticket costs 400 dollars, but a 20% discount is granted if the dates of the
ticket span a weekend.
A one way ticket in either direction costs 75% of the regular price.
How should you buy the tickets for the 5-week period?
2. Buy one FYV-DEN, four DEN-FYV-DEN that span weekends, and one DEN-
FYV.
3. Buy one FYV-DEN-FYV to cover Monday of the first week and Wednesday
of the last week and four DEN-FYV-DEN to cover the remaining legs. All
tickets in this alternative span at least one weekend.
Solution: Let W = width of the rectangle in inches and h = height of the rectangle
in inches
Restrictions:
1.2. Decision variables 6
That is
1. 2(w + h) = L
2. w ≥ 0, h ≥ 0.
1.4 Constraints
Any restrictions on the values that can be assigned to these decision variables are
also expressed mathematically. Such mathematical expressions for the restrictions
often are called constraints.
Example: An OR study done for Monsanto Corp. was concerned with optimizing
production operations in Monsanto’s chemical plants to minimize the cost of meeting
the target for the amount of a certain chemical product (maleic anhydride) to be
produced in a given month. The decisions to be made are the dial setting for each
of the catalytic reactors used to produce this product, where the setting determines
both the amount produced and the cost of operating the reactor. The form of the
resulting mathematical model is as follows:
Choose the decision variables Rij (i = 1, 2, ..., s; j = 1, 2, ..., s) so as to
r X
X s
Minimize cij Rij
i=1 j=1
1.5. Feasible Solution 7
subject to
r X
X s s
X
cij pij Rij ≥ T, cij Rij = 1, for i = 1, 2, ..., r, Rij = 0 or 1
i=1 j=1 j=1
An optimal solution for the original model may be far from ideal for the real
problem, so additional analysis is needed. Therefore, postoptimality analysis
(analysis done after finding an optimal solution) is a very important part of most
OR studies.
Rijkswaterstaat: (B. F. Goeller and the PAWN team: "Planning the Netherland’s
Water Resources, Interfaces, 15(1): 3-33, Jan.-Feb. 1985.)
The Netherlands government agency responsible for water control and public
works, the Rijkswaterstaat, commissioned a major OR study1 to guide the develop-
ment of a new national water management policy. The new policy saved hundreds
of millions of dollars in investment expenditures and reduced agricultural damage
by about 15 million$ per year, while decreasing thermal and algae pollution. Rather
than formulating one mathematical model, this OR study developed a comprehen-
sive, integrated system of 50 models.
Furthermore, for some of the models, both simple and complex versions were
developed. The simple version was used to gain basic insights, including trade-off
1.6. Some Practice Problems 8
analysis. The complex version then was used in the final rounds of the analysis or
whenever greater accuracy or more detailed outputs were desired. The overall OR
study directly involved over 125 person-years of effort (more than one-third in data
gathering), created several dozen computer programs, and structured an enormous
amount of data.
Question: In the rectangle problem, identify two feasible solutions and determine
which one is better.
Question: Amy, Jim, John, and Kelly are standing on the east bank of a river and
wish to cross to the west side using a canoe. The canoe can hold at most two people
at a time. Amy, being the most athletic, can row across the river in 1 minute.
Jim, John, and Kelly would take 2, 5, and 10 minutes, respectively. If two people
are in the canoe, the slower person dictates the crossing time. The objective is for
all four people to be on the other side of the river in the shortest time possible.
Identify at least two feasible plans for crossing the river (remember, the canoe
is the only mode of transportation and it cannot be shuttled empty).
Chapter 2
Lecture No. 02
(3) specification of the limitations under which the modeled system operates.
If the resulting model fits one of the standard mathematical models, such as
linear programming, we can usually reach a solution by using available algorithms.
Alternatively, if the mathematical relationships are too complex to allow the de-
termination of an analytic solution, the OR team may opt to simplify the model and
use a heuristic approach, or they may consider the use of simulation, if appropriate.
Model solution is by far the simplest of all OR phases because it entails the use
of well-defined optimization algorithms.
Model validity checks whether or not the proposed model does what it purports
to do-that is, does it predict adequately the behavior of the system under study?
2.1. Mathematical Modeling 10
Initially, the OR team should be convinced that the model’s output does not
include "surprises." In other words, does the solution make sense? Are the results
intuitively acceptable?
On the formal side, a common method for checking the validity of a model is to
compare its output with historical output data. The model is valid if, under similar
input conditions, it reasonably duplicates past performance.
Generally, however, there is no assurance that future performance will continue
to duplicate past behavior. Also, because the model is usually based on careful
examination of past data, the proposed comparison is usually favorable. If the
proposed model represents a new (nonexisting) system, no historical data would be
available.
In such cases, we may use simulation as an independent tool for verifying the
output of the mathematical model.
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.
Example (The Reddy Mikks Company) Reddy Mikks produces both interior and
exterior paints from two raw materials, M 1 and M 2. The following table provides
the basic data of the problem:
A market survey indicates that 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.
Objective function:
x1 = Tons produced daily of exterior paint
x2 = Tons produced daily of interior paint
Total profit from exterior paint = 5xl
Total profit from interior paint = 4x2
Letting z represent the total daily profit (in thousands of dollars), the objective
of the company is
Maximize z = 5x1 + 4x2 .
(Usage of a raw material by both paints)≤ (Maximum raw material availability)
Constraints:
Usage of raw material M 1 by exterior paint = 6xl tons/day
Usage of raw material M 1 by interior paint = 4x2 tons/day
Usage of raw material M l by both paints = 6x1 + 4x2 tons/day
Usage of raw material M 2 by both paints = 1x1 + 2x2 tons/day
Constraints:
x2 − x1 ≤ 1 (Market limit)
x2 ≤ 2 (Demand limit)
An implicit restriction is that variables x1 and x2 cannot assume negative values.
The nonnegativity restrictions, x1 ≥ 0, x2 ≥ 0, account for this requirement.
The complete Reddy Mikks model is
subject to
6x1 + 4x2 ≤ 24
x1 + 2x2 ≤ 6
−x1 + x2 ≤ 1
x2 ≤ 2
x1 , x2 ≥ 0
Any values of x1 and x2 that satisfy all five constraints constitute a feasible solu-
tion. Otherwise, the solution is infeasible.
Determine x1 = 3 tons per day and x2 = 1 tons per day is a feasible solution or
not?
The goal of the problem is to find the best feasible solution, or the opti-
mum, that maximizes the total profit.
2. Additivity: This property requires the total contribution of all the variables
in the objective function and in the constraints to be the direct sum of the
individual contributions of each variable.
3. Certainty: All the objective and constraint coefficients of the LP model are
deterministic. This means that they are known constants-a rare occurrence in
real life.
Example: For the Reddy Mikks model, construct each of the following constraints
and express it with a linear left-hand side and a constant right-hand side:
2. The demand for interior paint cannot be less than the demand for exterior
paint.
The complete Reddy Mikks model is
subject to
6x1 + 4x2 ≤ 24
x1 + 2x2 ≤ 6
−x1 + x2 ≤ 1
x2 ≤ 2
x1 , x2 ≥ 0
Example: Determine the best feasible solution among the following (feasible and
infeasible) solutions of the Reddy Mikks model:
1. x1 = 1, x2 = 4 and x1 = 2, x2 = 2
2. x1 = 3, x2 = 1.5 and x1 = 2, x2 = 1
3. x1 = 2, x2 = −1
Solution: Put all the values of the variables one by one in the objective function
as well as in constraints. The values of x1 , x2 for which all constraints are satisfied
are known as feasible solution points.
Among feasible solution points, the points or values of x1 , x2 that gives maximum
value of the objective function is the best feasible solution.
Can you justify why we are looking for the maximum objective function value.
Example: The WYNDOR GLASS CO. produces high quality glass products, in-
cluding windows and glass doors. It has three plants.
Aluminum frames and hardware are made in Plant 1, wood frames are made in
Plant 2, and Plant 3 produces the glass and assembles the products.
Product 1: An 8-foot glass door with aluminum framing
Product 2: A 4 × 6 foot double-hung wood-framed window
Product 1 requires some of the production capacity in Plants 1 and 3, but none
in Plant 2. Product 2 needs only Plants 2 and 3.
x1 ≤ 4
2x2 ≤ 12
3x1 + 2x2 ≤ 18
x1 , x2 ≥ 0
Maximize Z = c1 x+ c2 x2 + ... + cn xn
subject to the restrictions
and x1 ≥ 0, x2 ≥ 0, ..., xn ≥ 0
Question: Suppose that Reddy Mikks sells its exterior paint to a single wholesaler
at a quantity discount. The profit per ton is 5000$ if the contractor buys no more
than 2 tons daily and 4500$ otherwise.
Express the objective function mathematically. Is the resulting function linear?
Question: Determine the best feasible solution among the following (feasible and
infeasible) solutions of the WYNDOR GLASS CO. model:
1. x1 = 1, x2 = 4 and x1 = 2, x2 = 2
2. x1 = 3, x2 = 1.5 and x1 = 2, x2 = 1
3. x1 = 2, x2 = −1
Chapter 3
Lecture No. 03
Recall: How to plot linear equation or inequality in two variables. Plot x1 +3x2 = 1
and x1 + 3x2 ≤ 1.
2. Determination of the optimum solution from among all the feasible points in
the solution space.
x1 ≤ 4
2x2 ≤ 12
3x1 + 2x2 ≤ 18
x1 , x2 ≥ 0
Remark: The point (2, 6) lies at the intersection of the two lines 2x2 = 12 and
3x1 +2x2 = 18, so that this point can be calculated algebraically as the simultaneous
solution of these two equations.
Conclusions: This solution indicates that the Wyndor Glass Co. should produce
products 1 and 2 at the rate of 2 batches per week and 6 batches per week, respec-
tively, with a resulting total profit of 36,000$ per week.
The feasible region is the collection of all feasible solutions.
An optimal solution is a feasible solution that has the most favorable value of the
objective function.
Remark: The Wyndor Glass Co. problem would have no feasible solutions if the
constraint 3x1 + 5x2 ≥ 50 were added to the problem and as shown in figure below.
Remark: The Wyndor Glass Co. problem would have multiple optimal solutions
if the objective function were changed to z = 3x1 + 2x2 were added to the problem
as show in the figure below.
Remark: The Wyndor Glass Co. problem would have no optimal solutions if
the only functional constraint were x1 ≤ 4, because x2 then could be increased
indefinitely in the feasible region without ever reaching the maximum value of z =
3x1 + 5x2 .
Lecture No. 04
Example (The Reddy Mikks Company) Reddy Mikks produces both interior and
exterior paints from two raw materials, M 1 and M 2. The following table provides
the basic data of the problem:
20
A market survey indicates that 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.
Example: Solve the Reddy Mikks problem by graphical method (we have seen
that the above problem reduces to the following mathematical model) The complete
Reddy Mikks model is
Maximize z = 5x1 + 4x2
subject to
6x1 + 4x2 ≤ 24
x1 + 2x2 ≤ 6
−x1 + x2 ≤ 1
x2 ≤ 2
x1 , x2 ≥ 0
21
Remark: Notice that the optimal solution is the intersection of the lines 6x1 +4x2 =
24 and x1 + 2x2 = 6. Solving these two equation will also yields the same solution.
4.1. Solution of a Minimization Problem 22
(Verify)
Example: Determine the feasible space for each of the following independent con-
straints, given x1 , x2 ≥ 0
1. −3x1 + x2 ≤ 6
2. x1 − 2x2 ≥ 5
3. x1 − 2x2 ≤ 0
Example: Identify the direction of increase in z in each of the following cases:
1. Maximize z = x1 − x2
The dietary requirements of the special feed are at least 30% protein and at most
5% fiber. Ozark Farms wishes to determine the daily minimum cost feed mix.
Constraints: The dietary requirements of the special feed are at least 30% protein
leads to the following constraint
x1 , x2 ≥ 0
subject to
x1 + x2 ≥ 800
.21x1 − .30x3 ≤ 0
.03x1 − .01x2 ≥ 0
x1 , x2 ≥ 0
Remark: The optimum solution is the intersection of the two lines x1 + x2 = 800
and .21x1 −.3x2 = 0, which yields x1 = 470.591b and x2 = 329.41 lb. The associated
minimum cost of the feed mix is z = .3 × 470.59 + .9 × 329.42 = 437.65$ per day.
Tumor cells are typically microscopically interspersed among healthy cells, the
radiation dosage throughout the tumor region must be large enough to kill the
malignant cells, which are slightly more radiosensitive, yet small enough to spare
the healthy cells.
4.1. Solution of a Minimization Problem 24
At the same time, the aggregate dose to critical tissues must not exceed es-
tablished tolerance levels, in order to prevent complications that can be more
serious than the disease itself.
For the same reason, the total dose to the entire healthy anatomy must be minimized.
The two decision variables x1 and x2 represent the dose (in kilorads) at the entry
point for beam 1 and beam 2, respectively.
The mathematical model is
subject to
Remark: Thus, the optimal design is to use a total dose at the entry point of 7.5
kilorads for beam 1 and 4.5 kilorads for beam 2.
4.2. Some Practice Problems 25
Question: John must work at least 20 hours a week to supplement his income while
attending school. He has the opportunity to work in two retail stores. In store 1,
he can work between 5 and 12 hours a week, and in store 2 he is allowed between 6
and 10 hours.
Both stores pay the same hourly wage. In deciding how many hours to work
in each store, John wants to base his decision on work stress. Based on interviews
with present employees, John estimates that, on an ascending scale of 1 to 10, the
stress factors are 8 and 6 at stores 1 and 2, respectively. Because stress mounts by
the hour, he assumes that the total stress for each store at the end of the week is
proportional to the number of hours he works in the store. How many hours should
10hn work in each store?
Chapter 5
Lecture No. 05
(1) demolishing substandard houses to provide land for the new development, and
2. Lot sizes for new single, double, triple, and quadruple family homes (units)
are .18, .28, .4, and .5 acre, respectively. Streets, open space, and utility
easements account for 15% of available acreage.
3. In the new development the triple and quadruple units account for at least
25% of the total. Single units must be at least 20% of all units and double
units at least 10%.
4. The tax levied per unit for single, double, triple, and quadruple units is 1,000$,
1,900$, 2,700$, and 3,400$, respectively.
5. The construction cost per unit for single-, double, triple, and quadruple family
homes is 50,000$, 70,000$, 130,000$, and 160,000$, respectively. Financing
through a local bank can amount to a maximum of 15 million$.
2. Lot sizes for new single, double, triple, and quadruple family homes (units)
are .18, .28, .4, and .5 acre, respectively. Streets, open space, and utility
easements account for 15% of available acreage.
3. In the new development the triple and quadruple units account for at least
25% of the total. Single units must be at least 20% of all units and double
units at least 10%.
4. The tax levied per unit for single, double, triple, and quadruple
units is 1,000$, 1,900$, 2,700$, and 3,400$, respectively.
5. The construction cost per unit for single-, double, triple, and quadruple family
homes is 50,000$, 70,000$, 130,000$, and 160,000$, respectively. Financing
through a local bank can amount to a maximum of 15 million$.
The objective is to maximize total tax collection from all four types
of homes
2. Lot sizes for new single, double, triple, and quadruple family homes
(units) are .18, .28, .4, and .5 acre, respectively. Streets, open space,
and utility easements account for 15% of available acreage.
3. In the new development the triple and quadruple units account for at least
25% of the total. Single units must be at least 20% of all units and double
units at least 10%.
4. The tax levied per unit for single, double, triple, and quadruple units is 1,000$,
1,900$, 2,700$, and 3,400$, respectively.
5. The construction cost per unit for single-, double, triple, and quadruple family
homes is 50,000$, 70,000$, 130,000$, and 160,000$, respectively. Financing
through a local bank can amount to a maximum of 15 million$.
5.1. Urban Renewal Model 28
.18x1 +.28x2 +.4x3 +.5x5 ≤ .2125x5 or .18x1 +.28x2 +.4x3 +.5x5 −.2125x5 ≤ 0
x5 ≤ 300
2. Lot sizes for new single, double, triple, and quadruple family homes (units)
are .18, .28, .4, and .5 acre, respectively. Streets, open space, and utility
easements account for 15% of available acreage.
3. In the new development the triple and quadruple units account for
at least 25% of the total. Single units must be at least 20% of all
units and double units at least 10%.
4. The tax levied per unit for single, double, triple, and quadruple units is 1,000$,
1,900$, 2,700$, and 3,400$, respectively.
5. The construction cost per unit for single-, double, triple, and
quadruple family homes is 50,000$, 70,000$, 130,000$, and 160,000$,
respectively. Financing through a local bank can amount to a max-
imum of 15 million$.
x1 ≤ .2(x1 + x2 + x3 + x4 )
x2 ≤ .1(x1 + x2 + x3 + x4 )
x3 + x4 ≤ .25(x1 + x2 + x3 + x4 )
which leads to
50x1 + 70x2 + 130x3 + 160x4 + 2x5 ≤ 15000.
5.2. Controlling Air Pollution 29
subject to
The steelworks has two primary sources of pollution, namely, the blast furnaces
for making pig iron and the open-hearth furnaces for changing iron into steel. emis-
sion (in millions of pounds per year) can be eliminated from each type of furnace
by fully using any abatement method to its technological limit.
The total annual cost would be roughly that fraction of the corresponding quan-
tity in
Technological limit:
xj ≤ 1 for j = 1, 2, ..., 6
Mathematical Modeling:
5.3. Some Practice Problems 31
Emission reduction:
12x1 + 9x2 + 25x3 + 20x4 + 17x5 + 13x6 ≥ 60
35x1 + 42x2 + 18x3 + 31x4 + 56x5 + 49x6 ≥ 150
37x1 + 53x2 + 28x3 + 24x4 + 29x5 + 20x6 ≥ 125
Nonnegativity : xj ≥ 0 j = 1, 2, ..., 6
Lecture No. 06
Two of its CPF solutions are adjacent if they share one constraint boundary.
Optimality test: Consider any linear programming problem that possesses at
least one optimal solution. If a CPF solution has no adjacent CPF solutions that
are better (as measured by z), then it must be an optimal solution.
6.2. The Simplex Method 33
simplex method does not even take the time to solve for the adjacent CPF solution.
Instead, it simply identifies the rate of improvement in z that would be obtained by
moving along the edge.
Concept VI: Solution concept 5 describes how the simplex method examines each
of the edges of the feasible region that emanate from the current CPF solution. This
examination of an edge leads to quickly identifying the rate of improvement in Z
that would be obtained by moving along the edge toward the adjacent CPF solution
at the other end.
Therefore, the optimality test consists simply of checking whether any of the
edges give a positive rate of improvement in Z. If none do, then the current CPF
solution is optimal.
1. All the constraints (with the exception of the nonnegativity of the variables)
are equations with nonnegative right-hand side.
Example: In the Reddy-Mikks model, the constraint associated with the use of
raw material M 1 is given as
6x1 + 4x2 ≤ 24.
Defining sl as the slack or unused amount of M 1, the constraint can be converted
to the following equation:
Example: In the Diet problem, the constraint representing the minimum feed
requirements is
x1 + x2 ≥ 800.
Defining Sl as as the surplus variable, the constraint can be converted to the
following equation
x1 + x2 − S1 ≥ 800, S1 ≥ 0
6.4. Algebraic Determination of Corner Points 35
The only remaining requirement is for the right-hand side of the resulting equa-
tion to be nonnegative. The condition can always be satisfied by multiplying both
sides of the resulting equation by −1, where necessary.
x1 − x2 − s1 = 3.
Example: Show how the following objective function can be presented in equation
form:
Minimize = max{|x1 − x2 + 3x3 |, | − x1 + 3x2 − x3 |}.
n n!
Cm =
m!(n − m)!
subject to
2x1 + x2 ≤ 4
x1 + 2x2 ≤ 5
x1 , x2 ≥ 0
2x1 + x2 + s1 = 4
x1 + 2x2 + s2 = 5
x1 , x2 , s1 , s2 ≥ 0
6.4. Algebraic Determination of Corner Points 36
2x1 + x2 + s1 = 4
x1 + 2x2 + s2 = 5
x1 , x2 , s1 , s2 ≥ 0
To summarize the transition from the graphical to the algebraic solution, the
zero n − m variables are known as nonbasic variables. The remaining m variables
are called basic variables and their solution (obtained by solving the m equations)
is referred to as basic solution.
An augmented solution is a solution for the original variables (the decision vari-
ables) that has been augmented by the corresponding values of the slack variables.
Example: Augmenting the solution (3, 2) in the example yields the augmented
solution (3, 2, 1, 8, 5) because the corresponding values of the slack variables are
x3 = 1, x4 = 8, and x5 = 5.
A basic solution is an augmented corner-point solution.
A basic feasible (BF) solution is an augmented CPF solution.
The only difference between basic solutions and corner-point solutions (or be-
tween BF solutions and CPF solutions) is whether the values of the slack variables
are included. Thus, the CPF solution (0, 6) in the example is equivalent to the BF
solution (0, 6, 4, 0, 6) for the problem in augmented form.
4. The values of the basic variables are obtained as the simultaneous solution of
the system of equations (functional constraints in augmented form). (The set
of basic variables is often referred to as the basis.)
5. If the basic variables satisfy the nonnegativity constraints, the basic solution
is a BF solution.
2. Determine all the basic solutions of the problem, and classify them as feasible
and infeasible.
4. Verify graphically that the solution obtained in (3) is the optimum LP solution
hence, conclude that the optimum solution can be determined algebraically by
considering the basic feasible solutions only.
5. Show how the infeasible basic solutions are represented on the graphical solu-
tion space.
Chapter 7
Lecture No. 07
Example: Determine the optimum solution for each of the following LPs by enu-
merating all the basic solutions.
x1 + 2x2 − 3x3 + x4 = 4
x1 + 2x2 + x3 + 2x4 = 4
x1 , x2 , x3 , x4 ≥ 0
Also decide algebraically which of the basic solutions are feasible and infeasible.
The design of the simplex method calls for increasing one variable at a time,
with the selected variable being the one with the largest rate of improvement in z.
Entering Variable: The variable which enters the basic solution.
Figure 7.1: Basic and nonbasic variables for corner points of the figure below
7.1. Algebraic Steps for the Simplex Method 40
Remark: It is important to note that the simplex method moves alongside the
edges of the solution space, which means that the method cannot cut across the
solution space, going from A to C directly.
subject to
x1 , x2 , s1 , s2 , s3 , s4 ≥ 0.
and we write the objective function as z − 5x1 − 4x2 − 0s1 − 0s2 − 0s3 − 0s4 = 0
The starting simplex tableau for the Reddy Mikks problem is
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
s1 0 6 4 1 0 0 0 24 s1 -row
s2 0 1 2 0 1 0 0 6 s2 -row
s3 0 -1 1 0 0 1 0 1 s3 -row
s4 0 0 1 0 0 0 1 2 s4 -row
7.2. Entering and Leaving variable selection 41
The mechanics of determining the leaving variable from the simplex tableau calls
for computing the nonnegative ratios of the right-hand side of the equations (Solu-
tion column) to the corresponding constraint coefficients under the entering vari-
able.
The minimum nonnegative ratio automatically identifies the current basic vari-
able s1 as the leaving variable and assigns the entering variable x1 the new value of
4.
Feasibility Condition: The rule associated with the ratio computations is referred
to as the feasibility condition because it guarantees the feasibility of the new solution.
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
s1 0 6 4 1 0 0 0 24 s1 -row
s2 0 1 2 0 1 0 0 6 s2 -row
s3 0 -1 1 0 0 1 0 1 s3 -row
s4 0 0 1 0 0 0 1 2 s4 -row
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 -5 -4 0 0 0 0 0 z-row
s1 0 6 4 1 0 0 0 24 s1 -row
s2 0 1 2 0 1 0 0 6 s2 -row
s3 0 -1 1 0 0 1 0 1 s3 -row
s4 0 0 1 0 0 0 1 2 s4 -row
Basic z x1 x2 s1 s2 s3 s4 Solution
z 1 0 − 23 5
6
0 0 0 20 z-row
2 1
x1 0 1 3 6
0 0 0 4 x1 -row
4
s2 0 0 3
− 16 1 0 0 2 s2 -row
5 1
s3 0 0 3 6
0 1 0 5 s3 -row
s4 0 0 1 0 0 0 1 2 s4 -row
Basic z x1 x2 s1 s2 s3 s4 Solution
2 1
z 1 0 0 3 2
0 0 21 z-row
1
x1 0 1 0 4
− 12 0 0 3 x1 -row
x2 0 0 1 − 81 3
4
0 0 3
2
x2 -row
3
s3 0 0 0 8
− 54 1 0 5
2
s3 -row
1
s4 0 0 0 8
− 34 0 1 1
2
s4 -row
Remarks:
1. Sensitivity analysis, which deals with determining the conditions that will keep
the current solution unchanged.
2. Post-optimal analysis, which deals with finding a new optimal solution when
the data of the model are changed.
7.3. Summary of the Simplex Method 43
• Pivot row: Replace the leaving variable in the Basic column with the
entering variable. New pivot row = Current pivot row ÷Pivot element
• All other rows, including z,
New row = (Current row) - (pivot column coefficient)× (New pivot row)
4. Determine the new basic solution by using the appropriate Gauss-Jordan com-
putations. Go to step 2.
subject to x1 ≤ 4 2x2 ≤ 12
3x1 + 2x2 ≤ 18 x1 , x2 ≥ 0
7.4. Some Practice Problems 44
x1 + 2x2 − 3x3 + x4 ≤ 4
x1 + 2x2 + x3 + 2x4 ≤ 4
x1 , x2 , x3 , x4 ≥ 0
Question: Solve all the problems we have considered so far in this course by simplex
method (with two variables).