SlideShare ist ein Scribd-Unternehmen logo
1 von 72
Downloaden Sie, um offline zu lesen
Chapter Two
Linear Programming
By;-Dagnaygebaw Goshme (MSc.)
2.1.Basic Concepts in Linear Programming
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
1st. Conversion of stated problem into a mathematical
model;
2nd. Exploration of different solutions of the problem.
3rd.Finding out the most suitable or optimum solution.
 Linear programming requires that all the mathematical
functions in the model be linear functions.
 It is a mathematical process that as bee developed to help
management in decision making involving the efficient
allocation of scares resources to achieve a certain
objective.
 It is planning of activities to obtain an optimal result.
 It maximize or minimize a linear function, subject to a
set of linear constraints.
 The linear model consists of the following
components:
A set of decision variables
An objective function
A set of constraints
Decision variables: variables that we used in the model, whose
values are unknown .
Objective function: The function that is to be maximized or
minimized is called the objective function. E.g max profit and min
cost.
Constraints: are limitations or restrictions imposed by the
problems. include:
A. Resource constraints:Are restrictions that should be clearly
identifiable and measurable in quantitative terms, which arise
from limitation of available resources.
Examples of limited resources:
=>Plant capacity
=>Raw materials availability
=>Labor power
=>Market demand, etc.
B. Non-negativity constraints: Are constraints that require the
decision variables not to take on negative values
Linearity:The Objective Function and the constraints must be linear
Linear Programming Problems can be solved by
using:
i. The Geometric method called”
Graphical Method”
ii. The Algebraic method called” Simplex
Method”
Feasible region/solution/ for an LP is the set of
all points that satisfies all the LP’s 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.
For a minimization problem, an optimal solution is a
point in the feasible region with the smallest objective
function value.
2.2. Formulations of LPP
Application of linear programming involves
allocating resources to activities.
The amount available of each resource is limited, so a
careful allocation of resources to activities must
be made.
Determining this allocation involves choosing the
levels of the activities that achieve the best
possible value of the overall measure of performance.
Steps in Formulating a Linear Programming Problem
Understand the problem
Identify the Decision Maker (DM)
Identify the decision variables
State the obj. function as a linear combination
of the decision variables
State the constraints as a linear combination of
the decision variables
Identify upper or lower bounds on DV’s
Standard form of Lpp
Maximization
Max z = c1x1 + c2x2 + ... + cnxn objective function
subject to:
a11x1 + a12x2 + ... + a1nxn ≤ b1
a21x1 + a22x2 + ... + a2nxn ≤ b2 constraint
Functions
:
am1x1 + am2x2 + ... + amnxn ≤bm
x1,…xn> 0 non-negativity constraints
xj = decision variables
bi = constraint levels
cj = objective function coefficients
aij = constraint coefficients
Minimization
Min z = c1x1 + c2x2 + ... + cnxn objective function
subject to:
a11x1 + a12x2 + ... + a1nxn ≥ b1
a21x1 + a22x2 + ... + a2nxn ≥ b2 constraint
functions
:
am1x1 + am2x2 + ... + amnxn ≥ bm
x1,…xn> 0 non-negativity constraints
xj = decision variables
bi = constraint levels
cj = objective function coefficients
aij = constraint coefficients
Example1: formulate the following LPP
A firm manufactures two products, X and Y. For
each product, it is necessary to use three different
machines: A, B, and C. To manufacture one unit of
product X, machine A must be used for three
hours, machine B for 1 hour and machine C for 1
hour. To manufacture one unit of productY
requires two hours on A, 2 hours on B, and 1
hour on C. The profit on X is $500 per unit while
the profit onY is $350 per unit. Machine A is
available for 24 hours a day, B for 16 hours, and C
for 9 hours. Determine the number of units of X
andY that should be produced to maximize profit.
Machine Required hours Hours available
X Y
A 3 2 24
B 1 2 16
C 1 1 9
Max Z=500X+350Y Objective function
Max Z=500X+350Y => objective function profit max
Subject to
3x + 2y ≤ 24
x + 2y ≤ 16 constraint functions time resource
x + y ≤ 9
X,Y>0 non negativity constraints
Example 2: a Chemical manufacture produce three
chemicals:A, B, and C.These chemicals are
produced via two production processes: 1 and 2.
Running process 1 for an hour costs $4 and yields
3 units of A, 1unit of B, and 1 unit of C. Running
process 2 for an hour costs $1 and produces 1
unit of A and 1 of B. To meet customer demands,
at least 10 units of A, 5 of B, and 3 of C must be
produced daily. determine a daily production plan
that minimizes the cost of meeting Leary Chemical’s
daily demands.
Chemicals Production process minimum
Resources1== let X 2== letY
A 3 1 10
B 1 1 5
C 1 0 3
Min z 4 1
Min Z=4X+Y objective function, cost min
Subject to
3X+Y>10
X+Y>5
X>3
X,Y >0
Example 3: Farmer Gete owns 45 acres of land. She is
going to plant each with wheat or maize. Each acre
planted with wheat yields $200 profit; each with maize
yields $300 profit. 3 workers for wheat and 2 workers for
maize are required labor force while 2 tons & 4 tons of
fertilizer required for wheat and maize respectivly. One
hundred workers and 120 tons of fertilizer are available.
Use linear programming to determine how Jane can
maximize profits from her land.
Max Z= 200W+300M
Subject to
3W+2M<100
2W+4M<120
W,M> 0
2.2.1. Assumptions of linear programming
A linear programming model is based on the
following assumptions;
1. Proportionality assumption: exists in the
objective function and the constraints.
 Contribution of each activity to the value of the objective
function Z is proportional to the level of the activity
Xj, as represented by the CjXj term in the objective
function.
 Resource consumption of each activity in each functional
constraint is proportional to the level of the activity Xj,
as represented by the aijXj term in the constraint.
If not hold? use nonlinear programming
2.Additivity assumption: every function in a linear
programming model (whether the objective function or the
left-hand side of the a functional constraint) is the sum of the
individual contributions of the respective activities. i.e
linearity .
 If not hold? In most cases we use nonlinear programming.
3. Divisibility assumption: decision variables are allowed to
have any values, including non-integer values, which satisfy the
functional and non-negativity constraints.
 Thus, since each decision variable represents the level of
some activity, it is being assumed that the activities can be run
at fractional levels.
 In certain situations, the divisibility assumption does not
