You are on page 1of 47

Quantitative Techniques

and Decision Making


By
Prof. Alok Kumar Singh

A.K.Singh, IMI, Delhi

Solving System of Linear Equations

A.K.Singh, IMI, Delhi

Introduction
A function f(x1, x2, , xn) of x1, x2, ,
xn is a linear function if and only if
for some set of constants, c1, c2, ,
cn, f(x1, x2, , xn) = c1x1 + c2x2 +
+ cnxn.
For any linear function f(x1, x2, , xn)
and any number b, the inequalities
f(x1, x2, , xn) b and f(x1, x2, , xn)
b are linear inequalities.
A.K.Singh, IMI, Delhi

What are linear functions?


y = mx+b is the equation of a straight
line
e.g. y = -4/3 x +6
Multiplying
byfunction
3 andin rearranging:
4x + 3y =
Linear
2 variables
18
A linear function consists of the sum of positive, negative
or 0 constants times variables; e.g.
5X1 - 4X2 + 0X3 + 6X4 is a linear function in 4 variables.

A.K.Singh, IMI, Delhi

Solving Pair of Linear


Equation

A.K.Singh, IMI, Delhi

GRAPHICAL SOLUTIONS OF A LINEAR


EQUATION

Let us consider the following


system of two simultaneous linear
equations in two variable.
2x y = -1
3x + 2y = 9

Here we assign any value to one of


the two variables and then
determine the value of the other
variable from the given equation.
A.K.Singh, IMI, Delhi

(-1,6)

(2,5)

(0,3)

(0,1)

X
Y
A.K.Singh, IMI, Delhi

X=
1
Y=3

2x y 1
3x 2 y 12

Example:

Geometrically, the two lines represented by the two


equations that make up the system intersect at the point (2,
3):
y
6

2x y 1

5
4
3

(2, 3)

3 x 2 y 12

x
1

A.K.Singh, IMI, Delhi

Graphical and Algebraic


Method
Romila went to a stationery shop and
purchased 2 pencils and 3 erasers for Rs 9. Her
friend Sonali saw the new variety of pencils
and erasers with Romila, and she also bought
4 pencils and 6 erasers of the same kind for Rs
18. Represent this situation algebraically and
graphically.
The ratio of incomes of two persons is 9 : 7
and the ratio of their expenditures is 4 : 3. If
each of them manages to save Rs 2000 per
month, find their monthly incomes.
A.K.Singh, IMI, Delhi

Solving Systems of Linear


Equations in 3 Variables

A.K.Singh, IMI, Delhi

A system of linear equations in 3


variables
2 x 4 y 6 z 22
3x 8 y 5 z 27
x y 2z 2
A solution is an ordered triple (x,y,z)
that makes all 3 equations true.
X = 3, Y= 1, Z = 2

A.K.Singh, IMI, Delhi

Gauss-Jordan Elimination
Fundamental operations:
1. Replace one equation with linear
combination
of other equations
2. Interchange two equations
3. Re-label two variables

Combine to reduce
1 0 to
? trivial system

as
?
0 1

A.K.Singh, IMI, Delhi

Gauss-Jordan Elimination
Solve:
2 x1 3x2 7
4 x1 5 x2 13

Only care about numbers form


tableau or augmented matrix:
3

13

A.K.Singh, IMI, Delhi

Gauss-Jordan Elimination
Given:
2

13

Goal: reduce this to trivial system

and read off answer from right


column
A.K.Singh, IMI, Delhi

Gauss-Jordan Elimination
3

13

Basic operation 1: replace any row


by
linear combination with any other
row
7
1 32
2
1
Here,
replace
row1
with
/2 * row1 +

13
4 5
0 * row2
A.K.Singh, IMI, Delhi

Gauss-Jordan Elimination
1

13

Replace row2 with row2 4 * row1


1

Negate row2

1
7

A.K.Singh, IMI, Delhi

Gauss-Jordan Elimination
1

Replace row1 with row1 3/2 * row2


0

Read off solution: x1 = 2, x2 = 1

A.K.Singh, IMI, Delhi

Class Exercise
Solve by Gauss Jordan Elimination
Method:
X+Y+Z =5
2X+3Y+5Z = 8
4X+5Z = 2
X= 3, Y = 4, Z = -2
A.K.Singh, IMI, Delhi

Home Exercise
Solve using Gauss Jordan elimination
method

