Friday, June 3, 2011

Logic of how the simplex method works


(The following article does not explain the procedure of simplex, but only explains the logic of how the simplex method works for those who are already familiar with the procedure.)


Dantzig’s Simplex algorithm (or simplex method) is a popular algorithm for linear programming.

We are all familiar with solving a linear programming problem (LPP) with the help of a graph. The number of variables in the equation determines the number of dimensions in the graph. So if the equation has two variables (x,y) we plot a two dimensional graph with x & y axis.

But what if the problem has 3 or more variables? We cannot draw a 3 or 4 dimensional graph to solve it. (the 4th dimension is in fact beyond our imagination). This is where the Simplex algorithm comes into the picture.

The simplex method is an algebraic procedure. However, its underlying concepts are geometric. The logic behind the simplex method is same as the logic with which we work out graphical solution for the LPP. In fact it eliminates some of the steps in the graphical method so that we reach at the optimum solution faster.

In order to understand the logic of the simplex method, we need to be thorough with the logic of the graphical method. 

Illustration:

LPP Ltd produces two products X and Y.
·                     Material Constraint – Each unit of X consumes 3 kgs of raw material and each unit of Y consumes 2 kgs of material. Material availability is limited to 18 kgs.
·                     Sales constraint – Maximum number units of X that can be sold is 4 and Maximum number units of Y that can be sold is 6.
·                     Profit – Each unit of X gives a profit of 3 Rs and each unit of Y gives a profit of 5 Rs.
Find out how many units of X & Y should be produced in order to maximize profits.

Solution:
Let ‘x’ & ‘y’ be the number of units of X & Y produced. The LPP would be as follows:
Maximize – Z = 3x + 5y (Profit)
Subject to:
·      3x + 2y ≤ 18 (Material constraint)
·      x ≤ 4 (Sales constraint)
·      y ≤ 6 (Sales constraint)



In the above graph, the shaded region is the feasible region. This means that every point in this shaded region satisfies all the given constraints. So we have an infinite number of possible solutions. However all cannot be optimum solutions. The optimum solution has to be one of the corner points of the feasible region.

Consider the point (1,0) in the graph. It falls within the feasible region. This means if we were to produce 1 unit of X and 0 unit of Y, it would satisfy all the constraints. But when we are not producing any units of Y (i.e. keeping y=0) we can produce up to 4 units of X. Obviously producing 4 units will get more profit than producing 1 unit. So the corner-point D(4,0) will obviously be a better option than any other point on the line ED. So D is a better option than any other point on the line OD.
Similarly if we consider the point (0,3), we can conclude that it is better to produce 6 units of Y than just 3. So the point (0,3) can never be the optimum solution. Neither can any other point on the line AO. So no point other than the Feasible Corner-Point (FCP) can ever be the optimum solution. It always has to be one of the FCPs.

Now that all the other infinite possibilities are ruled out, we are just left with 5 points. When we solve it graphically, we find the value for Z (objective function) for each of these 5 points and find out which gives the highest value. This is easy only when the number of corner points is small. In simplex method, we reach the optimum solution without having to value each and every corner-point.

Simplex Method (Graphical interpretation)
In simplex method we start off with an initial solution. This initial solution has to be one of the feasible corner points. In a maximization problem, with all constraints ‘≤’ form, we know that the origin will be an FCP. That’s the reason we always start with ‘x=0’ & ‘y=0’ while solving Simplex. We can also start with (4,3) if we want to, but to know that (4,3) is an FCP we might have to draw a graph, which will be nothing but a waste of time.

So we always start with the origin 0. Now we examine whether it’s better to move up along the Y axis or move left along the X axis. For this we check the rate of increase in the profit (objective function) for a unit increase in X & Y. Increasing X by one unit gives me a profit of only 3 Rs, but increasing Y can give me 5Rs. So it’s obviously better to increase Y.

Now that I have chosen to increase Y, the next question is – How much can I increase Y? I can increase Y only to the extent of 6 units. Because if I increase to more than that, I would be going out of the feasible region.

So I stop at the point A (0,6). Now again I look on both the sides of point A (i.e. each point has two adjacent points. In case of A it is O & B). Is it better to go towards O or towards B? We just came from O. So we just need to examine whether moving towards B (increasing the value of x) increases our profit or not. It does. So we take the route and stop at B. Again we examine the adjacent points. Now we will find that if we move towards C, our profits will reduce. So we stop there. And B would be the optimum solution., as moving towards either side will only decrease our profits.