hold because some of or all the decision variables must be
restricted to integer values. For this restrictions integer
programming model will be used.
4. Certainty assumption: various parameters (namely, the
objective function coefficients, the coefficients in the
functional constraints aij and resource values in the
constraints bi are certainly and precisely known and that their
values do not change with time.
 However, in real applications, the certainty assumption is
rarely satisfied precisely. For this reason it is usually important
to conduct sensitivity analysis after a solution is found that is
optimal under the assumed parameter values.
5. Finiteness: A LP model assumes that a finite (limited) number
of choices (alternatives) are available to the decision-maker and
that the decision variables are interrelated and non negative.
 The non-negativity condition shows that LP deals with real-
life situations as it is not possible to produce/use negative
quantities.
6. Optimality: In LP, the optimal solution always occurs at the
corner point of the set of feasible solutions.
2.3.Methods of Solving LP
 A linear programming problem can be solved by graphic method or
by applying algebraic method, called the simplex method.
1.Graphic method
 it can be used when only two variables are involved.This method
consists of the following steps:
1st. Represent the given problem in mathematical form.
2nd. Plot each of the constraint on the graph.
3rd. Identify the feasible region (or solution space) that satisfies all
the constraints simultaneously.Any point on or within the
shaded region represents a feasible solution to the given
problem.
4th. Locate the solution points (identify the corner points from the
solution space).
5th.Determine the optimal solution.A solution that optimizes the
objective function.
6th.Interpret the results
Important Definitions
 Solution: The set of values of decision variables Xi (i=1, 2,
….,n)which satisfy the constraints of an LP problem is said
to constitute solution to that LP problem
 Feasible solutions: The set of values of decision variables Xi
(i=1, 2… n) which satisfy all the constraints and non-
negativity conditions of an LP simultaneously.
 Infeasible solution: The set of values of decision variables
which do not satisfy all the constraints and non-
negativity conditions of an LP simultaneously.
 Optimum solution: A feasible solution which optimizes
(maximizes or minimizes) the objective function value of
the given LP problem is called an optimum basic feasible
solution.
 Unbounded solution: A solution which can increase or
decrease the value of the objective function of LP problem
indefinitely is called unbounded solution.
Example 1.
Consider two models of color TV sets; Model A and B, are
produced by a company to maximize profit.The profit
realized is $300 from A and $250 from set B.The
limitations are
a. availability of only 40hrs of labor each day in the
production department.
b. a daily availability of only 45 hrs on machine time
c. ability to sale 12 set of model A.
 How many sets of each model will be produced each day
so that the total profit will be as large as possible?
solution
It is maximization LPP. i.e, profit
Constraints Model A== X1 Model B==X2 Max available
hr
Labor hr 2 1 40
Machine hr 1 3 45
Marketing hr 1 0 12
Profit 300 250
1. Formulation of mathematical modeling of LPP
Max Z=300X1+250X2
St:
2X1+X2< 40
X1+3X2< 45
X1< 12
X1,X2 > 0
2. Convert constraints inequalities into equalities to draw graph
2X1+X2 = 40
X1+3X2= 45
X1= 12
3. Draw the graph by intercepts
2X1+X2 = 40 ==> (0, 40) and (20, 0)
X1+3X2= 45==> (0, 15) and (45, 0)
X1= 12==> (12, 0)
C
B15
40
12 20 45
X1
X2
A
D
X1+3X2 = 45(12, 11)
X1=12
X1=0
X2=0
Feasible
Region
4. Identify the feasible area of the solution which satisfies all
constrains.
5. Identify the corner points in the feasible region
A (0, 0), B (0, 15), C (12, 11) and D (12, 0)
6. Identify the optimal point
7. Interpret the result
Corners Coordinates MaxZ=300 X1 +250X2
A (0, 0) $0
B (0, 15) $3750
C (12, 11) $6350
D (12, 0) $3600
Interpretation:
12 units of product A and 11 units of product B
should be produced so that the total profit will be
$6350.
Example 2;
 Suppose that a machine shop has two different types of machines;
machine 1 and machine 2, which can be used to make a single
product .These machines vary in the amount of product produced
per hr., in the amount of labor used and in the cost of operation.
 Assume that at least a certain amount of product must be produced
and that we would like to utilize at least the regular labor force. How
much should we utilize each machine in order to utilize total costs
and still meets the requirement?
Resource machine 1
(X1)
Machine 2
(X2)
Minimum
required hours
Product
produced/hr
20 15 100
Labor/hr 2 3 15
Operation Cost 25 30
solution
 It is minimization LPP. i.e, cost
1. Formulation of mathematical modeling of LPP
Min Z=25X1+30X2
St.
20X1+15X2>100
2X1+3X2>15
X1, X2>0
2. Convert constraints inequalities into equalities to draw
graph
20X1+15X2=100
2X1+3X2=15
X1, X2=0
3. Draw the graph by intercepts
20X1 +15X2=100 ==> (0, 20/3) and (5, 0)
2X1+3X2=15 ==> (0, 5) and (7.5, 0)
Corners Coordinates MinZ=25 X1 + 30X2
A (0, 20/3) 200
B (2.5, 3.33) 162.5
C (7.5, 0) 187.5
we utilize X1 =2.5 hr and X2=3.33 hr to operate in
minimum cost of 162.5
Special Cases in Graphics Methods
1. Redundant Constraint:- If a constraint when plotted on a
graph doesn’t form part of the boundary making the feasible
region of the problem that constraint is said to be redundant.
Example:
A firm is engaged in producing two products A and B . Each
unit of product A requires 2Kg of raw material and 4 labor-
hours for processing; whereas each unit of product B
requires 3Kg of raw materials and 3hrs of labor. Every unit
of product A needs 4hrs to packaging and every unit of
product B needs 3.5hrs for packaging. Every week the firm
has availability of 60Kg of raw material, 96 labor-hours and
105 hrs. I the packaging department.1 unit of product A sold
yields $40 profit and 1 unit of B sod yields $35 profit.
Required:
a. Formulate this problem as a LPP
b. Find the optimal solution
Solution Products Res. av. / week
Resources A B
Raw materials (Kg) 2 3 60
Labor (hr) 4 3 96
Packaging (hr) 4 3.5 105
Profit per unit $40 $35
Let X1 =The Noof units of product A produced / week
X2 =The Noof units of product B produced per week
Max Z=40 X1 +35 X2
St.
2 X1 +3 X2 <60
4 X1 +3 X2 <96
4 X1 +3.5 X2 <105
X1, X2 > 0
 By changing the inequality into equality and plot the graph
Corners Coordinates MaxZ=40 X1 + 35X2
A (0, 0) 0
B (0, 20) 700
C (18, 8) 1000
D (24, 0) 960
X1 =18
X2=8 and
Max Z= 1000
Interpretation:
The company should produce and sale 18 units of
product A and 8 units of product B per week so as
to get a maximum profit of 1000.
 By this production plan the entire raw material will be consumed.
2X1+3X2 <60
2(18) +3(8)=60
60=60==> No idle or unused raw material
4X1+3X2 <96
4(18) +3(8)<96
96=96 ==>the entire labor hour will be consumed
4X1+3.5X2 <105
100<105==>There is to be idle or unused capacity of 5hrs in
the packaging department.
Note:
 The packaging hour’s constraint does not form part of the
boundary making the feasible region.
 Thus, this constraint is of no consequence and is therefore,
redundant.
 The inclusion or exclusion of a redundant constraint does not
affect the optimal solution of the problem.
2. Multiple optimal Solutions
==>We may have unlimited number of optimal solution without
increasing or decreasing the objective function.
Example:
The information given below is for the products A and B.
Machine hours per week Maximum
available
Department Product A Product B per week
Cutting 3 6 900
Assembly 1 1 200
Profit per unit $8 $16
Assume that the company has a marketing constraint on selling
products B and therefore it can sale a maximum of 125 units of this
product.
Required:
a. Formulate the LPP of this problem
b. Find the optimal solution
Solution:
Let X1 =The Noof units f product A produced per week
X2 =The Noof units f product B produced per week
The LPP Model of the problem is:
Max Z=8 X1 +16 X2
St.
3 X1 +6 X2 <900
X1 + X2 <200
X2 <125
X1, X2 >
By changing the inequality into equality and plot the graph
Corners Coordinates Max Z=8 X1 + 16X2
A (0, 0) 0
B (0,125) 2000
C (50,125) 2400
D (100,100) 2400
E (200,0) 1600
Both C and D are optimal solutions.Any point on the line segment CD will also
lead to the same optimal solution.
==>Multiple optimal solutions provide more choices for management to reach
their objectives.
3. Infeasible Solution
 It is sometimes possible that the constraints may be inconsistent so that there is no feasible
solution to the problem. Such a situation is called infeasibility.
Example:
MaxZ=20X1+30X2
St:
2X1+X2< 40
4X1+X2< 60
X1 > 30
X1, X2 > 0
4. Mix of constraints
5. Unbounded Solution
Example:
Max Z=3X1+4X2
St:
X1-X2<-1==> -X1+X2>1
since the quantity solution is positive
-X1+X2<0
X1, X2 > 0
Max Z =
30x1+50x2,
Subject to:
3x1 +x2 ≥ 9,
x1 + 2x2 ≥12,
x1 + 2x2 ≥9,
x1, x2 ≥ 0.
Max Z = 3x1+2x2,
Subject to:
-2x1 + 3x2 ≤ 9,
3x1 - 2x2 ≤ -20,
x1, x2 ≥ 0.
2. The Simplex Method
When a number of variables in a linear
programming are more than two, graphic method
cannot be used because of the difficulty precisely
representing the variables using more than a two
dimensional plane.
That means it is impossible to represent these
variables in the graph and evaluate the corner
points.
 In such cases, there is a comprehensive method
of solving a linear programming problem which is
called the simplex method (simplex algorithm).
Algorithm is a process where a systematic
procedure is repeated (iterated) over and over
again until the desired result is obtained.
Simplex method (algorithm) is an iterative
procedure that consists of moving from one
basic feasible to another in such a way that the
values of the objective function doesn’t decrease
(in case of maximization problem) and doesn’t
increase (in case of minimization problem).
The process continues until an optimal solution is
reached if it exists, otherwise, the problem may be
unbounded or not feasible and the simplex
method can’t find the solution.
Comparison Between Graphical And
Simplex Methods
1.The graphical method is used when we have two
decision variables in the problem.Whereas in
Simplex method, the problem may have any
number of decision variables.
2. In graphical method, the inequalities are assumed
to be equations, so as to enable to draw straight
lines. But in Simplex method, the inequalities are
converted into equations by:
 Adding a Slack Variable in maximization
problem and
subtracting a Surplus Variable in case of
minimization problem.
3. In graphical solution the Iso-profit line moves
away from the origin to towards the far off
point in maximization problem and in minimization
problem, the Iso-cost line moves from far off
distance towards origin to reach the nearest
point to origin.
4. In graphical method, the areas outside the feasible
area (area covered by all the lines of constraints in
the problem) indicates idle capacity of resource
where as in Simplex method, the presence of slack
variable indicates the idle capacity of the
resources.
1. Maximization LPP
Step 1: Formulate LP Model
Step 2: Convert the LP to standard form.
 The given problem is said to be expressed in standard
form if the decision variables are non-negative, R.H.S of
the constraints are non-negative and the constraints
are expressed as equations.
 A slack variable(s) is added to the left hand side of a <
constraint to covert the constraint inequality in to equality.
 The value of the slack variable shows unused resource.
 Slack variables represent unused resource or idle
capacity.Thus, they don’t produce any product and their
contribution to profit is zero.
 Slack variables are added to the objective function with
zero coefficients.
Step 3: Obtain the initial simplex tableau & Perform
optimality test
To represent the data, the simplex method uses a table
called the simplex table or the simplex matrix.
After that find Zj and Zj-Cj
Zj=∑Cbviaij (the sum of product of coefficient of
basic variables and coefficient of constraint in
the left side).
Zj-Cj ( the difference between Zj and coefficient of
objective function in standard form).
Optimality test: is the current solution optimal?
Depending on the value of Zj-Cj, if all values in this row
are zero and positive, then we get optimum solution
shortly and stop, if not Perform an iteration
Step 4. Select pivot column and pivot row
pivot column: The column with the “most negative
value” element in the last row(Zj-Cj)
pivot row: The row with the smallest non-negative
result when bi is divided by the corresponding in
the pivot column.)
The element lying at the intersection of key column
and key row is called key /pivot element.
Step5. Use elementary row operations to calculate
new values of next table.
New 1st row of next table =
each numbers in old pivot row/ pivot
element
The new values of the elements in the remaining
rows for the new simplex table can be obtained
by performing elementary row operations on all
rows.
Remaining new rows either above or below the
pivot row are calculated in the form of:
New row= each numbers in old row- coefficient
of pivot column * each numbers in pivot row
Again calculate Zj and Zj-Cj & Perform optimality
test. If get stop if not continue iteration until
you get the optimal solution
Example:1, step one is already finished.
Max Z = 3x1+4x2,
Subject to:
x1 + x2 ≤ 450,
2x1 +x2 ≤ 600,
Where x1, x2 ≥ 0.
 Convert in standard form by introducing slack variables