x+y-z = -1
2x-2y+3z = 8
2x-y+2z = 9

Solve using Gauss Jordan elimination


method

a-2b+2c-3d = -7
3a+2b-c+5d = 22
2a-3b+4c-d = -3
3a-2b-c+2d = 12
A.K.Singh, IMI, New Delhi

Linear Inequalities
Ravi goes to market with Rs 200 to buy rice,
which is available in packets of 1kg. The
price of one packet of rice is Rs 30. If x
denotes the number of packets of rice,
which he buys, then the total amount spent
by him is Rs 30x. Since, he has to buy rice in
packets only, he may not be able to spend
the entire amount of Rs 200. (Why?)
Two real numbers or two algebraic
expressions related by the symbol <, >,
or form an inequality.
A.K.Singh, IMI, Delhi

What are Linear Inequalities?


Linear inequalities have the form:
<Linear Function> <has some relation to> <a
constant>

The relation is one of the following:


, ---- they all contain the equal to part

Examples:
4X1 + 5X2 - 6X3
+ 2X5 34
2X1 - 5X2
+ 1X4
47
X1
0
X5 0
A.K.Singh, IMI, Delhi

Problem : Linear Inequalities


The marks obtained by a student of Class XI
in first and second terminal examination are
62 and 48, respectively. Find the number of
minimum marks he should get in the annual
examination to have an average of at least
60 marks.
The longest side of a triangle is 3 times the
shortest side and the third side is 2 cm
shorter than the longest side. If the
perimeter of the triangle is at least 61 cm,
find the minimum length of the shortest side.
A.K.Singh, IMI, Delhi

Linear Programming

Linear programming has nothing to do with


computer programming.
The use of the word programming here
means choosing a course of action.
Linear programming involves choosing a
course of action when the mathematical
model of the problem contains only linear
functions.
The first problem in linear programming
was formulated in 1941 by the Russian
mathematician, L. Kantorovich and the
American economist, F. L. Hitchcock. This
A.K.Singh, IMI, Delhi
was the well known
transportation problem.

Linear Programming
In 1945, an English economist, G.Stigler,
described yet another linear programming
problem that of determining an optimal
diet.
In 1947, the American economist, G. B.
Dantzig suggested an efficient method
known as the simplex method which is an
iterative procedure to solve any linear
programming problem in a finite number
of steps.
A.K.Singh, IMI, Delhi

Introduction
Mathematical programming is used to find the best or
optimal solution to a problem that requires a decision or
set of decisions about how best to use a set of limited
resources to achieve a state goal of objectives.
Steps involved in mathematical programming
Conversion of stated problem into a mathematical model that
abstracts all the essential elements of the problem.
Exploration of different solutions of the problem.
Finding out the most suitable or optimum solution.

Linear
programming
mathematical functions
functions.

requires
that
all
the
in the model be linear

A.K.Singh, IMI, Delhi

Linear Programming (LP)


Problem

The maximization or minimization of some


quantity is the objective in all linear
programming problems.
All LP problems have constraints that limit
the degree to which the objective can be
pursued.
A feasible solution satisfies all the
problem's constraints.
An optimal solution is a feasible solution
that results in the largest possible objective
function value when maximizing (or
smallest when minimizing).
A.K.Singh,
IMI, Delhi
A graphical solution
method
can be used to

Linear Programming Assumptions


The decision variable are
continuos.
The parameters are know with
certainty
The objective function and
constraints exhibit constant return
to scale.
There are no interactions between
the decision variables
A.K.Singh, IMI, Delhi

Assumption of LP Explained
The fact that the objective function for
an LP must be a linear function of the
decision variables has two implications:
1.The contribution of the objective function
from each decision variable is proportional
to the value of the decision variable.
2.The contribution to the objective function
for any variable is independent of the other
decision variables.

A.K.Singh, IMI, Delhi

Assumption of LP Explained (Contd.)


Analogously, the fact that each LP
constraint must be a linear inequality or
linear equation has two implications:
1.The contribution of each variable to the lefthand side of each constraint is proportional
to the value of the variable.
2.The contribution of a variable to the lefthand side of each constraint is independent
of the values of the other variables.

A.K.Singh, IMI, Delhi

Assumption of LP Explained (Contd.)


