Chapter Two Linear Programming
Chapter Two Linear Programming
Linear Programming
Chapter Two
Linear Programming
• Example:
• MaxZ=20X1+30X2
• St:
• 2X1+X2< 40
• 4X1+X2< 60
• X1 > 30
• X1, X2 > 0
• Solution:
contd……
B. Simplex Method
• Steps in Simplex Method
• Step 1 Formulate LPP Model
• Step 2 Standardize the problem
• i.e Convert constraint inequality into equality form by introducing a
variable called Slack variable.
• Slack Variables:
• 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.
• A slake variable emerges when the LPP is a maximization problem.
• 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.
• Let that s1, s2, and s3 are unused labor, machine and marketing hrs
respectively.
example
Contd…
• Reading Assignment
Chapter Three : Transportation problem
• Transportation problem deals with the distribution of goods from
several points of supplies (sources) to a number of points of
demands (destinations).
• Consider a corporation engaged in the manufacture of products.
Most of such big corporations are of “multiple-product” and
“multi-unit” organizations having production units situated at
different places.
• Items are produced for sales. Sales take place at different
markets which are, again located at different places.
• It is not feasible to co-locate production and market. Markets
are located away from the manufacturing places. Hence products
are sent to factory warehouses set up near market outlets.
• Cost of product consists of production cost and distribution cost.
contd
• Example
• Suppose that a firm has three factories
/sources of supply/ & four warehouses
• /point of demand/.
• The firm's production capacity at the three
factories, the demand for the four distribution
centers located at various regions & the cost
of shipping each unit from the factories to the
warehouses through each route is given as
follows:
Contd soln
ontd
Methods of feasible solution
• A. NORTH- WEST CORNER METHOD (NWCM)
• This method does not take into account the cost of transportation on
any route of transportation.
• The NWCM gets its name because the starting point for the allocation
process is the Upper Left-hand (Northwest) corner of the
transportation table.
• Therefore, allocate to the Northwest corner as many units as
possible.
• Northwest corner rule
• The following set of principles guides the allocation:
•
• 1. Begin with the upper left hand cell (Left, upper most in the table), &
allocate as many units as possible to that cell. This will be the smaller
amount of either the row supply or the column demand. Adjust the
row & column quantities to reflect the allocation.
contd
• Subtract from the row supply & from the column demand
the amount allocated
• 3. If the column demand is now zero, move to the cell
next to the right, if the row supply is zero, move down to
the cell in the next row.
• If both are zero, move first to the next cell on the right
then down one cell.
• 4. Once a cell is identified as per step (3), it becomes a
northwest cell. Allocate to it an amount as per step (1)
• 5. Repeat, the above steps (1) - (4) until all the remaining
supply and demand is gone.
•
•
example
solution
contd
exercise
cont
• Note:
• 1. Total Supply= Total demand ===> Balanced TP
• 2. Total Supply ≠ total demand ===> Unbalanced TP
• 3. Convert the unbalanced TP into a balanced TP by using
dummy destination/dummy source.
• * If total Supply > Total demand, then create a fictitious
or artificial destination called dummy destination
• i.e: total Supply > Total demand===> Add dummy column
• * Excess demand (Supply < demand)
• - Add a dummy source
• - Add a dummy row
Develop initial feasible soln
B. THE LEAST- COST METHOD (LCM) or
(LARGEST- PROFIT) METHOD
•
• VAM is preferred to the other two methods described above. In this
method each allocation is made on the basis of the opportunity (or
penalty or extra) cost that would have incurred if allocation in
certain cells with minimum unit transportation cost were missed.
• In this method allocation are made so that the penalty cost is
minimized.
• The advantage of this method is that it gives an initial solution
which is nearer to an optimal solution or is the optimal solution
itself.
• VAM determines the penalty for not using the minimum cost
routes, where the objective is to avoid large penalties so that the
penalty from not using the routes is minimized.
Steps in VAM method
• 1. Calculate penalties for each row (column) by taking the smallest &
the next smallest unit transportation cost in the same row (column)
• This difference indicates the penalty or extra cost which has to be paid
if one fails to allocate to the cell with the minimum unit transportation
cost
• 2. Select the row or column with the largest penalty & allocate as
much unit as possible in the cell having the least cost in the selected
row or column satisfying the conditions.
• If there is a tie in the values of penalties, then it can be broken by
selecting the cell where maximum allocation can be made.
• 3. Adjust the supply & demand & cross out the satisfied row or column
• If a row or column is satisfied simultaneously, only one of them is
crossed out & the remaining row (column) is assigned a zero supply
(demand) .Any row or column with zero supply or demand should not
be used in computing future penalties.
contd
Evaluating a Solution for Optimality
• Step 1: Locate the smallest cost element in each row of the cost table.
Now subtract this smallest from each element in that row.
• Step 2: Consider each column and locate the smallest element in it.
Subtract the smallest value from every other entry in the column.
• Step 3: Draw the minimum number of horizontal and vertical lines
required to cover the entire ‘zero’ elements. If the number of lines drawn
is equal to n (the number of rows/columns) the solution is optimal
• Step 4: Select the smallest uncovered cost element. Subtract this element
from all uncovered elements including itself and add this element to each
value located at the intersection of any lines.
• Step 5: Repeat steps 3 and 4 until an optimal solution is obtained.
• Step 6: Given the optimal solution, make the job assignments as indicated
by the ‘zero’ elements.
Example
contd
Determine the Minimum Number of Lines Needed to Cover
the Zeros
Further
FurtherRevision
Revisionofofthe
theCost
CostTable
Table
Optimal Assignments
Example 2
• A production supervisor is considering how he should assign the
four jobs that are performed, to four of the workers working
under him. He want to assign the jobs to the workers such that
the aggregate time to perform the job in the least. Based on the
previous experience, he has the information on the time taken by
the four workers in performing these jobs, as given in below
The final assignments is 1-B, 2-D, 3-C,
Special Situations