So basically we always start off with the origin, examine the adjacent points as to moving along which line increases the objective function at a higher rate and move along that line till we reach an FCP. Once we reach there, we repeat the same process of examining the adjacent points, and move along that line which gives higher benefit. This process continues until we reach a point where moving further along any of the lines will reduce the objective function and this point will essentially be the optimum solution.






How to interpret the matrix:
In the following illustration, a detailed explanation of the different terms in the simplex table, their meaning and what they represent is given. How we move along from one point to another (as explained in the previous paragraph) to reach the optimum solution will be explained clearly.

Illustration:
D company produces two products X and Y. The requirements and constrains with regard to its production is given below.
Product X
Product Y
Material – 8 units
Labour – 6 hrs
Machine hours - 4
Contribution - 14
Material – 4 units
Labour – 8 hrs
Machine hours - 6
Contribution - 16
During the forthcoming accounting period the availability of labour hrs will be restricted to 2880 hrs. Material availability is limited to 3440 units. The machine has the capacity to run for  2760 hrs. The marketing manager expects the maximum sales potential for X is 420 units with respect to Product Y there is no sales Limitations.
Formulate an LPP and find the optimum number of units to be produced.


Solution:
The LPP is as follows:

Maximize C = 14x+16y subject to
8x + 4y ≤ 3440  ( Material constraint)
6x + 8y ≤ 2880  ( Labour constraint)
4x + 6y ≤ 2760 ( Machine hour constraint)
x ≤ 420 (Sales constraint)

When we convert these into equalities the equations become:
8x + 4y + S1 = 3440 
6x + 8y + S2 = 2880 
4x + 6y + S3 = 2760
x + S4 = 420


Slack variables:
S1, S2, S3 and S4 are called slack variables. Slack variables represent the unused amount of resources. Here S1 represents unused amount of raw-materials, S2 - unused labour hours, S3 – unused machine hours and S4 represents unutilized sales potential.

Suppose we consider a situation when we are producing only 1 unit of x & y each, we would be consuming 12 (i.e. 8+4) units of material. So, out of the 3440 units of material available, after the consumption of 12 units 3428 units will remain unutilized. This is the material slack. This can be found out by substituting x=1 & y=1 in the material constraint equation and solving for S1.
Material constraint - 8x + 4y + S1 = 3440
 = 8(1) + 4(1) + S1 = 3440 (substituting x=1, y=1)
 = 12 + S1 = 3440
 = S1 = 3428
 S1 is material slack, so it gives the unutilized amount of material for the given situation (1,1). Similarly substituting the values for a given situation in the other equations will tell us how much of those resources remain unutilized.

Contents of the table:
Cj:
The first row is the Cj row. It tells us how much profit we can get by increasing the value of the variables by 1 unit. [Refer Table 1].We have 14 written on top of x. This means 1unit of X will fetch us 14 Rs profit. Similarly, 1unit of Y will fetch us 16 Rs profit. However the slack variables can never fetch any profit, hence their values are 0 each.