Max Z = 3x1+4x2 +0S1 +0S2
Subject to:
x1 + x2 + S1+ 0S2 =450,
2x1 + x2 +0S1 +S2= 600,
Where x1, x2, S1,S2 ≥ 0
Tabulate both the body matrix and identity matrix
Cj 3 4 0 0
Body matrix Identity
matrix
CBv BV x1 x2 S1 S2 bi
0 S1 1 (1) 1 0 450==450/1=450
0 S2 2 1 0 1 600==600/1=600
Zj=∑Cbviaij 0 0 0 0
Zj-Cj -3 -4 0 0
Pivot column
High negative value
from
Zj-Cj row
Pivot row
Lower
replacement
ratio =
bi/p.element
Pivot element
The intersection
point of pivot
row and column
X2 is entering variable while S1 is leaving
variable
 Use elementary row operations to calculate new values of next
table.
New 1st row of next table =
each numbers in old pivot row/ pivot element
New 1
st
row of next table= 1, (1), 1, 0, 450
1
= 1, 1, 1, 0, 450
New row remaining S2 = each numbers in old row- (coefficient of
pivot column )* (each numbers in New 1
st
row) .
2, 1, 0, 1, 600
--
(1)* (1, 1, 1, 0, 450 )
___________________________
New row of S2= 1, 0, -1, 1, 150
Then tabulate the next iteration table by using the above
information and check the optimality by calculating Zj and Zj-
Cj
Cj 3 4 0 0
Body matrix Identity
matrix
CBv BV x1 x2 S1 S2 bi
4 X2 1 1 1 0 450
0 S2 1 0 -1 1 150
Zj=∑Cbviaij 4 4 4 0 1800
Zj-Cj 1 0 4 0
Values in the Zj-Cj row are positive and
zero so, the given solution is optimal. Hence
the optimal solution is
x1=0, x2= 450, Zmax=1800.
Example 2:
Maximize Z = 3X1+ 5X2
Subject to
X1  4
2 X2  12
3X1 +2X2  18
X1 , X2  0
 Standard form
Maximize Z = 3X1+ 5X2 +0S1+ 0 S2 +0 S3
Subject to
X1 + S1+ 0 S2 + 0 S3 = 4
2 X2 + 0S1 + S2 + 0 S3 = 12
3X1 +2X2 +0S1+ 0 S2 + S3 = 18
X1 , X2, S1, S2, S3  0
 Tabulate both the body matrix and identity matrix
Cj 3 5 0 0 0
CBv BV x1 x2 S1 S2 S3 bi
0 S1 1 0 1 0 0 4== ---
0 S2 0 (2) 0 1 0 12== 12/2=6
0 S3 3 2 0 0 1 18== 18/2=9
Zj=∑Cbviaij 0 0 0 0 0
Zj-Cj -3 -5 0 0 0
Pivot column
High negative value
from
Zj-Cj row
Pivot row
Lower
replacement ratio
= bi/p.element
Pivot element
The intersection
point of pivot
row and column
X2 is entering variable while S2 is leaving
variable
 Use elementary row operations to calculate new values of next table.
New 1st row of next table for entering variable =
each numbers in old pivot row/ pivot element
0, (2), 0, 1, 0, 12 = [0, 1, 0, ½, 0, 6]
2
New row remaining S2 = each numbers in old row- (coefficient of pivot
column )* (each numbers in New 1
st
row) .
For S1
1 0 1 0 0 4
-
0 (0 1 0 1/2 0 6)
[ 1 0 1 0 0 4]
For S3
3 2 0 0 1 18
-
2 (0 1 0 1/2 0 6)
[ 3 0 0 -1 1 6]
Cj 3 5 0 0 0
CBv BV x1 x2 S1 S2 S3 bi
0 S1 1 0 1 0 0 4== 4/1=4
5 X2 0 1 0 1/2 0 6== ----
0 S3 (3) 0 0 -1 1 6== 6/3= 2
Zj=∑Cbviaij 0 5 0 5/2 0
Zj-Cj -3 0 0 5/2 0
Pivot column
High negative value
from
Zj-Cj row
Pivot row
Lower
replacement ratio
= bi/p.element
Pivot element
The intersection
point of pivot
row and column
X1 is entering variable while S3 is leaving
variable
 Use elementary row operations to calculate new values of next
table.
New 1st row of next table for entering variable =
each numbers in old pivot row/ pivot
element
(3) , 0 , 0 , -1 , 1 , 6 = [1, 0, 0, -1/3, 1/3, 2]
3
New row remaining S2 = each numbers in old row- (coefficient of
pivot column )* (each numbers in New 1st row) .
For S1. 1, 0, 1, 0 , 0 , 4
-
( 1) [1, 0, 0, -1/3, 1/3, 2]
[0, 0, 1, 1/3, -1/3, 2]
For X2 0, 1, 0, ½, 0, 6
-
(0) [1, 0, 0, -1/3, 1/3, 2]
[ 0, 1, 0, ½, 0, 6]
Cj 3 5 0 0 0
CBv BV x1 x2 S1 S2 S3 bi
0 S1 0 0 1 1/3 -1/3 2
5 X2 0 1 0 1/2 0 6
3 X1 1 0 0 -1/3 1/3 2
Zj=∑Cbviaij 3 5 0 3/2 1 36
Zj-Cj 0 0 0 3/2 1
This solution is optimal; since there is no
negative solution in the last row: basic variables
are X1 = 2, X2 = 6 and S1 = 2; the non-basic
variables are S2 = S3 = 0 max Z = 36
Artificial Variables Technique
 There are many linear programming problems where slack variables
cannot provide a solution in case of maximization.
 In these problems at least one of the constraints is of (≥) or (=)
type. In such cases we introduce another type of variables called
artificial variables.
 Artificial variables are fictitious and have no any physical or
economic meaning.
They assume the role of slack variables in the first iteration, only to
be replaced at a later iteration.
Are merely a device to get the starting basic feasible solution and
then the usual simplex procedure will be adopted until the optimal
solution is obtained.
are expressed by capital letter “A” and used for “≥” type of
inequalities and “=” equations.
Artificial variables enter in to the objective function with “M”
coefficient i.e., it inter in to the objective function with –ve value
(-M) for maximization and +ve value (+M) for
minimization, where M >0.
M denotes some huge positive number (very huge penalty), for that
Steps of the big M-method algorithm
Step 1: Express the LP problem in the standard
form by introducing slack variables.
These variables are added to the L.H S of the
constraints of (≤) and subtracted from the
constraints of (≥) type.
Step 2: Add non-negative artificial variable (A)
corresponding to constraints having “≥” and “=”
equations.
Step 3: determine the basic and non-basic variables
Step 4: Solve the modified LPP by the simplex
method.
While making iterations, using the simplex method,
one of the following three cases may arise:
 If no artificial variable remains in the basis
and the optimality condition is satisfied, then
the solution is an optimal feasible
solution.
If at least one artificial variable appears in the
basis at zero level and optimality condition is
satisfied, then the solution is optimal feasible
solution. But it is a degenerate solution.The
constraints are consistent though redundancy
may exist in them.
Redundancy means that the problem has more
than the required number of constraints.
If at least one artificial variable appears in
the basis at a non-zero level (with +ve
value in b-column) and the optimality
condition is satisfied, then the original
problem has no feasible solution.
Therefore, the original problem doesn’t
have feasible solution because it
contains artificial variable (a very
large penalty M).
NB:
1. Slack variables are added to the constraints of (≤) type
and subtracted from the constraints of (≥) type.
2. Artificial variables are added to the constraints of (≥)
and (=) type. Equality constraints require neither slack
nor surplus variables.
3.Variables, other than the artificial variables, once driven out
in iteration, may re-inter in a subsequent iteration.
Example :
Max Z = 3x1- x2
Subject to:
2x1 + x2 ≤ 2,
x1 + 3x2 ≥3,
x2 ≤ 4,
x1, x2 ≥ 0.
Step 1: Set up the problem in
standard form
Max Z = 3x1- x2 +0s1+0s2+0s3-MA1,
Subject to:
2x1 + x2 + s1 = 2, BV= s1, A1, s3
x1 + 3x2 - s2 +A1=3,
x2 + s3 = 4,
x1, x2, s1, s2, s3,A1≥ 0.
Therefore, optimal solution is given by:
X1=3/5, x2=4/5, Zmax=1
Special Cases in the Simplex Method Application
Tie Breaking in Simplex Method
While operating the simplex iteration, tie may occur
and we may face indifference in choosing the entry or
the leaving variable.When tie may occur, the following
are important to do:
1.Tie in the choice of entering variables: the non-
basic variable that enters the basis is the one that gives
the largest per unit improvement in the objective function.
Variable having maximum –ve value in a maximization
problem and the maximum +ve value in the
minimization problem in Zj- Cj row is the entering
variable.
 A tie in the entering variable exists when more than