The first item in each list is called the
Proportionality Assumption of Linear
Programming.
The second item in each list is called the
Additivity Assumption of Linear
Programming.
The divisibility assumption requires that each
decision variable be permitted to assume
fractional values.
The certainty assumption is that each
parameter (objective function coefficients, righthand side, and technological coefficients) are
known with certainty.
A.K.Singh, IMI, Delhi

The LP Model
Let: X1, X2, X3, , Xn be the decision variables & Z
be the objective function or linear function
Requirement: Maximization/ Minimization of the linear
function Z.
Z = c1X1 + c2X2 + c3X3 + + cnXn
subject to the following constraints where all a ij, bij
and cij are constants.

A.K.Singh, IMI, Delhi

Example of a Linear
Program
MAX 4X1
s.t.

+ 7X3 - 6X4

2X1 + 3X2

- 2X4

- 2X2 + 9X3 + 7X4

= 20
10

-2X1 + 3X2 + 4X3 + 8X4 35


X2
Subject to

All Xs 0
X1 0, X2 0, X3 0, X4 0
A.K.Singh, IMI, Delhi

Set of Feasible Solutions for Linear


Programs
The feasible region of an LP is the set of all
points satisfying all the LPs constraints and
sign restrictions.
For a maximization problem, an optimal
solution to an LP is a point in the feasible
region with the largest objective function
value.
Similarly, for a minimization problem, an
optimal solution is a point in the feasible
region with the smallest objective function
value.
A.K.Singh, IMI, Delhi

CORNER POINT PROPERTY


It is a very important property of Linear
Programming problems:
This property states optimal solution to LP
problem will always occur at a corner points
of the feasible region.

A.K.Singh, IMI, Delhi

Problem
A furniture dealer deals in only two items
tables and chairs. He has Rs 50,000 to invest
and has storage space of at most 60 pieces. A
table costs Rs 2500 and a chair Rs 500. He
estimates that from the sale of one table, he
can make a profit of Rs 250 and that from the
sale of one chair a profit of Rs 75. He wants to
know how many tables and chairs he should
buy from the available money so as to
maximise his total profit, assuming that he
can sell all the items which he buys.
A.K.Singh, IMI, Delhi

APPLICATIONS OF LINEAR
PROGRAMMING

A.K.Singh, IMI, Delhi

LP Example #1 (Product Mix)


The Quality Furniture Corporation produces
benches and picnic tables. The firm has two
main resources: its labor force and a supply
of redwood for use in the furniture. During
the next production period, 1200 labor hours
are available under a union agreement. The
firm also has a stock of 5000 pounds of
quality redwood. Each bench that Quality
Furniture produces requires 4 labor hours and
10 pounds of redwood; each picnic table
takes 7 labor hours and 35 pounds of
redwood. Completed benches yield a profit of
$9 each, and tables a profit of $20 each.
A.K.Singh, IMI, New Delhi
What product mix will maximize the total

LP Example (Diet Problem)


A prison is trying to decide what to feed its
prisoners. They would like to offer some
combination of milk, beans, and oranges. Their goal
is to minimize cost, subject to meeting the
minimum nutritional requirements imposed by law.
The cost and nutritional content of each food, along
with the minimum nutritional requirements are
Nutrition/
Milk
Beans
Oranges
Minimum
shown
below.
Product
In Gallons
In Cups
Per unit
Daily
Requireme
nt
Niacin

3.2

4.9

0.8

13

Thiamin

1.12

1.3

0.19

1.5

Vitamin

32

93

45

Cost

0.2

0.25

A.K.Singh, IMI, New Delhi

Blending Problem
An oil company makes two blends of fuel by mixing
three oils. Figures on the costs and daily availability
of the oils and the requirements of the blends of fuel
are given in Tables below. Each litre of blend 1 can
be sold for $1.10 and each litre of blend 2 can be
sold for $1.20. Long-term contracts require at least
10,000 litres of each blend to be produced. Assume
no losses, maximize the profit by formulating this as
a linear programming problem:
Oil

Cost
($/
Ltr.)

Amount Available
(Ltrs)

0.3

6,000

0.4

10,000

0.48

12,000

Blend 1

At least 30 % of A
At most 50 % of B
At least 30 % of C

Blend 2

At most 40 % of A
At least 35 % of B
At most 40 % of C

A.K.Singh, IMI, New Delhi

