Maths Project
Maths Project
Maths Project
Place :
Date :
ACKNOWLEDGEMENT
INTRODUCTION
AIM
1. To find and know more about the
importance and uses of 'linear
programming'.
2. To formulate a linear programming
problem and solve in simplex method
and dual problem.
DATA COLLECTION
Linear programming is a versatile
mathematical technique in operations
research and a plan of action to solve a
given problem involving linearly related
variables in order to achieve the laid down
objective in the form of minimizing or
maximizing the objective function under a
given set of constraints
CHARACTERISTICS
Objectives can be expressed in a standard
form viz. maximize/minimize z = f(x) where z is
called the objective function.
Constraints are capable of being expressed in
the form of equality or inequality viz. f(x) = or ≤
or ≥ k, where k = constant and x ≥ 0.
Resources to be optimized are capable of
being quantified in numerical terms.
The variables are linearly related to each other.
More than one solution exist, the objectives
being to select the optimum solution.
The linear programming technique is based on
simultaneous solutions of linear equations.
USES
There are many uses of L.P. It is not possible to
list them all here. However L.P is very useful to
find out the following:
Optimum product mix to maximize the profit.
Optimum schedule of orders to minimize the
total cost.
Optimum media-mix to get maximum
advertisement effect.
Optimum schedule of supplies from
warehouses to minimize transportation costs.
Optimum line balancing to have minimum
idling time.
Optimum allocation of capital to obtain
maximum R.O.I
Optimum allocation of jobs between machines
for maximum utilization of machines.
Optimum assignments of jobs between
workers to have maximum labor productivity.
Optimum staffing in hotels, police stations and hospitals to maximize
efficiency.
Optimum number of crew in buses and trains to have minimum
operating costs.
Optimum facilities in telephone exchange to have minimum break
downs.
ADVANTAGES
Provide the best allocation of available resources.
meet overall objectives of the management.
Assist management to take proper decisions.
Provide clarity of thought and better appreciation of problem.
Improve objectivity of assessment of the situation.
Put across our view points more successfully by logical argument
supported by scientific methods.
PRINCIPLES
Following principles are assumed in L.P.P
Proportionality: There exist proportional relationships between objectives
and constraints.
Additivity: Total resources are equal to the sum of the resources used in
individual activities.
Divisibility: Solution need not be a whole number viz decision variable can
be in fractional form.
Certainty: Coefficients of objective function and constraints are known
constants and do not change viz parameters remain unaltered.
Finiteness: Activities and constraints are finite in number.
Optimality: The ultimate objective is to obtain an optimum solution viz
'maximization' or 'minimization'.
DEFINITION OF TERMS
a) Basic solution: There are instances where number of unknowns (p) are
more than the number of linear equations (q) available. In such cases we
assign zero values to all surplus unknowns. There will be (p-q) such
unknowns. With these values we solve 'q' equations and get values of 'q'
unknowns. Such solutions are called Basic Solutions.
b) Basic variables: The variables whose value is obtained from the basic
solution is called basic variables.
c) Non-basic variables: The variables whose value are assumed as zero in
basic solutions are called non-basic variables.
d) Solution: A solution to a L.P.P is the set of values of the variables which
satisfies the set of constraints for the problem.
l) Two Phase method : L.P.P where artificial variables are added can be
solved by two phase method. This is a modified simplex method. Here the
solution takes place in two phases as follows:
Graphical L P solution
The proper definition of the decision variables is an essential first step in the
development of the model. Once done, the task of constructing the
objective function and the constraints is more straight forward.
FORMATION OF MATHEMATICAL MODEL OF L.P.P
There are three forms :
General form of L.P.P
Canonical form of L.P.P
Standard form of L.P.P
Note: constraints given in the form of "less than or equal" (≤) can be
converted to the equality form by adding "slack" variables. Similarly,
those given in "more than or equal" (≥) form can be converted to the
equality form by subtracting "surplus" variables.
b) Standard form of L.P.P in matrix notations:
" Maximize Z = CX
subject to the constraints
AX =b b ≥0 and X ≥0
where X = (x1, x2, ..... xn) ; C = (c1, c2, ...., cn )
bT = (b1, b2,....., bm) ; A= (aij)
i = 1, 2, ....., m ; j = 1, 2, ....., n "
Note: coefficients of slack and surplus variables in objective function are
always assumed to be zero.
BREIF HISTORICAL SKETCH
Programming problems first rise in economics, where the optimal allocation of
resources has long been of interest to economists. More specifically, however,
programming problems seem to be a direct outgrowth of the work done by a
number of individuals in the 1930's. One outstanding theoretical model developed
then was Von Newmann's linear model of an expanding economy, which was part
of the efforts of a number of Austrian and German economists and mathematicians
who were studying the generalization of wairasian equilibrium models of an
economy. A more practical approach was made by Leontief, who developed input-
output models of the economy. His work was concerned with determining how
much various industries would have to produce to meet a specified bill of
consumer demands. Input-output models did not actually involve any optimization;
instead they required the solution of a system of simultaneous linear equations.
During World War II, a group under the direction of Marshall K. Wood worked on
allocating problems for the United States Air Force. Generalization of Leontief
type models were developed to allocate resources in such a way as to maximize or
minimize some linear objective function. George B. Dantzig was a member of the
Air Force group ; he formulated the general linear programming problem and
devised the simplex method of solution in 1947. His work was not generally
available until 1951, when the Cowles-commission Monograph was published.
After 1951, progress in the theoretical development and in practical applications of
linear programming was rapid. Important theoretical contributions were made by
David Gale, H. W. Kuhn and A. W. Tucker, who had a major share in developing
the theory of duality in linear programming. A. Charnce, who also did some
important theoretical work, and W.W. Cooper took the lead in encouraging
industrial application of linear programming.
1. At the optimum,
objective value = objective value
in the primal in the dual
2. At any Iteration of the primal,
Primal Dual
Types of Degeneracy :-
a) First Iteration: Degeneracy can occur right in the first (initial
tableau). This normally happens when the number of constraints
are less than number of variables in the objective function.
Problem can be overcome by trial and error method.
Case of cycling:
We have seen that when degeneracy exists, replacement of vector in the
BASIS does not improve objective function. Another difficulty
encountered in degeneracy is that the simplex Tableau gets repeated
without getting optimum solution. Such occurrences in L.P.P are called
CYCLING. Fortunately, such L.P.Ps are very rare. Also, in such cases,
certain techniques are developed to prevent cycling and reach optimum
solution.
Case of duality :
Every L.P.P is associated with another L.P.P which is called the DUAL of
the original L.P.P. The original L.P.P is called the PRIMAL. If the DUAL is
stated as a given problem, PRIMAL becomes its DUAL and vice-versa.
The solution of one contains the solution of the other. In other words,
when optimum solution of PRIMAL is known, the solution of DUAL is
also obtained from the very same optimum tableau.
Solution of a L.P.P
In general we use the following two methods for the solution if a linear
programming problem.
I. Geometrical (or graphical) method : If the objective function z is a
function of two variables only; then the problem can be solved by the
graphical method. A problem involving three variables can also be
solved graphically, but with complicated procedure.
II. Simplex method : This is the most powerful tool of the linear
programming as any problem can be solved by this method. Also, this
method is an algebraic procedure which progressively approaches the
optimal solution. The procedure is straight forward and requires only
time and patience to execute manually. Nowadays, computational
methods (using computers), are available for solving such problems.
Geometrical (or Graphical) method for solving a L.P.P
If the L.P.P is two variable problem, it can be solved graphically. The
steps required for solving a L.P.P by graphic method are :
1. Formulate the problem into a L.P.P
2. Each inequality in the constraint may be written as equality.
3. Draw straight lines corresponding to the equations obtained in step 2.
So there will be as many straight lines as there are equations.
4. Identify the feasible region. Feasible region is the area which satisfies
all constraints simultaneously.
5. The permissible region or feasible region is a many sided figure (a
polygon). The corner points of the figure are to be located and their co-
ordinates (ie. x1 and x2 values) are to be measured.
6. Calculate the value of the objective function Z at each corner point.
7. The solution is given by the co-ordinates of that corner point which
optimizes the objective function.
The net profits realized from each of the three products are: Rs: 20, Rs. 9 and
Rs. 10 from A, B and C respectively. The production manager desires to
allocate the available capacities amongst the three products for a maximum
profit.
Let x1, x2 and x3 be the quantity of products A, B and C produced within the
available capacities to maximize the profit.
From the above problem given details, we can formulate the problem as a
linear programming problem as,
Maximize, z = 20 x1 + 9 x2 + 10 x3
Subject to 12 x1 + 3 x2 + 4 x3 300
6 x1 + 4 x2 + x3 225
3 x1 + x2 + 2 x3 100
x1, x2, x3 0
By using simplex method
By introducing slack variables, the problem can be restated as :
Maximize 20x1 + 9x2 + 10x3 + 0x4 + 0 x5 + 0 x6
Subject to 12x1 + 3x2 + 4x3 + x4 = 300
6x1 + 4x2 + x3 + x5 = 225
3x1 + x2 + 2x3 +x6 = 100
Where x1, x2 and x3 are structural variable and x4, x5, and x6 are stock
variables
In order to simplify handling the educations in the problem, they can be
placed in a tabular form, known as a tableau. The initial tableau is given
below
Simplex Tableau I: initial step
Ci Basic P1 P2 P3 P4 P5 P6 Po Qi
=
Poi/xoi
0 X4 12 3 4 1 0 0 300 25
0 X5 6 4 1 0 1 0 255 37.5
0 X6 3 1 2 0 0 1 100 33.3
Cj 20 9 10 0 0 0
Zj 0 0 0 0 0 0
j=cj-zj 20 9 10 0 0 0
Starting with the left hand column in the above tableau, the C1 column
contains the contributions per unit for the basic variables x4, x5 and x6.
The zero indicates that the contribution per unit is zero. The reasoning
is that no profits are made on unused raw materials or labour. The
second column, the basis, contains the variables in the solution which
are used to determine the total contribution. In the initial solution, no
products are being manufactured. This is represented in the cjth row
for the column under P0. Since no units are manufactured, the first
solution is,
x1 = 0 x4 = 300
x2 = 0 x5 = 225
x3 = 0 x6 = 100
The body matrix consists of the coefficients for the real product
(structural) variables in the first simplex tableau represents the
coefficients of the slack variables that have been included to the
original inequalities to make them equations.
The row cj contains coefficients of respective variables in the objective
function. The last two rows of the first simplex tableau are used to
determine whether or not the solution can be improved. The zero values
in the xj row are the amounts by which contribution would be reduced if
one unit of the variables x1, x2, x3, x4, x5 and x6 was added to the
product mix.
Another way of defining the variables of the zj row is the contribution
lost per unit of the variables.
Simplex Tableau II
Ci Basic P1 P2 P3 P4 P5 P6 Po Qi=poi/xoi
20 X4 1 1/4 1/3 1/12 0 0 25 100
0 X5 0 5/2 -1 -1/2 1 0 75 30
0 X6 0 1/4 1 -1/4 0 1 25 100
Cj 20 9 10 0 0 0
Zj 20 5 20/3 20/12 0 0
j=cj-zj 0 4 10/3 -20/12 0 0
CONCLUSION
From this project we came to a conclusion that 'Linear programming' is
like a vast ocean where many methods, advantages, uses, requirements
etc. can be seen. Linear programming can be done in any sectors where
there is less waste and more profit. By this, the production of anything is
possible through the new methods of L.P. As we had collected many
datas about L.P, we came to know more about this, their uses,
advantages and requirements. Also, there are many different ways to
find out the most suitable L.P.