one variable has same largest (or smallest) value.
To break the tie any one of them is selected
arbitrarily as the entering variable.
2. Tie in the choice of leaving variables: This
is the case when the ratio is the same. This tie
can be resolved by choosing one of the
variables arbitrarily.
No leaving basic variable (unbounded
objective function)
This is the case when all elements of the
pivot column are –ve or zero that no
variable qualifies to be a leaving basic variable.
In this case no finite solution can be
determined.
3. Multiple optimal solutions
This is the case when the LPP have more than one
optimal solution.
In the simplex table if the Zj- Cj value is zero for a
non-basic variable, it indicates that the existence
of more than one optimal solution.
4. Infeasible solution
If all the constraints are not satisfied
simultaneously, the model has no feasible solution.
In the case of big M method if at least one of the
artificial variables has positive value and the
solution is optimal, then this is the indication of no
feasible solution.
2. Minimization LPP
Similarity of maximization and minimization LPP
Maximization LPP Minimization LPP
It has an objective function. has also an objective function.
It has structural constraints. has also structural constraints.
Linear relationship between
variables and constraints
Also Linear relationship
between variables and constraints
It has non-negativity constraint. This too has non-negativity
constraints.
The coefficients of variables may
be positive or negative or zero.
The coefficient of variables may
be positive, Negative or zero.
For selecting out going variable
(key row) lowest replacement ratio
is selected.
For selecting out going variable
(key row) lowest replacement ratio
is selected.
Difference b/n maximization and minimization LPP
Maximization LPP Minimization LPP
The objective function is of
maximization type.
The objective function is of
minimization type.
The inequalities are of ≤ type.
Use at most .
The inequalities are of ≥ type. Use
at least.
To convert inequalities into
equations, slack
variables are added.
To convert inequalities into
equations, surplus Variables are
subtracted and artificial surplus
variables are added with big M
coefficients.
While selecting, incoming
variable, lowest element in the net
evaluation row is selected (highest
number with negative sign).
While selecting incoming variable,
highest positive Opportunity cost is
selected from net evaluation Row.
When the element of net When the elements of net
The other alternative method of solving minimization
problem is by converting it to maximization. i.e., Min
Z=Max (-Z).
Example
Min Z = 12x1+20x2
Subject to:
6x1 + 8x2 ≥100,
7x1 + 12x2 ≥120,
x1, x2 ≥ 0.
Standard form:
Min Z = 12x1+20x2 +0s1+0s2+MA1+MA2
Subject to:
6x1 + 8x2 -s1+A1=100,
7x1 + 12x2 –s2+A2=120,
x1, x2, s1, s2,A1,A2 ≥ 0.
Since all values in Zj- Cj row are zeros
and negative ,so that we get optimal
solution X1=15, X2=5/4 and min Z=205
Example 2.
Minimize Z=25x1 +30x2
Subject to:
20x1+15x2 > 100
2x1+ 3x2 > 15
x1, x2 > 0
Standardize the problem
Minimize Z=25x1 +30x2 +0s1+0s2 +MA1+MA2
Subject to:
20x1+15x2- s1+A1 = 100
2x1+ 3x2 –s2+A2 = 15
x1, x2 , s1, s2 ,A1 ,A2 > 0
Cj 25 30 0 0 M M
Cbv Bv X1 X2 S1 S2 A1 A2 bi Ratio
M A1 20 15 -1 0 1 0 100 5
M A2 2 3 0 -1 0 1 15 7.5
Zj 22M 18M -M -M M M
Zj-Cj 22M-25 18M-30 -M -M M M
Once an artificial variable has left the basis, it has served its
purpose and can therefore be removed from the simplex tableau.An
artificial variable is never considered for re-entry into the basis.
Cj 25 30 0 0 M
Cbv Bv X1 X2 S1 S2 A2 bi Ratio
25 X1 1 3/4 -1/20 0 0 5 20/3
M A2 0 3/2 1/10 -1 1 5 10/3
Zj 25 75/4+3/2M 5/4+1/10M -M M
Zj-Cj 0 -45/4+3/2M 5/4+1/10 M -M M
Cj 25 30 0 0
Cbv Bv X1 X2 S1 S2 bi
25 X1 1 0 -1/10 1/2 5/2
30 X2 0 1 1/15 -2/3 10/3
Zj 25 30 -1/2 -15/2 162.5
Zj-Cj 0 0 -1/2 -15/2
Since all values in Zj- Cj row are zeros
and negative ,so that we get optimal
solution X1= 5/2 X2= 10/3 and
min Z= 162.5

Weitere ähnliche Inhalte

Was ist angesagt?

Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear ProgrammingSukhpalRamanand
 
3. linear programming senstivity analysis
3. linear programming senstivity analysis3. linear programming senstivity analysis
3. linear programming senstivity analysisHakeem-Ur- Rehman
 
Simplex Method
Simplex MethodSimplex Method
Simplex MethodSachin MK
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copyKiran Jadhav
 
NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING karishma gupta
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,Dronak Sahu
 
Graphical Method
Graphical MethodGraphical Method
Graphical MethodSachin MK
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMINGrashi9
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical MethodJoseph Konnully
 
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)Sensitivity analysis in linear programming problem ( Muhammed Jiyad)
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)Muhammed Jiyad
 
Transportation model
Transportation modelTransportation model
Transportation modelSATISH
 
Linear Programming Problems : Dr. Purnima Pandit
Linear Programming Problems : Dr. Purnima PanditLinear Programming Problems : Dr. Purnima Pandit
Linear Programming Problems : Dr. Purnima PanditPurnima Pandit
 
Transportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingTransportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingMirza Tanzida
 
Linear Programming
Linear ProgrammingLinear Programming
Linear ProgrammingHumma Rashid
 

Was ist angesagt? (20)

Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear Programming
 
3. linear programming senstivity analysis
3. linear programming senstivity analysis3. linear programming senstivity analysis
3. linear programming senstivity analysis
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copy
 
linear programming
linear programminglinear programming
linear programming
 
NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING
 
Linear programing
Linear programingLinear programing
Linear programing
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
 
simplex method
simplex methodsimplex method
simplex method
 
Graphical Method
Graphical MethodGraphical Method
Graphical Method
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
 
simplex method
simplex methodsimplex method
simplex method
 
Minimization model by simplex method
Minimization model by simplex methodMinimization model by simplex method
Minimization model by simplex method
 
Lenier Equation
Lenier EquationLenier Equation
Lenier Equation
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical Method
 
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)Sensitivity analysis in linear programming problem ( Muhammed Jiyad)
Sensitivity analysis in linear programming problem ( Muhammed Jiyad)
 
Transportation model
Transportation modelTransportation model
Transportation model
 
Linear Programming Problems : Dr. Purnima Pandit
Linear Programming Problems : Dr. Purnima PanditLinear Programming Problems : Dr. Purnima Pandit
Linear Programming Problems : Dr. Purnima Pandit
 
Transportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingTransportation Problem In Linear Programming
Transportation Problem In Linear Programming
 
Linear Programming
Linear ProgrammingLinear Programming
Linear Programming
 

Ähnlich wie linear programming

Chapter 2 Linear Programming for business (1).pptx
Chapter 2 Linear Programming for business (1).pptxChapter 2 Linear Programming for business (1).pptx
Chapter 2 Linear Programming for business (1).pptxanimutsileshe1
 
Quantitativetechniqueformanagerialdecisionlinearprogramming 090725035417-phpa...
Quantitativetechniqueformanagerialdecisionlinearprogramming 090725035417-phpa...Quantitativetechniqueformanagerialdecisionlinearprogramming 090725035417-phpa...
Quantitativetechniqueformanagerialdecisionlinearprogramming 090725035417-phpa...kongara
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptxDejeneDay
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptxDejeneDay
 
linearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptxlinearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptxKOUSHIkPIPPLE
 
Introduction to linear programming
Introduction to linear programmingIntroduction to linear programming
Introduction to linear programmingn_cool001
 
Linear Programming 1
Linear Programming 1Linear Programming 1
Linear Programming 1irsa javed
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptxDejeneDay
 
Linear programming models - U2.pptx
Linear programming models - U2.pptxLinear programming models - U2.pptx
Linear programming models - U2.pptxMariaBurgos55
 
CHAPTER 6 System Techniques in water resuorce ppt yadesa.pptx
CHAPTER 6 System Techniques in water resuorce ppt yadesa.pptxCHAPTER 6 System Techniques in water resuorce ppt yadesa.pptx
CHAPTER 6 System Techniques in water resuorce ppt yadesa.pptxGodisgoodtube
 