Transportation Problem
A company has two plants producing a certain product that is
to be shipped to three distribution centers. The unit production
costs are the same at the two plants, and the shipping cost per
unit is shown below. Shipments are made once per week.
During each week, each plant produces at most 60 units and
each distribution center needs at least 40 units. Formulate this
as a Linear Programming problem to minimize the cost of
transportation.
Distribution Center

Plant

$4

$6

$4

$6

$5

$2

A.K.Singh, IMI, New Delhi

Capital Budgeting Problem


A bank is in the process of devising a loan policy that maximizes the
return and involves a maximum of Rs. 12 million. The table below
provides the pertinent data about available loans. Bad debts are
unrecoverable and produce no interest revenue. Competition with other
financial institution dictates the allocation of at least 40% of the funds
to farm and commercial loans. To assist the housing industry in the
region, home loans must be at least 50 % of the personal, car and home
loans. The bank limits the overall ratio of the bad debts on all loans to
at most 4 %.

Type of Loan

Interest
Rates
Personal
14
Car
13
Home
12
Farm
12.5
New Delhi
Commercial A.K.Singh, IMI,10

Bad Debt
ratio
0.1
0.07
0.03
0.05
0.02

Advertising Problem
Dorian Auto manufactures luxury cars and trucks. The
company believes that its most likely customers are
high-income women and men. To reach these groups,
Dorian Auto has embarked on an ambitious TV
advertising campaign and will purchase 1-minute
commercial spots on two type of programs: comedy
shows and football games. Each comedy show is seen
by 7 million high income women and 2 million highincome men and costs $50,000. Each football game is
seen by 2 million high-income women and 12 million
high-income men and costs $100,000. Dorian Auto
would like for commercials to be seen by at least 28
million high-income women and 24 million high-income
men. Use LP to determine how Dorian Auto can meet its
advertising requirements at minimum cost.
A.K.Singh, IMI, New Delhi

Example : LP Formulation
Dorian must decide how many comedy and football
ads should be purchased, so the decision variables
are
x1 = number of 1-minute comedy ads
x2 = number of 1-minute football ads
Dorian wants to minimize total advertising cost.
Dorians objective functions is
min z = 50 x1 + 100x2
Dorian faces the following the constraints
Commercials must reach at least 28 million highincome women. (7x1 + 2x2 28)
Commercials must reach at least 24 million highincome men. (2x1 + 12x2 24)
The sign restrictions are necessary, so x1, x2 0.
A.K.Singh, IMI, Delhi

Employee Scheduling
A post office requires different numbers of full
time employees on different days of the week.
The number of full time employees required each
day from Mon. to Sun are 17, 13, 15, 19, 14, 16
and 11 respectively. Union rule says that each full
time employee must work for 5 consecutive days
and get an off for 2 days. For example any
employee wo starts his week from Monday will
work till Friday and will get off on Sat. & Sun. The
post office wants to meet its daily requirement
with minimum number of full time employees. It
can not use part time workers. Formulate this
situation as a LP problem and determine the
minimum number of workers required.

Set Covering Models


Western Airlines has decided that it wants to
design a hub system in the United States. Each
hub is used for connecting flights to and fro m
cities within 1000 miles of the hub. Western runs
flight among the following cities; Atlanta, Boston,
Chicago, Denver, Houston, Los Angeles, New
Orleans, New York, Pittsburgh, Salt Lake city, San
Francisco and Seattle. The company wants to
determine the lowest number of hubs it will need
to cover all of the cities where a city is covered if
it is within 1000 miles of at least one hub. The
following table list the cities that are within 1000
miles of other cities.

Data for Western Airlines


City Name
Atlanta (AT)
Boston (BO)
Chicago (CH)
Denver (DE)
Houston (HO)
Los Angeles (LA)
New Orleans (NO)
New York (NY)
Pittsburgh (PI)
Salt Lake City (SL)
San Francisco (SF)

Cities Within
1000 Miles
AT, CH, HO, NO,
NY, PI
BO,NY,PI
AT, CH,NY, NO, PI
DE, SL
AT, HO, NO
LA, SL, SF
AT, CH, HO, NO
AT, BO, CH, NY, PI
AT, BO, CH, NY, PI
DE, LA, SL, SF, SE
LA, SL, SF, SE

1
2
3
4
5
6
7
8
9
10
11

Thank
You
A.K.Singh, IMI, Delhi

You might also like