Iteration Table 1:
Each table explains the situation under a given circumstance. As already explained, we always start with the origin in the simplex procedure. So the first table examines the situation at the origin (i.e. x=0 & y =0). In other words it examines the situation when we are not producing anything.
(In the second column, we can find only the values S1, S2, S3 and S4. X & Y are missing. This means that x & y are zero.



Iteration Table 1:
  

Solution:
The values in the ‘Solution’ column (3440, 2880 …) are the values of the variables in the second column (S1, S2, S3 and S4). So we have to read the table as S1=3440, S2 = 2880, etc. This is nothing but the slack when we are producing nothing. (Remember the given situation for the first table is (0,0). (If we are not producing anything, the entire 3440 units of materials remain unutilized. That’s why S1= 3440)

Columns x, y, S1, S2, S3 and S4:
The values under these columns tell us the impact of the respective variables on the values in the solution column (keeping other variables constant). In other words it tells how many units of each of the resources will be consumed by each of the products.
Under Column x – Row S1­, we have the number 8. This means – if we increase the value of x by 1, the value of S1 will come down by 8. (Each unit of X consumes 8 units of raw materials. So if we produce one unit of X, our material slack reduces by 8).
In the same row under Column y, we have the number 4. This means each unit of y will decrease the value of S1 by 4.
Similarly, Column y – Row S3 says 6. This means each unit of y will reduce the value of S3 (machine hours slack) by 6 units from the current value of 2760.
Column S3 – Row S4 says 0. This is because S3 does not have any impact on the value of S4.

(In the first table we are assuming x & y as zero. Hence we need to see only the columns under x & y. The remaining columns will be zeros and ones. So we can ignore them.)

Column CB
It indicates how much profit each variable in the second column earns. S1, S2, S3 and S4 do not fetch any profit. Hence they are all zeros.

Row Zj:
This indicates how much profit is lost if we increase the values of x, y, S1, S2, S3 and S4. As of now we do not lose any profit with the increase of these variables. Hence they are all zeros.

Row Cj- Zj:
This gives the effective increase in profits when we increase the values of the variables by 1.
Cj tells us how much additional profit we can get. Zj tell us how much we lose. So Cj – Zj gives the net increase/decrease.

Each unit of x gives 14 profit (Cj ) and what we lose is 0(Zj). Therefore the net effect is an increase in the profit by 14. But if we produce y we can get an additional profit of 16. So obviously we would choose to produce Y instead of X.

(Graphically this can be interpreted as – we choose to move along the Y axis instead of the X axis, as the rate of change is higher while moving towards A)

This is the reason why we choose the highest positive value among the Cj- Zj values and mark them.

Ratio:
Now that we choose to produce Y, the question is - how many units of y can we produce?
Each of the constraints is a limiting factor that restricts the production of the units. So we check, with the remaining units of each of the resources, how many units of y we can produce. We have 3440 units of materials. Each unit of y takes 4 units. So we can produce 3440/4=860units.
Labour – we have 2880 hrs left. Each unit of y takes 8. So we can produce 2880/8=360units.

So we divide the solution column (which tells how much units are left) with the y column (which tells how many units are consumed) to know the ratio (i.e. how many units can be produced).

The material constraint allows us to produce 860units. But the labour constraints restricts us to just 360units. So the defining constraint would be the one with the lowest ratio. That is the reason why we choose the minimum positive ratio.

The sales constraint does not restrict the production of Y. Hence the ratio is ∞. So ratio indicates the maximum units that can be produced keeping in mind the particular constraint. The least ratio indicates the maximum qty that can be produced.

(Graphical interpretation – the ratio indicates the maximum distance we can go along the chosen line yet stay within the feasible region. It indicates that we cannot go beyond the point A)

For all further calculations, the labour constraint is what matters the most, as it has been completely used up. The other resources however are still available in plenty. Hence we circle that row and take that as the point of reference for the next table.

Iteration Table 2:
Now we have decided to produce 360units of Y. The second table examines the situation when x=0 & y=360. Since all available units of labour is used up, the labour slack (S2) is zero. So in this table, in the second column, Y replaces S2.

Iteration Table 2:



Solution:
When 360 units of Y are produced, it consumes 360*4=1440 units of material. So out of 3440 only 2000 (i.e. 3440-1440) will be left. So the material slack for the given situation is 2000. Hence the table reads S1 = 2000. Similarly S3=600 & S4=420.

Columns x, y, S1, S2, S3 and S4:
The intersection in the first table is at 8. We divide the whole row by 8 and this forms the second row in the second table. This row is called the main row.

If we have to increase the value of any other variable, say you want to produce some units of x, you can do it only if you forego the production of some units of Y. And how many units of Y need to be foregone depends on the units of labour consumed by X & Y, as labour is completely exhausted.
1 unit of X requires 6 units of labour. One units of Y requires 8 units. So X consumes 3/4th the labour that Y consumes. So, to produce 1units of X we need to forego the production of 3/4th unit of Y. We can say that 1 unit of X is equivalent of  ¾ unit of Y. This is what is given in the main row.
The main row gives the equivalent value of all other variables in terms of 1 unit of Y. 

Main row: If we increase the value of X by 1, Y will come down by ¾. If we increase the value of S2 by 1, the value of Y will come down by 1/8.

Row S1: If we increase the value of X by 1, S1 will come down by 5#. If we increase the value of S2 by 1, the value of S1 will go up by 1/2##. (Positive values indicate consumption/decrease in value. Negative values indicate increase in value)
Note:
# - To produce one unit of X, we will have to forego the production of 3/4th unit of Y. When we forego this, we will get back 3 units (3/4th of 4) of material. But to produce one unit of x we consume 8 units. Thus the net effect is an additional consumption of 8-3=5 units in the materials.
##Similarly if we were to increase the value of S2 by 1, we need to decrease Y by 1/8th. When we do this we get 4*1/8=1/2 units of material back. But increasing S2 does not consume any material. So the net effect is an increase in the materials by ½ units which is indicated by -1/2 in the table.

Row S3: The values in the row S3 are the net effect on the solution values, after considering the decreasing in the value of Y, which is now required to increase any other variable.

Column CB
It indicates how much profit each variable in the second column earns. S1, S3 and S4 do not fetch any profit. Hence they are all zeros. But Y fetches a profit of Rs. 16.

 Row Zj:
This indicates how much profit is lost if we increase the values of x, y, S1, S2, S3 and S4.
If we increase X, we will be foregoing 3/4th unit of Y. Along with this we will also be foregoing the profit from 3/4th unit of Y. That is ¾*16=12. So 12 is the opportunity cost of producing one unit of X. (Opportunity cost - The profit/opportunity foregone while making another choice)
Increasing one unit of Y is possible only if we decrease another unit of Y. So we will lose 16. (Column X & S2 only needs to be considered. Others can be ignored). Increasing one unit of S2 will lead to loss of profit to the extent of 1/8*16=2.

Row Cj- Zj:
Each unit of x gives 14 profit (Cj ) and what we lose(opportunity cost) is 12(Zj). Therefore the net effect is an increase in the profit by 2. Each unit of S2 gives 0profit (Cj ) and what we lose is 2(Zj). Therefore the net effect is a decrease in the profit by 2. So we choose the value with the highest positive integer - X.
(On producing Y you get 16, at the same time on foregoing you lose 16. So the net effect is 0.)


Ratio:
Now again the question is - how many units of  X can we produce?
We check how many units of  X we can produce before one of the resources run out. We have 2000 units of materials. Each unit of X will consume an additional 5 units. So we can produce 2000/5=400units.

The sales constraint allows us to produce 420 units. But the labour material constraint restricts us to just 400 units. So now the defining constraint would be the material constraint (negative values to be ignore)

(Graphical interpretation – the ratio indicates that we wil have to stop at the point B)

For the next table the material constraint is what matters, as it will be completely used up. The other resources, (excluding labour) are now available. Hence we circle that row and take that as the point of reference.

Final Matrix (Table 3):
Now we are producing 400 units of X and 60 units of Y (to produce X we had to decrease the production of Y). This table examines the situation when x=400 & y=60. Since all available units of material are used up, the material slack (S1) is zero. So, in this table in the first column, X replaces S1. We do not find S1 & S2 in the second row, indicating that they have been completely utilized.
In every table two variables will take be assigned zero as the value. These are called non-basic variables as they do not appear in the basic solution. So the variables that appear in the basic solution (second column) are the ones that are not completely utilized.

Iteration Table 3:
  

Solution:
When 400 units of X and 60units of Y are produced 800 units of machine hours and 20 units of sales potential still remains unutilized. 6560 is the profit that can be made in the current decision.

Columns x, y, S1, S2, S3 and S4:
The interpretation is the same as the other table. Here we need to consider only S1 and S2, the rest will be just zeros and ones. Column S1 indicates, to increase the value of S1 by 1 unit (i.e. release 1 unit form production), we will have to forego the production of  X by 1/5 unit. And this will result in increase the production of Y by 1/7th unit and also S4 to increase by 1/5th unit.
Similarly we can infer that we were to release one unit of labour (yet keep the materials at zero), we wil have to decrease the production of Y by 1/5th unit and increase the production of X by 1/10th unit. This will result in the increase of S4 by 4/5th unit.

 Row Zj:
If we increase S1 or S2 we will lose profits. It is anyway quite obvious that we will lose profits if we try to increase slack.

Row Cj- Zj:
This row has only negative values and zeros. The negative values indicate that increasing those variables will decrease the profit. Nothing can be done to increase profits further, thus indicating that we have reached the optimum solution.

(Moving to either point A or C from the current point B will only decrease the value of Z. so we decide to stay there)

So the optimum solution is to produce 400 units of x and 60 units of Y.



105 comments:

  1. This is awesome ! it takes a genius to explain a complex topic so it seems so elementary !!

    hats off Sir, you are a genius ! :)

    ReplyDelete
    Replies
    1. Its surprising that someone took time to read this!!! :)

      Thanks for the comment mate.. :)

      (Just so that you know, i am just a final-year commerce grad, so no need to address me as 'SIR')

      Delete
  2. mindblowing analysis dude

    ReplyDelete
  3. Hi dude.,first of all thank you for the post.it is just more than wonderfull..! I am a ca final student and was trying to understand the logic behind the simplex algorithm.i have not come across such a great analysis and explanation on the subject.expecting good posts from you.wish u a great future....ABHISHEK

    ReplyDelete
    Replies
    1. Thanks a lot man... :) You have inspired me to come up with more posts...

      Delete
    2. Ah! Finally, got the logic behind this !! Ditto, I am a CA final student too, nd was totally lost, didnt wanna do it just using the steps and formulae, so this article was just the thing i needed.... the example reeeeaalyyyy helped!! Thankyou soooo much! You have my gratitude!!! :)

      Delete
  4. Mathnik, yes indeed you should write more. This is a great article and I have shared the link with so many of my friends who are in MBA or preparing for CA Final. Good work :)

    ReplyDelete
  5. Hats off to u...what seemed to me mathematical jugglery a day before, now makes complete sense...I'll always be grateful to u for this amazing piece of work..great going..!!

    ReplyDelete
  6. excellent man... sounds like you have given a clear and straight-forward thought to this particular topic. Let me admit that till now i had been just mechanically following the steps taught to me and used to arrive at optimum solution, but it is after reading your article, i clearly understood logic of those steps... Let me tell you frankly that i hardly found any article on the net that explained the funda. Almost every other article had a hell lot of statistical jargons and algebric formulae that were totally greek to me. I had even referred the study material issued to me by institute, but it was nothing better (I am pursuing career of Chartered Accountant and i am currently at final stage of the course). So.... that's it!! You have done a wonderful job... bravo!!!!!!

    ReplyDelete
  7. Thanx a lot dude...excellent job..really u made this topic easy..expecting more frm u.. keep it up

    ReplyDelete
  8. how would i reference this?

    ReplyDelete
    Replies
    1. This is not a research article. You i guess you cannot officially reference it.

      If its just for some class assignments, you could just paste the link.

      Delete
    2. This is amazing! I was looking for a graphical explanation of simplex method . Thank you so much!!

      Delete
  9. Awesome!!!!

    you made it sooo clear..!

    Thanks so lott

    ReplyDelete
  10. really it is very helpful to me for understanding this logic, initially i was knowing the procedure to solve the simplex method but because of not knowing the logic behind it i was bewildered, thanks to u it is really awesome.

    ReplyDelete
  11. oooo itz just awesome.thnxxxxxxx a lot..now feelin lyk solvin sums...itz gr8 4 conceptual clarity...was pissed frm bookish step wid out logic..thnx 1s again

    ReplyDelete
  12. it is great!!! I am wondering why there are no other posts.

    ReplyDelete
  13. good man...where u learned this from????

    ReplyDelete
    Replies
    1. I happened to figure it out myself.

      I just couldn't study something which i didn't understand the logic of. It was really irritating and I couldn't move any further. Finally after spending two weeks I came up with this explanation, which seemed to fit in perfectly...

      Delete
    2. u r amazing mannnn!!! i m left speechless!

      Delete
  14. I am currently doing my post graduation and hardly find any time to post anything new.

    Also i dont have any topic which i write on. If there is anything that you have not understood clearly (commerce related topics), i guess you can let me know and i ll try to explain-that.

    ReplyDelete
  15. Thanks a lot man..its just awesome...u made my day..Thank..

    ReplyDelete
  16. HI


    first, thanks for such great explanation... just want to know about 3rd table, how production of y will increase by 1/7...can you please tell me calculation.

    ReplyDelete
    Replies
    1. its i guess -3/20 for s1-y and for s1-s3 its -1/10... but overall answer derived is same cause s1-s3 earns 0 profit

      Delete
  17. really excellent..how can you think through all this mess...really amazing...cant get a better explanation than this

    ReplyDelete
  18. Superbly explained...........nw Simplex became Simple :)

    ReplyDelete
    Replies
    1. plz provide some insights on Big M Method & Two Phase Method



      #Sam#

      Delete
  19. OMG this is amazing!! I refered to many texts, but dude, nothing even closer to this!! Thanks a lot! Thank you :)

    And keep posting :D

    ReplyDelete
  20. This really helped... Thanks alot

    ReplyDelete
  21. Tooo gud..thank u sooo much for the efforts u took to explain

    ReplyDelete
  22. Thank You for dissecting the method so beautifully. Please keep posting...

    ReplyDelete
  23. dude truly great work!!! helped me a lot thanks..

    ReplyDelete
  24. Really Great Work...
    I studied this all from our HOD during my BE.
    now i have joined academic as a profession and finding the interpretation of Simplex exactly as you explained above.
    So, thanks a lot brother....

    ReplyDelete
  25. Awesome explanation buddy..Great work indeed
    What is the case for starting point other than (0,0,0)?

    ReplyDelete
    Replies
    1. Not sure. (dont feel like raking up brains over it now :P) But I guess, if that point is out side the feasible solution, it would increase the number of steps.

      Delete
  26. "decrease the production of Y by 1/5th unit and increase the production of X by 1/10th unit. This will result in the increase of S4 by 4/5th unit."
    should be
    "decrease the production of Y by 1/5th unit and increase the production of X by 1/10th unit. This will result in the increase of S3 by 4/5th unit."

    REALLY AWESOME !
    you nailed it man !

    ReplyDelete
  27. This comment has been removed by the author.

    ReplyDelete
  28. Thanks bro !!! its cool

    ReplyDelete
  29. But if slacks are 0 after iteration table 2 then why to prepare table 3 at all ???

    ReplyDelete
    Replies
    1. Only 2 slacks are zero. The other two are still available. Also, just because we have exhausted two resources,doesn't mean that we are at the optimum solution. We might be able to substitute one product for another and make more profits. Our objective is not to use up resources, but to maximise profit, which can be inferred only from the Cj-Zj row. So it is necessary to prepare the third table.

      Delete
  30. This is so helpful, thanks

    ReplyDelete
  31. So for a minimization problem the slack variables are the surplus amount of resources used?? Can you please interpret for a minimization problem. Thanks

    ReplyDelete
  32. What I have understood so far is, you start from a particular point and move towards the best option available. You repeat the process till you are unable to find a point where you would increase the profit. I would like to ask how can you surely declare that the unexplored points wont be optimal. I mean is it not possible that you start from some other point and end up if some other optimal max.

    In other words how do you avoid local maxima.

    ReplyDelete
  33. Thanks dude. Plz explain when problem is a type of greter than or equal to where we can not insert slack

    ReplyDelete
  34. Thanks dude. Plz explain when problem is a type of greter than or equal to where we can not insert slack

    ReplyDelete
  35. finally i found someone who really understands it !!

    ReplyDelete
  36. Excellent and very detailed explanation! Thanks for taking the time doing this!

    ReplyDelete
  37. Two of the four values of Zj in the third iteration table are incorrect, correct me if i'm wrong here. Otherwise, couldn't get any better than this. Best in the business.

    ReplyDelete
  38. Very cool and amazing. Thank you sir.. I have a question aren't we supposed to solve the problem when the z row has negative values and stop when it is positive ??

    I am confused.. because my teacher said when there are no negative values then in the z row then problem is solved..

    ReplyDelete
  39. Final table Row Cj- Zj should indicate reduce available resources of S1 reduce by one unit profit will be decreased by 2/5, however if we increase it by one unit the total profit will be increased by 2/5 . since this is a shadow price this is like mirror image.

    ReplyDelete
  40. Thank you so much.
    I got into engineering just because I love to understand the logic behind everything.
    You saved a lot of my time and interest.

    ReplyDelete
  41. It is the best what i got from internet. Thanks.

    ReplyDelete
  42. Amazing Sir, thank you so much. I tried to get such an intuition myself earlier, but could mever get ahead the ratio part. YOU ARE AMAZING.

    ReplyDelete
  43. aweeeeesssoooooommmmeeeeeeeeeeeee.....thank you so much!!!
    sir please also explain the interpretations of various outcomes of Cj-Zj...like when solution is degenerate, unbound, etc..

    ReplyDelete
  44. THANK YOU SO MUCH I M REALLY HAPPY AFTER READING THIS

    ReplyDelete
  45. Thank you for this explanation.

    ReplyDelete
  46. I have never come across such an amazing explanation on a rather difficult topic like this one...
    Thank you so much!

    ReplyDelete
  47. Remember the familiar ( c_{j} − z_{j} ) coefficients of the zero-row of the Simplex Tableau. Let k(i) be the function returning the index of the Departing Variable when the Pivot in on the i.th row. Then

    z_{j} = ∑ c_{k(i)} y_{i, j} where the summation is over i=1, ..., m; and y_{i, j}'s are Tableau entries.

    Can anybody prove this? I cannot find a numerical counter-example.

    ReplyDelete
  48. thanks for wonderful explaination.just need to confirm that in final iteration is -3/21 correct. for me it comes -3/20

    ReplyDelete
  49. This comment has been removed by the author.

    ReplyDelete
  50. This is amazing! Thank you for the wonderful explanation. I have this page bookmarked!
    Also, is it possible to get a zero in the "Solution" column? In that case, the ratio would also be zero. So, according to your logic, it would mean that the maximum quantity that can be produced is zero. Where does this lead us? Or, does getting a zero mean that we have made a mistake? It'd be great if you could explain this.

    ReplyDelete
  51. This is a really great explanation!
    Thanks a lot!!

    ReplyDelete
  52. it was much needed explanation..thanks!

    ReplyDelete
  53. Wow, this is such a clear explanation of what is really going on in the simplex algorithm. I'm really thankful to the author for exposing the geometric and physical meaning of each number in the table. I am now able to visualise the numbers in the rows as opportunity costs. I wish professors in Indian universities would explain at such level. It's a shame they just teach us how to do it, never explaining the meaning of it all.

    ReplyDelete
  54. Thanks for taking time to explain this, that was very helpful, i was completely lost, Thank You very much.
    could you please explain the big M method, i know that it requires the same procedures, but what baffles me is why we add the artificial variables, and what do the artificial variables indicate?
    thanks again for that awesome explanation

    ReplyDelete
  55. Very nicely explained.... Need more pages like this one!

    ReplyDelete
  56. Great explanation indeed, keep up the good work!

    ReplyDelete
  57. couldnt get better...perfect
    Great work sir.

    ReplyDelete
  58. Its a great explanation about whole concept of the simplex algorithm..
    Thank you very much

    ReplyDelete
  59. Detailed and intuitive explanation. Well done!

    ReplyDelete
  60. Thanks a lot for this excellent explanation...it was much needed!

    ReplyDelete
  61. very well explained...thank you..

    ReplyDelete
  62. This is probably the best explanation of Simplex LPP available on the web !🙏
    Thanks a lot 🙏🙏

    ReplyDelete
  63. This comment has been removed by the author.

    ReplyDelete
  64. That was some really good explanation.

    ReplyDelete
  65. Thank You very much!!! I've been searching for books to understand this. Amazing explanation thanks again

    ReplyDelete
  66. Excellent....excellent...excellent......
    The simplex algorithm was eating my brains for sometime, but now understood the exact logic behind it......great work....Thank you.....

    ReplyDelete
  67. Thank you a lot, I didn't understand what happened in between algorithms now I do, such an intuitive analysis. Thank you so much!!! Kudos

    ReplyDelete
  68. This is absolutely amazing! Such a great, intuitive explanation of a rather cumbersome process. Thank you so much!

    ReplyDelete
  69. you are simply awesome please also explain transportation algorithm

    ReplyDelete
  70. Thank you for the explanation. But I am unsure as to how z can be considered a loss. And difference between c-z as net loss/profit. They both are in different quantities right?

    ReplyDelete
  71. Excellent explanation...thanks a lot

    ReplyDelete
  72. Wow, it's been 8 years, and your article is still wanted. Great job! I would also read some explanation about artificial basis.

    ReplyDelete
  73. thank you so much..!

    ReplyDelete
  74. Thank You So much. Its 2020, and I am an engineering student. Trust me,in college they don't teach this good.


    Your explanation just cleared everything.

    God Bless You!

    ReplyDelete
  75. This comment has been removed by a blog administrator.

    ReplyDelete
  76. Thanks a lot. Most textbooks don't explain the logic and now that the logic is clear, it seems so easy

    ReplyDelete
  77. Excellent! Thank you so much for writing this!

    ReplyDelete
  78. Englightening....Thank you very. Hope to see similar explanations for other topics.

    ReplyDelete
  79. magical explanation, thanks a lot please continue doing this

    ReplyDelete
  80. Thank you so much for this great explanation. Very well explained and the concept is clear.
    Appreciate the great effort.

    ReplyDelete