Chapter 2.Linear Programming.pdf
Chapter 2.Linear Programming.pdfChapter 2.Linear Programming.pdf
Chapter 2.Linear Programming.pdfTsegay Berhe
 
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...IFPRI-EPTD
 
A brief study on linear programming solving methods
A brief study on linear programming solving methodsA brief study on linear programming solving methods
A brief study on linear programming solving methodsMayurjyotiNeog
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 012013901097
 
Chapter 6-INTEGER PROGRAMMING note.pdf
Chapter 6-INTEGER PROGRAMMING  note.pdfChapter 6-INTEGER PROGRAMMING  note.pdf
Chapter 6-INTEGER PROGRAMMING note.pdfTsegay Berhe
 
1 resource optimization 2
1 resource optimization 21 resource optimization 2
1 resource optimization 2shushay hailu
 
CHAPTER TWO - OPERATIONS RESEARCH (2).pptx
CHAPTER TWO - OPERATIONS RESEARCH (2).pptxCHAPTER TWO - OPERATIONS RESEARCH (2).pptx
CHAPTER TWO - OPERATIONS RESEARCH (2).pptxAynetuTerefe2
 
Linear Programming Module- A Conceptual Framework
Linear Programming Module- A Conceptual FrameworkLinear Programming Module- A Conceptual Framework
Linear Programming Module- A Conceptual FrameworkSasquatch S
 
LP linear programming (summary) (5s)
LP linear programming (summary) (5s)LP linear programming (summary) (5s)
LP linear programming (summary) (5s)Dionísio Carmo-Neto
 

Ähnlich wie linear programming (20)

Chapter 2 Linear Programming for business (1).pptx
Chapter 2 Linear Programming for business (1).pptxChapter 2 Linear Programming for business (1).pptx
Chapter 2 Linear Programming for business (1).pptx
 
Quantitativetechniqueformanagerialdecisionlinearprogramming 090725035417-phpa...
Quantitativetechniqueformanagerialdecisionlinearprogramming 090725035417-phpa...Quantitativetechniqueformanagerialdecisionlinearprogramming 090725035417-phpa...
Quantitativetechniqueformanagerialdecisionlinearprogramming 090725035417-phpa...
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
 
linearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptxlinearprogramingproblemlpp-180729145239.pptx
linearprogramingproblemlpp-180729145239.pptx
 
Introduction to linear programming
Introduction to linear programmingIntroduction to linear programming
Introduction to linear programming
 
LPP.pptx
LPP.pptxLPP.pptx
LPP.pptx
 
Linear Programming 1
Linear Programming 1Linear Programming 1
Linear Programming 1
 
chapter 2 revised.pptx
chapter 2 revised.pptxchapter 2 revised.pptx
chapter 2 revised.pptx
 
Linear programming models - U2.pptx
Linear programming models - U2.pptxLinear programming models - U2.pptx
Linear programming models - U2.pptx
 
CHAPTER 6 System Techniques in water resuorce ppt yadesa.pptx
CHAPTER 6 System Techniques in water resuorce ppt yadesa.pptxCHAPTER 6 System Techniques in water resuorce ppt yadesa.pptx
CHAPTER 6 System Techniques in water resuorce ppt yadesa.pptx
 
Chapter 2.Linear Programming.pdf
Chapter 2.Linear Programming.pdfChapter 2.Linear Programming.pdf
Chapter 2.Linear Programming.pdf
 
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
Biosight: Quantitative Methods for Policy Analysis - Introduction to GAMS, Li...
 
A brief study on linear programming solving methods
A brief study on linear programming solving methodsA brief study on linear programming solving methods
A brief study on linear programming solving methods
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 01
 
Chapter 6-INTEGER PROGRAMMING note.pdf
Chapter 6-INTEGER PROGRAMMING  note.pdfChapter 6-INTEGER PROGRAMMING  note.pdf
Chapter 6-INTEGER PROGRAMMING note.pdf
 
1 resource optimization 2
1 resource optimization 21 resource optimization 2
1 resource optimization 2
 
CHAPTER TWO - OPERATIONS RESEARCH (2).pptx
CHAPTER TWO - OPERATIONS RESEARCH (2).pptxCHAPTER TWO - OPERATIONS RESEARCH (2).pptx
CHAPTER TWO - OPERATIONS RESEARCH (2).pptx
 
Linear Programming Module- A Conceptual Framework
Linear Programming Module- A Conceptual FrameworkLinear Programming Module- A Conceptual Framework
Linear Programming Module- A Conceptual Framework
 
LP linear programming (summary) (5s)
LP linear programming (summary) (5s)LP linear programming (summary) (5s)
LP linear programming (summary) (5s)
 

Kürzlich hochgeladen

HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 

Kürzlich hochgeladen (20)

HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 

