How to Solve a Linear Programming Problem Using the Dual Simplex Method

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 146

  • @sxmirzaei
    @sxmirzaei  10 років тому +30

    Make sure you watch 2:42 to 3:08.

    • @odiocolombia
      @odiocolombia 9 років тому +6

      Shokoufeh Mirzaei Thank you, beside you are beautiful, you are smart :)

    • @ashkantaravati
      @ashkantaravati 5 років тому +2

      I was badly struggling with OR and was so desperate when I found these videos. You made my day. I'm in Iran, have less than a month to prepare for Master's entrance exam for Industrial Engineering, I haven't passed this course as my bachelor's degree is in computer engineering.
      So,
      خیلی ممنون، زنده بود، آرزوی موفقیت خانم دکتر!

    • @sxmirzaei
      @sxmirzaei  5 років тому +1

      @@ashkantaravati Hi Ahskan, I am glad these videos were helpful. Hope you make it to a Masters program of your choice! Fingers crossed for you!

    • @ashkantaravati
      @ashkantaravati 5 років тому

      @@sxmirzaei Thanks professor! 🤩

    • @ctyc123
      @ctyc123 3 роки тому +1

      Hi Shokoufeh, I know its been a long time ago, but how about max objective function?

  • @kamil.g.m
    @kamil.g.m 16 днів тому

    Third year computing student an Imperial College London here. This explains this far better than my lecturers ever could. They're used to teaching some of the smartest students in the country so they seemingly make no effort to actually come up with simple explanations.

  • @aleroux
    @aleroux 7 років тому +2

    The amount of times I have rather watched this video than work through all the theory is uncountable - thank you for the great video :)

  • @kimbryanduenas
    @kimbryanduenas 8 років тому +10

    If I could upvote this video a thousand times I would.

    • @sxmirzaei
      @sxmirzaei  8 років тому +1

      +Kim Bryan Duenas Thank you!

  • @FPrimeHD1618
    @FPrimeHD1618 8 років тому +35

    Great explanation, I definitely appreciate the work you put into this! Linear Programming is hands down the easiest math explained in the most complicated way lol.

  • @feyza4225
    @feyza4225 Рік тому

    I was so confused, now it all makes sense. Thank you very much!

  • @parthajitmazumdar5474
    @parthajitmazumdar5474 7 років тому

    Was confused before watching this video as to what the heck has dual of an LPP got to do with the Dual Simplex method...This video made it clear the start itself..Too good :)

  • @mouhamethfadalmarabyaidara4935
    @mouhamethfadalmarabyaidara4935 6 років тому +1

    Flawless explanation. I appreciated the prelusion you made by first explaining the usefulness of this method before getting through the different steps of this lesson

  • @Kafkaesque-kc1mi
    @Kafkaesque-kc1mi 2 роки тому +1

    At 6:11, how do we know that having a negative RHS value makes it infeasible? I'm thinking -x1 - 2x2 + s4 = -150 should have some solution, buy I might be missing something obvious.

  • @babakkhajavi8545
    @babakkhajavi8545 3 роки тому

    Really appreciate your awesome in detailed teaching. I couldn't find better than your description for dual simplex. Iranian proud of you. Many Thanks Shokoufeh Jan.

  • @kuromimi_112
    @kuromimi_112 3 роки тому

    thank u for this short yet concise explanation and i love your calm accent hehe

  • @manindermanish3843
    @manindermanish3843 7 років тому +2

    ur voice is soo sweet i think i can never forget this dual simplex

  • @AbhishekSingh-yc3dp
    @AbhishekSingh-yc3dp 7 років тому

    The best video out there for understanding Dual Simplex Method... Great work

  • @BBoyXy
    @BBoyXy 9 років тому +4

    Thank you so much. Compliments from Portugal!

  • @jellaoud9712
    @jellaoud9712 4 роки тому

    At 7:30 shouldn’t you pick the first column x_1, because 1/3 is smaller than 2/4 ?

  • @ehsenhanif8808
    @ehsenhanif8808 9 років тому

    Hello. At 1:36 when you write down the next part of the equation. Why do you write >= 3 and >=4 ? Where did you get those numbers?

    • @sxmirzaei
      @sxmirzaei  9 років тому +1

      Ehsen Hanif please note that each constraint in the dual problem is associated with a decision variable in the primal problem. Thus, the RHS of the dual problem is the coefficient of the decision variables in the objective function of the primal problem. hope that helps!

  • @denisbelousov9889
    @denisbelousov9889 8 років тому

    You are the best teacher ever!

  • @nesto7707
    @nesto7707 3 роки тому +1

    Let me just say something... if you have this professor, you are lucky.

  • @johnakudoro1543
    @johnakudoro1543 5 років тому

    I have learnt a lot from this video....Many thanks!

  • @MrOnizukakira
    @MrOnizukakira 9 років тому +3

    VOUS ETES SPECTACULAIRE.... BRAVO..i barely can understand english and i understood this lesson :D thanks .

  • @sdaniel123
    @sdaniel123 10 років тому

    Hey, thanks for this lecture. But I was wondering, at 7:05 you say we divide non-zero values of row of Z by negetive values of the pivot row. What if the pivot row had -1, and 2 instead? Because at 7:30 you say we don't consider the signs for minimum test, so we only focused on size of absolute value of Z divided by pivot row?
    In short, if pivot row was -1 and +2, we'd get the same answer because the signs don't matter when doing the minimum test?
    Best,
    Shawn

    • @sxmirzaei
      @sxmirzaei  10 років тому +2

      if your pivot row had -1 and 2 , then you only had one option to perform the min test, and you would do the test on the column that has the negative value (-1). "we don't consider the signs for the minimum test" applies when you are solving for a max problem where all the values are positive in the row of z (to have the optimality condition), then when you perform the test you are dividing the positive values of the z-row by negative values of the pivot row, and you get some negative values, but to find the min value, you don't consider the signs and just find the min absolute values to define the entering decision variable. does it answer your question?

  • @ada4990
    @ada4990 4 роки тому +2

    It's very satisfying to watch your videos. Everything is summarized and simplified in a format that it's very easy to understand the concepts that I struggled with a lot during classes. Also, the handwriting is nice on the eyes and your voice is very soothing to the ears. Thanks for your effort, appreciated it a lot!

  • @oussamagacem4479
    @oussamagacem4479 6 років тому

    5:05' when you standard the problem, why did you kept the min on the objectif function?
    isn't min(Z)=-max(-Z)?

  • @neverstopexploring9
    @neverstopexploring9 11 місяців тому

    thanks for sharing this. keep up the good work. world needs more people like you :D

  • @petermambwe9430
    @petermambwe9430 3 роки тому

    applause given good lecture...#zambian student 😊😊😊✔

  • @giovannybuitron3726
    @giovannybuitron3726 Рік тому +1

    so what do you do when the objective function doesnt satisfy the requirements, eg a max function has all positive coef.?

  • @SagarmayBiswas
    @SagarmayBiswas 8 років тому +2

    Thank you ma'm. You nailed it in just 10 minutes. Helped me a lot for my exam

  • @zahrarad2259
    @zahrarad2259 7 років тому

    عاشقتم با این توضیح دادنتتتت 😍😍😍😍

  • @vnknovn
    @vnknovn 3 роки тому

    1:42 Where did that w came from?

  • @Chrisratata
    @Chrisratata 2 роки тому

    Thanks for the very clear video and explanation! I am a bit confused about something though [and the more I try to write out my question then the more turned around I get haha...]
    I see the caption clarification that you don't actually have to use the Dual formulation [despite you taking the time to show its setup] in order to perform the Dual Simplex Method. I get that using the Dual table can sometimes be the more time-efficient approach, which may be done whether the conditions necessary for the Dual Simplex Method are met or not...?
    I understand the conditions of being allowed to use the Dual Simplex Method (DSM), but what distinguishes the method itself from the Regular Simplex Method (RSM) using the Primal and from the RSM using the Dual...if conditions for being allowed to use the DSM are not so? Around the 3:05 mark, I believe what you're getting at is that you're using the Primal to perform the DSM to avoid the need to have to work out the Dual, but was that much work really saved here?

  • @isikerhan
    @isikerhan 8 років тому +3

    Your videos helped me a lot. I appreciate it!

    • @anlsevici581
      @anlsevici581 8 років тому

      +Işık Erhan I totally agree

  •  10 років тому +2

    you are awesome! you tutorials helped me raise my grades 50% more

  • @marcellacella8293
    @marcellacella8293 2 роки тому

    Do we need to consider the negative sign when we need to find the ratio in maximum problem?

  • @battlegoose1831
    @battlegoose1831 7 років тому

    Thanks! your explanation is very easy to understand!

  • @apprentice5271
    @apprentice5271 Рік тому

    Are the elements in the z row, the reduced costs? If yes, in order to have the optimality for a minimization problem should be greater or equal than 0 not negative.

  • @PapiPangolo
    @PapiPangolo Місяць тому

    Came here confused, left more confused!! Thanks!!

  • @gauravjoshi3566
    @gauravjoshi3566 5 років тому

    Thank you so much for the sensitivity analysis videos, they were really helpful.

  • @kocakOFarc
    @kocakOFarc 5 років тому +1

    thank you so much your videos helped me a lot :)

  • @kunaldesarda1095
    @kunaldesarda1095 Рік тому

    Mam great explanation, it has really helped me. I have a doubt after making the tabulae if the question is of maximization type do we still to minimum test or we take the maximum of the ratios and key column?

  • @bharathikiruba
    @bharathikiruba 6 років тому

    It was easy to Understand Mam

  • @ghozlanelane7741
    @ghozlanelane7741 3 роки тому

    Great explanation thank you teacher

  • @richardgruss8171
    @richardgruss8171 8 років тому

    Thank you! Your explanations are very clear.

  • @javierespinoza3782
    @javierespinoza3782 9 років тому +5

    Finally, someone explained the relation Primal-Dual and Dual Simplex, ive been reading Taha's book, but is unclear. Thank You! (btw: you're cute, i added you in instagram lol)

  • @felixmd1993
    @felixmd1993 8 років тому

    THANKS YOU A LOT!! please upload more videos!! you're great

  • @vnknovn
    @vnknovn 3 роки тому

    I don't really get why do we need to add artifitial variables sometimes: wouldn't it be enough by multiplying by -1 the adequate constraints?

  • @TheMichaelg1280
    @TheMichaelg1280 8 років тому +2

    I was deeply confused until I realized you just threw everything you explained away 3 minutes in.

    • @sxmirzaei
      @sxmirzaei  8 років тому +2

      that's why you are not supposed to fast forward the video!

    • @ManuelSilva-lv6un
      @ManuelSilva-lv6un 7 років тому +1

      Lol, the same thing happened to me.

  • @sethayieko7432
    @sethayieko7432 3 роки тому

    Hello, why does the last constraint not negative in normal min.

  • @erhanfindik2320
    @erhanfindik2320 8 років тому

    Thank you very much for this example. It was very clear :)

  • @arjunvardhan8134
    @arjunvardhan8134 Рік тому

    Good explanation of the method but idk how you get the solution to the dual by the end?

  • @thotty6156
    @thotty6156 5 років тому +1

    OMG!! You're the best.. Thanks a ton

  • @samithadon
    @samithadon 10 років тому +3

    Really helpful. Keep up the good work. Thanks :)

  • @yandhi4202
    @yandhi4202 5 років тому

    Thank you :) Needed this for my exam

  • @ved.shankar
    @ved.shankar 7 років тому

    Could you explain how the dual problem is solved using matrices. I didn't quite understand the notation such as z=Cx

  • @maryamhadi81
    @maryamhadi81 Рік тому

    Thanks so much this was such a big help

  • @shivani5386
    @shivani5386 8 років тому

    What does the W at 1 minute 50 second stands for? Please respond soon.

    • @sxmirzaei
      @sxmirzaei  8 років тому

      In the dual programming the objective function is usually shown by w (instead of z)

    • @shivani5386
      @shivani5386 8 років тому

      +Shokoufeh Mirzaei thanks

  • @dobyxn
    @dobyxn 10 років тому

    Thank you very much! I have one question. If we had positive values at the rhs of the last step and some values at the row of z that are positive for this min problem, then, do we continue the steps of the simplex method to reach for only negative values at the row of z?i mean, do we continue with the regular simplex?

    • @shokoufehmirzaei9759
      @shokoufehmirzaei9759 10 років тому

      to be able to solve a problem using the dual simplex, the optimality condition which is the non-positive (non-negative) values in the z-row for a min (max) problem will be maintained thought the simplex. to solve what you explained just a regular simplex method is required and usually you don't run to this condition in the dual simplex if in the fist place you started it with an optimal table.

    • @mustaphaejjayah520
      @mustaphaejjayah520 10 років тому

      *****
      Hi,
      I have one QUT Please .
      if we have the all values RHS negative ,which one take ?
      the "MAX" or the "MIN" .

    • @sxmirzaei
      @sxmirzaei  10 років тому

      Mustapha Ejjayah pick the most negative value. e.g. among -2, -3 and -5 , you pick the row associated with -5.

    • @mustaphaejjayah520
      @mustaphaejjayah520 10 років тому

      Shokoufeh Mirzaei
      Thanks

    • @mustaphaejjayah520
      @mustaphaejjayah520 10 років тому

      Shokoufeh Mirzaei I have another QUT please .
      how to deduce an optimal solution of thé primal,in your Method Dual Simplex ??
      ?

  • @aayushtaneja
    @aayushtaneja 7 років тому

    What changes do we make for maximization problem?

    • @sxmirzaei
      @sxmirzaei  7 років тому

      If you have a max problem and all coefficients are negative (e.g. Z=-2x1- 3x2-4x3) then nothing in your solution method change. Solve it as explained in the video.

  • @Aquaeflavie81
    @Aquaeflavie81 8 років тому

    thank you very much. you helped me a lot

  • @SunilparajuliKenshin
    @SunilparajuliKenshin 9 років тому +2

    Please show change of unrestricted variable if ith constant is in equal sing"=" then its ith dual variable must be stated as unrestricted. Can you briefly explain it?

  • @mathsandstatswithsajidrehm374
    @mathsandstatswithsajidrehm374 5 років тому

    One Question Plz, if the Coefficients in MAX objective function are negative ( or at least one) then can it be solved as you told coefficients in objective function should be Postive. Ans plz today...

  • @tuxu1598
    @tuxu1598 6 років тому

    Very clear. Thanks.

  • @ihsaanm97
    @ihsaanm97 7 років тому

    Great explanation! Thank you!

  • @achinijayawardane7402
    @achinijayawardane7402 6 років тому

    this was very helpful ;) thanks!!

  • @FcBarcelonaKid
    @FcBarcelonaKid 7 років тому

    Beautiful, smart, and stunning
    Explained extremely well, hopefully I do well on my quiz !

  • @ctyc123
    @ctyc123 3 роки тому

    I love you, thanks!!!

  • @sathyachowdary1379
    @sathyachowdary1379 8 років тому +1

    How to solve if we have an equality constraint???

    • @sxmirzaei
      @sxmirzaei  8 років тому +3

      change the equality to two inequalities. e.g. x1+x2=1 can be written as x1+x2>=1 and x1+x2

    • @ThePositiev3x
      @ThePositiev3x 7 років тому

      Is it a mistake if we write no slack variables and just rearrange the equation just like we did with the objective function?

  • @mirotane1152
    @mirotane1152 9 років тому

    What should I do, when instead of x1+2x2>=150 I have x1+2x2=150. Should I replace constraint containing = with 2 constraints containing >= and

    • @sxmirzaei
      @sxmirzaei  9 років тому +7

      +miro tane Exactly! if you have a constraint which has = sign, you break it to two constraints with >= and & =150 and x1+2x2

    • @francobalducchi539
      @francobalducchi539 8 років тому

      +Shokoufeh Mirzaei l l l

    • @francobalducchi539
      @francobalducchi539 8 років тому

      +Shokoufeh Mirzaei l l l

  • @leticiacardoso8844
    @leticiacardoso8844 8 років тому

    Thank you, helped me so much !

  • @hemapanta3610
    @hemapanta3610 9 років тому

    How to choose the pivotal element, if minimum test gives to equal values?

    • @sxmirzaei
      @sxmirzaei  9 років тому

      Junk Square when you run to this situation you can choose either one. However, it is a sign that you have a degenerate solution, meaning that one of your basic variables in the next table will be zero, and you will get stuck in a loop. one rule of thumb to get rid of degeneracy is to pick the decision variable with a lower index. For example, if the tie happens between x1 and x2, choose x1. this way hopefully you will get rid of degreanate solution fatser. Read more here: ocw.mit.edu/courses/sloan-school-of-management/15-053-optimization-methods-in-management-science-spring-2013/tutorials/MIT15_053S13_tut07.pdf

  • @omarwothjonathan9722
    @omarwothjonathan9722 8 років тому

    How are you ? In simplex method how do you go about a problem when a variable enters the basis in one table then leaves the basis after in the next problem.

    • @sxmirzaei
      @sxmirzaei  8 років тому

      please watch my video for the simplex method.

    • @omarwothjonathan9722
      @omarwothjonathan9722 8 років тому

      Hi I did watch but it was based on that situation where a variable enters the basis in one table then leaves in the next basis.
      Take for instance x1 enters the basis in the table then after in the next table x1 leaves the basis

  • @davidepaolillo1021
    @davidepaolillo1021 5 років тому

    if i get a negative rhs for z what should i do ?

    • @sxmirzaei
      @sxmirzaei  5 років тому

      It is fine! Z can be negative! For exmaple, if your objective function is Z=-4x1 +X2 and your X1=10 and X2=5, then Z=-35. So it is ok to have a negative Z, as long as your variables are positive.

  • @karrarbarazanchi666
    @karrarbarazanchi666 9 років тому

    How are you ..lde problem on the subject of linear programming .. when a professor at the University gives to the student in question and there are question directly equations and the objective function etc will be resolved directly by the graph ... I have a problem when the teacher gives us a question, and this question be a way of words and the student who is extracted from the two variables here lies the difficulty I hope you to help us in some way in order to know how to extract the two variables of the question (x1 and x2) .. what is the way of thinking or to extract variables from so questions (thank you)

    • @sxmirzaei
      @sxmirzaei  9 років тому +1

      +Karrar Barazanchi Hi Karrar. that is called formulation of a linear programming problem. I have not created any videos for those type of problems yet. But I will sometime in the future. for now I would suggest you practice as much as you can using examples of your text book.

  • @oualab8945
    @oualab8945 9 років тому +1

    really helpful thank you !

  • @arsalanyaghoubi6351
    @arsalanyaghoubi6351 4 роки тому

    sorry professor;why didn't you continue this process(finding pivots and elimination)till all Z values turn >= 0?

  • @piyumirangima2364
    @piyumirangima2364 3 роки тому

    Thank you madam ❤️

  • @hemapanta3610
    @hemapanta3610 9 років тому

    In maximization problem we won't get any -ve value in row of Z, then how to perform minimum test?

    • @sxmirzaei
      @sxmirzaei  9 років тому

      Junk Square in that case you already have an optimum table, if the RHS>=0.

  • @mirotane1152
    @mirotane1152 9 років тому

    If I continue with your solution using primary simplex method I get Z*=900 and X2 = 225 , because in Z line is -1 which can be improved by primary simplex (every variable in z must be >=0). It pass through all constraints. So what is the right solution?

    • @sxmirzaei
      @sxmirzaei  9 років тому +1

      +miro tane if you solving the primary problem using the big-m or two-phase method you should get the same answer 300. the reason you got 900 is that you solved the primal problem with a max objective function rather than min. to solve the primal problem you don't need to multiply the objective function with a negative value. you just solve what you have.

    • @mirotane1152
      @mirotane1152 9 років тому

      +Shokoufeh Mirzaei thank you so much I didnt see it :D

  •  9 років тому +1

    Thank you for the video, much appreciated.

  • @ThePositiev3x
    @ThePositiev3x 7 років тому

    Thank you very much, I have a question.
    What would we do if in the new table there was no negative RHS but there is a one positive coefficient in the row of Z?

    • @sxmirzaei
      @sxmirzaei  7 років тому +1

      If there is no optimality condition in the row of Z (mix of + and - signs), or no positive in the RHS you cannot solve it using other simplex methods. You might want to consider watching simplex method video.

  • @soumyabrata111
    @soumyabrata111 8 років тому

    thanks Shokoufeh

  • @naifsadoun7314
    @naifsadoun7314 10 років тому

    Gooood thanks 😘

  • @stellaarcher2062
    @stellaarcher2062 7 років тому

    Thank you so much !!

  • @nukebarbarbarian3735
    @nukebarbarbarian3735 3 роки тому

    Thank you

  • @alirezamasoumi2472
    @alirezamasoumi2472 10 років тому +1

    tnx ;) really usefull

  • @d1rkn
    @d1rkn 9 років тому

    good job , Thank you

  • @husseinshafeeqhamza-1640
    @husseinshafeeqhamza-1640 5 років тому

    thanks a lot !!!

  • @BlankSabbath0410
    @BlankSabbath0410 8 років тому

    thank you very much!

  • @ghozlanelane7741
    @ghozlanelane7741 3 роки тому

    When R3 was calculated, you used the old row of R4 and not in Row 2 and 1 and in z you used the old R4

  • @lilanthadilan5809
    @lilanthadilan5809 10 років тому +1

    Thanks a lot

  • @Centnl287NAve
    @Centnl287NAve 8 років тому

    This video is MVP

  • @HandsomeMaq
    @HandsomeMaq 8 років тому +7

    hope i pass tommorow.

  • @randomadventuresforfun3901
    @randomadventuresforfun3901 10 років тому +1

    a more in depth explanation not too bad

  • @omarwothjonathan9722
    @omarwothjonathan9722 8 років тому

    hi after converting the problem to maximization why didn't you solve it using simplex method

    • @sxmirzaei
      @sxmirzaei  8 років тому +1

      you dont convert the problem to a max problem to solve it using the dual simplex. you use the primal for solving the dual without actually writing the dual problem.

    • @omarwothjonathan9722
      @omarwothjonathan9722 8 років тому

      Thank you understood

  • @ahf733
    @ahf733 5 років тому

    Allah (God) bless you
    Very good explanation

  • @ajinkyakapadi7232
    @ajinkyakapadi7232 8 років тому

    nice video

  • @tonmoychakraborty5470
    @tonmoychakraborty5470 8 років тому

    Thanx a lot :)

  • @mustaphaejjayah520
    @mustaphaejjayah520 10 років тому +1

    thank you Shokoufeh Mirzaei

  • @pren5948
    @pren5948 9 років тому +1

    thanks.

  • @fireworkguy8220
    @fireworkguy8220 5 років тому

    1st steps are not explained

  • @chkndelux
    @chkndelux 10 років тому

    why didn't you just multiply your 4th constraint by -1 to make things easier?

    • @sxmirzaei
      @sxmirzaei  10 років тому +1

      Wilson Camacho if you watch the video to the end, that is actually what we did . The first couple of minutes is to explain the underlying concept of the dual simplex.

    • @chkndelux
      @chkndelux 10 років тому

      Shokoufeh Mirzaei Ok. Do you have a video to solve this algebraically ?

    • @sxmirzaei
      @sxmirzaei  9 років тому

      Wilson Camacho ua-cam.com/video/Wn45puC08DA/v-deo.html