linear programming

  • 2. 2.1.Basic Concepts in Linear Programming 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 1st. Conversion of stated problem into a mathematical model; 2nd. Exploration of different solutions of the problem. 3rd.Finding out the most suitable or optimum solution.
  • 3.  Linear programming requires that all the mathematical functions in the model be linear functions.  It is a mathematical process that as bee developed to help management in decision making involving the efficient allocation of scares resources to achieve a certain objective.  It is planning of activities to obtain an optimal result.  It maximize or minimize a linear function, subject to a set of linear constraints.  The linear model consists of the following components: A set of decision variables An objective function A set of constraints
  • 4. Decision variables: variables that we used in the model, whose values are unknown . Objective function: The function that is to be maximized or minimized is called the objective function. E.g max profit and min cost. Constraints: are limitations or restrictions imposed by the problems. include: A. Resource constraints:Are restrictions that should be clearly identifiable and measurable in quantitative terms, which arise from limitation of available resources. Examples of limited resources: =>Plant capacity =>Raw materials availability =>Labor power =>Market demand, etc. B. Non-negativity constraints: Are constraints that require the decision variables not to take on negative values Linearity:The Objective Function and the constraints must be linear
  • 5. Linear Programming Problems can be solved by using: i. The Geometric method called” Graphical Method” ii. The Algebraic method called” Simplex Method” Feasible region/solution/ for an LP is the set of all points that satisfies all the LP’s 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. For a minimization problem, an optimal solution is a point in the feasible region with the smallest objective function value.
  • 6. 2.2. Formulations of LPP Application of linear programming involves allocating resources to activities. The amount available of each resource is limited, so a careful allocation of resources to activities must be made. Determining this allocation involves choosing the levels of the activities that achieve the best possible value of the overall measure of performance.
  • 7. Steps in Formulating a Linear Programming Problem Understand the problem Identify the Decision Maker (DM) Identify the decision variables State the obj. function as a linear combination of the decision variables State the constraints as a linear combination of the decision variables Identify upper or lower bounds on DV’s
  • 8. Standard form of Lpp Maximization Max z = c1x1 + c2x2 + ... + cnxn objective function subject to: a11x1 + a12x2 + ... + a1nxn ≤ b1 a21x1 + a22x2 + ... + a2nxn ≤ b2 constraint Functions : am1x1 + am2x2 + ... + amnxn ≤bm x1,…xn> 0 non-negativity constraints xj = decision variables bi = constraint levels cj = objective function coefficients aij = constraint coefficients
  • 9. Minimization Min z = c1x1 + c2x2 + ... + cnxn objective function subject to: a11x1 + a12x2 + ... + a1nxn ≥ b1 a21x1 + a22x2 + ... + a2nxn ≥ b2 constraint functions : am1x1 + am2x2 + ... + amnxn ≥ bm x1,…xn> 0 non-negativity constraints xj = decision variables bi = constraint levels cj = objective function coefficients aij = constraint coefficients
  • 10. Example1: formulate the following LPP A firm manufactures two products, X and Y. For each product, it is necessary to use three different machines: A, B, and C. To manufacture one unit of product X, machine A must be used for three hours, machine B for 1 hour and machine C for 1 hour. To manufacture one unit of productY requires two hours on A, 2 hours on B, and 1 hour on C. The profit on X is $500 per unit while the profit onY is $350 per unit. Machine A is available for 24 hours a day, B for 16 hours, and C for 9 hours. Determine the number of units of X andY that should be produced to maximize profit.
  • 11. Machine Required hours Hours available X Y A 3 2 24 B 1 2 16 C 1 1 9 Max Z=500X+350Y Objective function Max Z=500X+350Y => objective function profit max Subject to 3x + 2y ≤ 24 x + 2y ≤ 16 constraint functions time resource x + y ≤ 9 X,Y>0 non negativity constraints
  • 12. Example 2: a Chemical manufacture produce three chemicals:A, B, and C.These chemicals are produced via two production processes: 1 and 2. Running process 1 for an hour costs $4 and yields 3 units of A, 1unit of B, and 1 unit of C. Running process 2 for an hour costs $1 and produces 1 unit of A and 1 of B. To meet customer demands, at least 10 units of A, 5 of B, and 3 of C must be produced daily. determine a daily production plan that minimizes the cost of meeting Leary Chemical’s daily demands.
  • 13. Chemicals Production process minimum Resources1== let X 2== letY A 3 1 10 B 1 1 5 C 1 0 3 Min z 4 1 Min Z=4X+Y objective function, cost min Subject to 3X+Y>10 X+Y>5 X>3 X,Y >0
  • 14. Example 3: Farmer Gete owns 45 acres of land. She is going to plant each with wheat or maize. Each acre planted with wheat yields $200 profit; each with maize yields $300 profit. 3 workers for wheat and 2 workers for maize are required labor force while 2 tons & 4 tons of fertilizer required for wheat and maize respectivly. One hundred workers and 120 tons of fertilizer are available. Use linear programming to determine how Jane can maximize profits from her land. Max Z= 200W+300M Subject to 3W+2M<100 2W+4M<120 W,M> 0
  • 15. 2.2.1. Assumptions of linear programming A linear programming model is based on the following assumptions; 1. Proportionality assumption: exists in the objective function and the constraints.  Contribution of each activity to the value of the objective function Z is proportional to the level of the activity Xj, as represented by the CjXj term in the objective function.  Resource consumption of each activity in each functional constraint is proportional to the level of the activity Xj, as represented by the aijXj term in the constraint. If not hold? use nonlinear programming
  • 16. 2.Additivity assumption: every function in a linear programming model (whether the objective function or the left-hand side of the a functional constraint) is the sum of the individual contributions of the respective activities. i.e linearity .  If not hold? In most cases we use nonlinear programming. 3. Divisibility assumption: decision variables are allowed to have any values, including non-integer values, which satisfy the functional and non-negativity constraints.  Thus, since each decision variable represents the level of some activity, it is being assumed that the activities can be run at fractional levels.  In certain situations, the divisibility assumption does not hold because some of or all the decision variables must be restricted to integer values. For this restrictions integer programming model will be used.
  • 17. 4. Certainty assumption: various parameters (namely, the objective function coefficients, the coefficients in the functional constraints aij and resource values in the constraints bi are certainly and precisely known and that their values do not change with time.  However, in real applications, the certainty assumption is rarely satisfied precisely. For this reason it is usually important to conduct sensitivity analysis after a solution is found that is optimal under the assumed parameter values. 5. Finiteness: A LP model assumes that a finite (limited) number of choices (alternatives) are available to the decision-maker and that the decision variables are interrelated and non negative.  The non-negativity condition shows that LP deals with real- life situations as it is not possible to produce/use negative quantities. 6. Optimality: In LP, the optimal solution always occurs at the corner point of the set of feasible solutions.
  • 18. 2.3.Methods of Solving LP  A linear programming problem can be solved by graphic method or by applying algebraic method, called the simplex method. 1.Graphic method  it can be used when only two variables are involved.This method consists of the following steps: 1st. Represent the given problem in mathematical form. 2nd. Plot each of the constraint on the graph. 3rd. Identify the feasible region (or solution space) that satisfies all the constraints simultaneously.Any point on or within the shaded region represents a feasible solution to the given problem. 4th. Locate the solution points (identify the corner points from the solution space). 5th.Determine the optimal solution.A solution that optimizes the objective function. 6th.Interpret the results
  • 19. Important Definitions  Solution: The set of values of decision variables Xi (i=1, 2, ….,n)which satisfy the constraints of an LP problem is said to constitute solution to that LP problem  Feasible solutions: The set of values of decision variables Xi (i=1, 2… n) which satisfy all the constraints and non- negativity conditions of an LP simultaneously.  Infeasible solution: The set of values of decision variables which do not satisfy all the constraints and non- negativity conditions of an LP simultaneously.  Optimum solution: A feasible solution which optimizes (maximizes or minimizes) the objective function value of the given LP problem is called an optimum basic feasible solution.  Unbounded solution: A solution which can increase or decrease the value of the objective function of LP problem indefinitely is called unbounded solution.
  • 20. Example 1. Consider two models of color TV sets; Model A and B, are produced by a company to maximize profit.The profit realized is $300 from A and $250 from set B.The limitations are a. availability of only 40hrs of labor each day in the production department. b. a daily availability of only 45 hrs on machine time c. ability to sale 12 set of model A.  How many sets of each model will be produced each day so that the total profit will be as large as possible? solution It is maximization LPP. i.e, profit
  • 21. Constraints Model A== X1 Model B==X2 Max available hr Labor hr 2 1 40 Machine hr 1 3 45 Marketing hr 1 0 12 Profit 300 250 1. Formulation of mathematical modeling of LPP Max Z=300X1+250X2 St: 2X1+X2< 40 X1+3X2< 45 X1< 12 X1,X2 > 0 2. Convert constraints inequalities into equalities to draw graph 2X1+X2 = 40 X1+3X2= 45 X1= 12
  • 22. 3. Draw the graph by intercepts 2X1+X2 = 40 ==> (0, 40) and (20, 0) X1+3X2= 45==> (0, 15) and (45, 0) X1= 12==> (12, 0) C B15 40 12 20 45 X1 X2 A D X1+3X2 = 45(12, 11) X1=12 X1=0 X2=0 Feasible Region 4. Identify the feasible area of the solution which satisfies all constrains. 5. Identify the corner points in the feasible region A (0, 0), B (0, 15), C (12, 11) and D (12, 0) 6. Identify the optimal point 7. Interpret the result
  • 23. Corners Coordinates MaxZ=300 X1 +250X2 A (0, 0) $0 B (0, 15) $3750 C (12, 11) $6350 D (12, 0) $3600 Interpretation: 12 units of product A and 11 units of product B should be produced so that the total profit will be $6350.
  • 24. Example 2;  Suppose that a machine shop has two different types of machines; machine 1 and machine 2, which can be used to make a single product .These machines vary in the amount of product produced per hr., in the amount of labor used and in the cost of operation.  Assume that at least a certain amount of product must be produced and that we would like to utilize at least the regular labor force. How much should we utilize each machine in order to utilize total costs and still meets the requirement? Resource machine 1 (X1) Machine 2 (X2) Minimum required hours Product produced/hr 20 15 100 Labor/hr 2 3 15 Operation Cost 25 30
  • 25. solution  It is minimization LPP. i.e, cost 1. Formulation of mathematical modeling of LPP Min Z=25X1+30X2 St. 20X1+15X2>100 2X1+3X2>15 X1, X2>0 2. Convert constraints inequalities into equalities to draw graph 20X1+15X2=100 2X1+3X2=15 X1, X2=0
  • 26. 3. Draw the graph by intercepts 20X1 +15X2=100 ==> (0, 20/3) and (5, 0) 2X1+3X2=15 ==> (0, 5) and (7.5, 0)
  • 27. Corners Coordinates MinZ=25 X1 + 30X2 A (0, 20/3) 200 B (2.5, 3.33) 162.5 C (7.5, 0) 187.5 we utilize X1 =2.5 hr and X2=3.33 hr to operate in minimum cost of 162.5
  • 28. Special Cases in Graphics Methods 1. Redundant Constraint:- If a constraint when plotted on a graph doesn’t form part of the boundary making the feasible region of the problem that constraint is said to be redundant. Example: A firm is engaged in producing two products A and B . Each unit of product A requires 2Kg of raw material and 4 labor- hours for processing; whereas each unit of product B requires 3Kg of raw materials and 3hrs of labor. Every unit of product A needs 4hrs to packaging and every unit of product B needs 3.5hrs for packaging. Every week the firm has availability of 60Kg of raw material, 96 labor-hours and 105 hrs. I the packaging department.1 unit of product A sold yields $40 profit and 1 unit of B sod yields $35 profit. Required: a. Formulate this problem as a LPP b. Find the optimal solution
  • 29. Solution Products Res. av. / week Resources A B Raw materials (Kg) 2 3 60 Labor (hr) 4 3 96 Packaging (hr) 4 3.5 105 Profit per unit $40 $35 Let X1 =The Noof units of product A produced / week X2 =The Noof units of product B produced per week Max Z=40 X1 +35 X2 St. 2 X1 +3 X2 <60 4 X1 +3 X2 <96 4 X1 +3.5 X2 <105 X1, X2 > 0
  • 30.  By changing the inequality into equality and plot the graph
  • 31. Corners Coordinates MaxZ=40 X1 + 35X2 A (0, 0) 0 B (0, 20) 700 C (18, 8) 1000 D (24, 0) 960 X1 =18 X2=8 and Max Z= 1000 Interpretation: The company should produce and sale 18 units of product A and 8 units of product B per week so as to get a maximum profit of 1000.
  • 32.  By this production plan the entire raw material will be consumed. 2X1+3X2 <60 2(18) +3(8)=60 60=60==> No idle or unused raw material 4X1+3X2 <96 4(18) +3(8)<96 96=96 ==>the entire labor hour will be consumed 4X1+3.5X2 <105 100<105==>There is to be idle or unused capacity of 5hrs in the packaging department. Note:  The packaging hour’s constraint does not form part of the boundary making the feasible region.  Thus, this constraint is of no consequence and is therefore, redundant.  The inclusion or exclusion of a redundant constraint does not affect the optimal solution of the problem.
  • 33. 2. Multiple optimal Solutions ==>We may have unlimited number of optimal solution without increasing or decreasing the objective function. Example: The information given below is for the products A and B. Machine hours per week Maximum available Department Product A Product B per week Cutting 3 6 900 Assembly 1 1 200 Profit per unit $8 $16 Assume that the company has a marketing constraint on selling products B and therefore it can sale a maximum of 125 units of this product. Required: a. Formulate the LPP of this problem b. Find the optimal solution
  • 34. Solution: Let X1 =The Noof units f product A produced per week X2 =The Noof units f product B produced per week The LPP Model of the problem is: Max Z=8 X1 +16 X2 St. 3 X1 +6 X2 <900 X1 + X2 <200 X2 <125 X1, X2 > By changing the inequality into equality and plot the graph
  • 35. Corners Coordinates Max Z=8 X1 + 16X2 A (0, 0) 0 B (0,125) 2000 C (50,125) 2400 D (100,100) 2400 E (200,0) 1600 Both C and D are optimal solutions.Any point on the line segment CD will also lead to the same optimal solution. ==>Multiple optimal solutions provide more choices for management to reach their objectives.
  • 36. 3. Infeasible Solution  It is sometimes possible that the constraints may be inconsistent so that there is no feasible solution to the problem. Such a situation is called infeasibility. Example: MaxZ=20X1+30X2 St: 2X1+X2< 40 4X1+X2< 60 X1 > 30 X1, X2 > 0 4. Mix of constraints 5. Unbounded Solution Example: Max Z=3X1+4X2 St: X1-X2<-1==> -X1+X2>1 since the quantity solution is positive -X1+X2<0 X1, X2 > 0 Max Z = 30x1+50x2, Subject to: 3x1 +x2 ≥ 9, x1 + 2x2 ≥12, x1 + 2x2 ≥9, x1, x2 ≥ 0. Max Z = 3x1+2x2, Subject to: -2x1 + 3x2 ≤ 9, 3x1 - 2x2 ≤ -20, x1, x2 ≥ 0.
  • 37. 2. The Simplex Method When a number of variables in a linear programming are more than two, graphic method cannot be used because of the difficulty precisely representing the variables using more than a two dimensional plane. That means it is impossible to represent these variables in the graph and evaluate the corner points.  In such cases, there is a comprehensive method of solving a linear programming problem which is called the simplex method (simplex algorithm).
  • 38. Algorithm is a process where a systematic procedure is repeated (iterated) over and over again until the desired result is obtained. Simplex method (algorithm) is an iterative procedure that consists of moving from one basic feasible to another in such a way that the values of the objective function doesn’t decrease (in case of maximization problem) and doesn’t increase (in case of minimization problem). The process continues until an optimal solution is reached if it exists, otherwise, the problem may be unbounded or not feasible and the simplex method can’t find the solution.
  • 39. Comparison Between Graphical And Simplex Methods 1.The graphical method is used when we have two decision variables in the problem.Whereas in Simplex method, the problem may have any number of decision variables. 2. In graphical method, the inequalities are assumed to be equations, so as to enable to draw straight lines. But in Simplex method, the inequalities are converted into equations by:  Adding a Slack Variable in maximization problem and subtracting a Surplus Variable in case of minimization problem.
  • 40. 3. In graphical solution the Iso-profit line moves away from the origin to towards the far off point in maximization problem and in minimization problem, the Iso-cost line moves from far off distance towards origin to reach the nearest point to origin. 4. In graphical method, the areas outside the feasible area (area covered by all the lines of constraints in the problem) indicates idle capacity of resource where as in Simplex method, the presence of slack variable indicates the idle capacity of the resources.
  • 41. 1. Maximization LPP Step 1: Formulate LP Model Step 2: Convert the LP to standard form.  The given problem is said to be expressed in standard form if the decision variables are non-negative, R.H.S of the constraints are non-negative and the constraints are expressed as equations.  A slack variable(s) is added to the left hand side of a < constraint to covert the constraint inequality in to equality.  The value of the slack variable shows unused resource.  Slack variables represent unused resource or idle capacity.Thus, they don’t produce any product and their contribution to profit is zero.  Slack variables are added to the objective function with zero coefficients.
  • 42. Step 3: Obtain the initial simplex tableau & Perform optimality test To represent the data, the simplex method uses a table called the simplex table or the simplex matrix. After that find Zj and Zj-Cj Zj=∑Cbviaij (the sum of product of coefficient of basic variables and coefficient of constraint in the left side). Zj-Cj ( the difference between Zj and coefficient of objective function in standard form). Optimality test: is the current solution optimal? Depending on the value of Zj-Cj, if all values in this row are zero and positive, then we get optimum solution shortly and stop, if not Perform an iteration
  • 43. Step 4. Select pivot column and pivot row pivot column: The column with the “most negative value” element in the last row(Zj-Cj) pivot row: The row with the smallest non-negative result when bi is divided by the corresponding in the pivot column.) The element lying at the intersection of key column and key row is called key /pivot element. Step5. Use elementary row operations to calculate new values of next table. New 1st row of next table = each numbers in old pivot row/ pivot element
  • 44. The new values of the elements in the remaining rows for the new simplex table can be obtained by performing elementary row operations on all rows. Remaining new rows either above or below the pivot row are calculated in the form of: New row= each numbers in old row- coefficient of pivot column * each numbers in pivot row Again calculate Zj and Zj-Cj & Perform optimality test. If get stop if not continue iteration until you get the optimal solution
  • 45. Example:1, step one is already finished. Max Z = 3x1+4x2, Subject to: x1 + x2 ≤ 450, 2x1 +x2 ≤ 600, Where x1, x2 ≥ 0.  Convert in standard form by introducing slack variables Max Z = 3x1+4x2 +0S1 +0S2 Subject to: x1 + x2 + S1+ 0S2 =450, 2x1 + x2 +0S1 +S2= 600, Where x1, x2, S1,S2 ≥ 0 Tabulate both the body matrix and identity matrix
  • 46. Cj 3 4 0 0 Body matrix Identity matrix CBv BV x1 x2 S1 S2 bi 0 S1 1 (1) 1 0 450==450/1=450 0 S2 2 1 0 1 600==600/1=600 Zj=∑Cbviaij 0 0 0 0 Zj-Cj -3 -4 0 0 Pivot column High negative value from Zj-Cj row Pivot row Lower replacement ratio = bi/p.element Pivot element The intersection point of pivot row and column X2 is entering variable while S1 is leaving variable
  • 47.  Use elementary row operations to calculate new values of next table. New 1st row of next table = each numbers in old pivot row/ pivot element New 1 st row of next table= 1, (1), 1, 0, 450 1 = 1, 1, 1, 0, 450 New row remaining S2 = each numbers in old row- (coefficient of pivot column )* (each numbers in New 1 st row) . 2, 1, 0, 1, 600 -- (1)* (1, 1, 1, 0, 450 ) ___________________________ New row of S2= 1, 0, -1, 1, 150 Then tabulate the next iteration table by using the above information and check the optimality by calculating Zj and Zj- Cj
  • 48. Cj 3 4 0 0 Body matrix Identity matrix CBv BV x1 x2 S1 S2 bi 4 X2 1 1 1 0 450 0 S2 1 0 -1 1 150 Zj=∑Cbviaij 4 4 4 0 1800 Zj-Cj 1 0 4 0 Values in the Zj-Cj row are positive and zero so, the given solution is optimal. Hence the optimal solution is x1=0, x2= 450, Zmax=1800.
  • 49. Example 2: Maximize Z = 3X1+ 5X2 Subject to X1  4 2 X2  12 3X1 +2X2  18 X1 , X2  0  Standard form Maximize Z = 3X1+ 5X2 +0S1+ 0 S2 +0 S3 Subject to X1 + S1+ 0 S2 + 0 S3 = 4 2 X2 + 0S1 + S2 + 0 S3 = 12 3X1 +2X2 +0S1+ 0 S2 + S3 = 18 X1 , X2, S1, S2, S3  0  Tabulate both the body matrix and identity matrix
  • 50. Cj 3 5 0 0 0 CBv BV x1 x2 S1 S2 S3 bi 0 S1 1 0 1 0 0 4== --- 0 S2 0 (2) 0 1 0 12== 12/2=6 0 S3 3 2 0 0 1 18== 18/2=9 Zj=∑Cbviaij 0 0 0 0 0 Zj-Cj -3 -5 0 0 0 Pivot column High negative value from Zj-Cj row Pivot row Lower replacement ratio = bi/p.element Pivot element The intersection point of pivot row and column X2 is entering variable while S2 is leaving variable
  • 51.  Use elementary row operations to calculate new values of next table. New 1st row of next table for entering variable = each numbers in old pivot row/ pivot element 0, (2), 0, 1, 0, 12 = [0, 1, 0, ½, 0, 6] 2 New row remaining S2 = each numbers in old row- (coefficient of pivot column )* (each numbers in New 1 st row) . For S1 1 0 1 0 0 4 - 0 (0 1 0 1/2 0 6) [ 1 0 1 0 0 4] For S3 3 2 0 0 1 18 - 2 (0 1 0 1/2 0 6) [ 3 0 0 -1 1 6]
  • 52. Cj 3 5 0 0 0 CBv BV x1 x2 S1 S2 S3 bi 0 S1 1 0 1 0 0 4== 4/1=4 5 X2 0 1 0 1/2 0 6== ---- 0 S3 (3) 0 0 -1 1 6== 6/3= 2 Zj=∑Cbviaij 0 5 0 5/2 0 Zj-Cj -3 0 0 5/2 0 Pivot column High negative value from Zj-Cj row Pivot row Lower replacement ratio = bi/p.element Pivot element The intersection point of pivot row and column X1 is entering variable while S3 is leaving variable
  • 53.  Use elementary row operations to calculate new values of next table. New 1st row of next table for entering variable = each numbers in old pivot row/ pivot element (3) , 0 , 0 , -1 , 1 , 6 = [1, 0, 0, -1/3, 1/3, 2] 3 New row remaining S2 = each numbers in old row- (coefficient of pivot column )* (each numbers in New 1st row) . For S1. 1, 0, 1, 0 , 0 , 4 - ( 1) [1, 0, 0, -1/3, 1/3, 2] [0, 0, 1, 1/3, -1/3, 2] For X2 0, 1, 0, ½, 0, 6 - (0) [1, 0, 0, -1/3, 1/3, 2] [ 0, 1, 0, ½, 0, 6]
  • 54. Cj 3 5 0 0 0 CBv BV x1 x2 S1 S2 S3 bi 0 S1 0 0 1 1/3 -1/3 2 5 X2 0 1 0 1/2 0 6 3 X1 1 0 0 -1/3 1/3 2 Zj=∑Cbviaij 3 5 0 3/2 1 36 Zj-Cj 0 0 0 3/2 1 This solution is optimal; since there is no negative solution in the last row: basic variables are X1 = 2, X2 = 6 and S1 = 2; the non-basic variables are S2 = S3 = 0 max Z = 36
  • 55. Artificial Variables Technique  There are many linear programming problems where slack variables cannot provide a solution in case of maximization.  In these problems at least one of the constraints is of (≥) or (=) type. In such cases we introduce another type of variables called artificial variables.  Artificial variables are fictitious and have no any physical or economic meaning. They assume the role of slack variables in the first iteration, only to be replaced at a later iteration. Are merely a device to get the starting basic feasible solution and then the usual simplex procedure will be adopted until the optimal solution is obtained. are expressed by capital letter “A” and used for “≥” type of inequalities and “=” equations. Artificial variables enter in to the objective function with “M” coefficient i.e., it inter in to the objective function with –ve value (-M) for maximization and +ve value (+M) for minimization, where M >0. M denotes some huge positive number (very huge penalty), for that
  • 56. Steps of the big M-method algorithm Step 1: Express the LP problem in the standard form by introducing slack variables. These variables are added to the L.H S of the constraints of (≤) and subtracted from the constraints of (≥) type. Step 2: Add non-negative artificial variable (A) corresponding to constraints having “≥” and “=” equations. Step 3: determine the basic and non-basic variables Step 4: Solve the modified LPP by the simplex method.
  • 57. While making iterations, using the simplex method, one of the following three cases may arise:  If no artificial variable remains in the basis and the optimality condition is satisfied, then the solution is an optimal feasible solution. If at least one artificial variable appears in the basis at zero level and optimality condition is satisfied, then the solution is optimal feasible solution. But it is a degenerate solution.The constraints are consistent though redundancy may exist in them.
  • 58. Redundancy means that the problem has more than the required number of constraints. If at least one artificial variable appears in the basis at a non-zero level (with +ve value in b-column) and the optimality condition is satisfied, then the original problem has no feasible solution. Therefore, the original problem doesn’t have feasible solution because it contains artificial variable (a very large penalty M).
  • 59. NB: 1. Slack variables are added to the constraints of (≤) type and subtracted from the constraints of (≥) type. 2. Artificial variables are added to the constraints of (≥) and (=) type. Equality constraints require neither slack nor surplus variables. 3.Variables, other than the artificial variables, once driven out in iteration, may re-inter in a subsequent iteration. Example : Max Z = 3x1- x2 Subject to: 2x1 + x2 ≤ 2, x1 + 3x2 ≥3, x2 ≤ 4, x1, x2 ≥ 0. Step 1: Set up the problem in standard form Max Z = 3x1- x2 +0s1+0s2+0s3-MA1, Subject to: 2x1 + x2 + s1 = 2, BV= s1, A1, s3 x1 + 3x2 - s2 +A1=3, x2 + s3 = 4, x1, x2, s1, s2, s3,A1≥ 0.
  • 60.
  • 61. Therefore, optimal solution is given by: X1=3/5, x2=4/5, Zmax=1
  • 62. Special Cases in the Simplex Method Application Tie Breaking in Simplex Method While operating the simplex iteration, tie may occur and we may face indifference in choosing the entry or the leaving variable.When tie may occur, the following are important to do: 1.Tie in the choice of entering variables: the non- basic variable that enters the basis is the one that gives the largest per unit improvement in the objective function. Variable having maximum –ve value in a maximization problem and the maximum +ve value in the minimization problem in Zj- Cj row is the entering variable.
  • 63.  A tie in the entering variable exists when more than one variable has same largest (or smallest) value. To break the tie any one of them is selected arbitrarily as the entering variable. 2. Tie in the choice of leaving variables: This is the case when the ratio is the same. This tie can be resolved by choosing one of the variables arbitrarily. No leaving basic variable (unbounded objective function) This is the case when all elements of the pivot column are –ve or zero that no variable qualifies to be a leaving basic variable. In this case no finite solution can be determined.
  • 64. 3. Multiple optimal solutions This is the case when the LPP have more than one optimal solution. In the simplex table if the Zj- Cj value is zero for a non-basic variable, it indicates that the existence of more than one optimal solution. 4. Infeasible solution If all the constraints are not satisfied simultaneously, the model has no feasible solution. In the case of big M method if at least one of the artificial variables has positive value and the solution is optimal, then this is the indication of no feasible solution.
  • 65. 2. Minimization LPP Similarity of maximization and minimization LPP Maximization LPP Minimization LPP It has an objective function. has also an objective function. It has structural constraints. has also structural constraints. Linear relationship between variables and constraints Also Linear relationship between variables and constraints It has non-negativity constraint. This too has non-negativity constraints. The coefficients of variables may be positive or negative or zero. The coefficient of variables may be positive, Negative or zero. For selecting out going variable (key row) lowest replacement ratio is selected. For selecting out going variable (key row) lowest replacement ratio is selected.
  • 66. Difference b/n maximization and minimization LPP Maximization LPP Minimization LPP The objective function is of maximization type. The objective function is of minimization type. The inequalities are of ≤ type. Use at most . The inequalities are of ≥ type. Use at least. To convert inequalities into equations, slack variables are added. To convert inequalities into equations, surplus Variables are subtracted and artificial surplus variables are added with big M coefficients. While selecting, incoming variable, lowest element in the net evaluation row is selected (highest number with negative sign). While selecting incoming variable, highest positive Opportunity cost is selected from net evaluation Row. When the element of net When the elements of net
  • 67. The other alternative method of solving minimization problem is by converting it to maximization. i.e., Min Z=Max (-Z). Example Min Z = 12x1+20x2 Subject to: 6x1 + 8x2 ≥100, 7x1 + 12x2 ≥120, x1, x2 ≥ 0. Standard form: Min Z = 12x1+20x2 +0s1+0s2+MA1+MA2 Subject to: 6x1 + 8x2 -s1+A1=100, 7x1 + 12x2 –s2+A2=120, x1, x2, s1, s2,A1,A2 ≥ 0.
  • 68.
  • 69. Since all values in Zj- Cj row are zeros and negative ,so that we get optimal solution X1=15, X2=5/4 and min Z=205
  • 70. Example 2. Minimize Z=25x1 +30x2 Subject to: 20x1+15x2 > 100 2x1+ 3x2 > 15 x1, x2 > 0 Standardize the problem Minimize Z=25x1 +30x2 +0s1+0s2 +MA1+MA2 Subject to: 20x1+15x2- s1+A1 = 100 2x1+ 3x2 –s2+A2 = 15 x1, x2 , s1, s2 ,A1 ,A2 > 0
  • 71. Cj 25 30 0 0 M M Cbv Bv X1 X2 S1 S2 A1 A2 bi Ratio M A1 20 15 -1 0 1 0 100 5 M A2 2 3 0 -1 0 1 15 7.5 Zj 22M 18M -M -M M M Zj-Cj 22M-25 18M-30 -M -M M M Once an artificial variable has left the basis, it has served its purpose and can therefore be removed from the simplex tableau.An artificial variable is never considered for re-entry into the basis. Cj 25 30 0 0 M Cbv Bv X1 X2 S1 S2 A2 bi Ratio 25 X1 1 3/4 -1/20 0 0 5 20/3 M A2 0 3/2 1/10 -1 1 5 10/3 Zj 25 75/4+3/2M 5/4+1/10M -M M Zj-Cj 0 -45/4+3/2M 5/4+1/10 M -M M
  • 72. Cj 25 30 0 0 Cbv Bv X1 X2 S1 S2 bi 25 X1 1 0 -1/10 1/2 5/2 30 X2 0 1 1/15 -2/3 10/3 Zj 25 30 -1/2 -15/2 162.5 Zj-Cj 0 0 -1/2 -15/2 Since all values in Zj- Cj row are zeros and negative ,so that we get optimal solution X1= 5/2 X2= 10/3 and min Z= 162.5