15. Linear Programming: LP, reductions, Simplex

Sdílet
Vložit
  • čas přidán 3. 03. 2016
  • MIT 6.046J Design and Analysis of Algorithms, Spring 2015
    View the complete course: ocw.mit.edu/6-046JS15
    Instructor: Srinivas Devadas
    In this lecture, Professor Devadas introduces linear programming.
    License: Creative Commons BY-NC-SA
    More information at ocw.mit.edu/terms
    More courses at ocw.mit.edu

Komentáře • 96

  • @gustavo5320
    @gustavo5320 Před 3 lety +20

    One of the best explanations about the fundamentals of Simplex. Thank you, Professor!

  • @Ludiusvox
    @Ludiusvox Před 5 lety +24

    Thank you so much for this lecture, because I have taken Analysis of Algorithms and supposedly it was ABET accredited and I didn't miss any lectures but somehow this lecture wasn't included in my class. In my theory you guys are all working off of the public education budget from the DoE so thank you for filling in where the other teachers skip subjects in school

    • @minhazjisan3074
      @minhazjisan3074 Před 4 lety +2

      simplex method/big m method are fundamental part of operations research course

  • @karansvnit
    @karansvnit Před 6 lety +114

    Simplex algo: 58:38

  • @lilyshawn5454
    @lilyshawn5454 Před rokem +1

    What a great lecture! I love that the professor handed out Frisbee to his students.

  • @gatoquantico3925
    @gatoquantico3925 Před 3 lety +4

    How did he get the constants for getting the certificate of optimality?

  • @henryzhu7309
    @henryzhu7309 Před 3 lety +7

    One of the interesting class for the whole series. No boring proof and analysis

  • @caio-jl6qw
    @caio-jl6qw Před rokem

    Golden lecture! On top of that, a charismatic professor :)

  • @binwangcu
    @binwangcu Před 3 lety +1

    I can make an unapproved claim that the optimality is smaller, but how come using cost function itself certifies the optimality?

  • @rahulkasar124
    @rahulkasar124 Před 2 lety

    Can someone timestamp when he starts talking about Simplex please?

  • @ariellubonja7856
    @ariellubonja7856 Před 2 lety +4

    39:45 - Expressing Max-Flow as LP

  • @KofiKrules
    @KofiKrules Před 6 lety +7

    This dude is rolling of a bean rn

    • @KofiKrules
      @KofiKrules Před 6 lety +29

      never mind, I had my speed on 1.25

  • @_ahmedkira
    @_ahmedkira Před 3 lety +1

    can you add timestamp please

  • @SubhamKumar-eg1pw
    @SubhamKumar-eg1pw Před 5 lety +15

    Simplex algorithm at 59:53

  • @hsujerry7231
    @hsujerry7231 Před 5 měsíci

    How can we prove the time complexity of the simplex algorithm? The professor seems to omit the proof

  • @englishmotherfucker1058

    1:20 the chalk looks like the upper left quarter of a face looking towards the exit

  • @Catloverassam
    @Catloverassam Před 2 lety +2

    Is there restriction on the number of decision variables and constraints used in an LPP?

  • @bhushan8362
    @bhushan8362 Před 4 lety +6

    @1:17:23 equation for slack variable x5 is wrongly written (last term should be x6 /2 instead of x1 /2)

  • @ZhanCaitao
    @ZhanCaitao Před 3 lety +2

    Good lecture.

  • @brandongomes7321
    @brandongomes7321 Před 8 lety

    This is great

  • @mustafa7891
    @mustafa7891 Před 3 lety +1

    What did the professor throw, when the student answered correctly? Do anyone know?

    • @OakCMC
      @OakCMC Před 3 lety +2

      It's a frisbee.

  • @XiaosChannel
    @XiaosChannel Před 8 lety +75

    oh dear, never thought I'd learn how politics work here.

    • @andriwmunoz9006
      @andriwmunoz9006 Před 7 lety +2

      Xiao'sChannel amazing, isn't it?

    • @user-hs7qg5tt8t
      @user-hs7qg5tt8t Před 5 lety

      unbelievable! how they decide what to say to let people vote to them

  • @AvanagantiAkshathreddy
    @AvanagantiAkshathreddy Před 6 měsíci

    He proved that x1+x2+x3+x4 has 3100000/111 as a possible lower bound, but where did he prove that it is the minimum possible lower bound in the certificate of optimality??

  • @PedroFPardo
    @PedroFPardo Před 6 lety +9

    I couldn't get a better solution than (x1, x2, x3) = (8, 4, 0) >> 28 How can Professor Devadas get to 30?

    • @victornyborg6569
      @victornyborg6569 Před 3 lety +1

      I get the same answer as you using a different method.

    • @lounesbenali4889
      @lounesbenali4889 Před 2 lety +1

      I think that z is equal to 27 + x2/4 - x3/2 -3x6/4 instead of 27 + x2/4 +x3/2 -3x6/4
      But despite that I still find like you (8, 4, 0) >> 28

  • @SarveshBhatnagar1214
    @SarveshBhatnagar1214 Před 6 lety

    I enjoy learning algorithms here... nice work...

  • @rongrongmiao4638
    @rongrongmiao4638 Před 7 lety +1

    When introducing general form of LP, shouldn't the objective function be x*c transpose? Since c is also a vector which means that it's a column matrix...

    • @mateusrochacruz7966
      @mateusrochacruz7966 Před 6 lety

      Yes! But C is generally considered as a matrix os 1 line and n columns, avoiding the transpose.

    • @wademarshall2364
      @wademarshall2364 Před 6 lety

      You can, but what he wrote is valid because he wrote the coefficients as a column vector and multiplied them with the dot product. Which is equivalent to matrix multiplication with the transpose

  • @ubershh
    @ubershh Před rokem +3

    33:11 Converting LP problem to standart form

  • @lounesbenali4889
    @lounesbenali4889 Před 2 lety +1

    at 1:16:45 z = 27 + x2/4 - x3/2 -3x6/4 a small typo ! But Thank you !

  • @jwarha7797
    @jwarha7797 Před 5 lety +13

    Great lecture. That board though...I wish I could clean it myself.

  • @SakosTechSpot
    @SakosTechSpot Před 8 lety +19

    how relevant to current events.

    • @dariusduesentrieb
      @dariusduesentrieb Před 4 lety +1

      yeah

    • @nyahhbinghi
      @nyahhbinghi Před rokem

      LP is super relevant - since many systems are linear, but LP is also very useful as part of the algorithm for IP (integer programming) which is used for scheduling algorithms

  • @jeongminyoun5388
    @jeongminyoun5388 Před 3 lety +2

    Can anybody tell me how did 140/222 come out?

    • @ttobg
      @ttobg Před 3 lety +1

      I don't know also

    • @shubhamide
      @shubhamide Před 3 lety +1

      sir multiplied some coefficients to all three constraints equations....and then added all three equations

    • @mustafa7891
      @mustafa7891 Před 3 lety +1

      Do you till want to know?

  • @gulnursonmez9539
    @gulnursonmez9539 Před 3 lety +2

    For the limitation equations, dollar spent per issue times number of people gained or lost per issue gives dollars, but the right hand side constant shows number of people. there's a type mismach. I got lost. I mean 50000 $, 100000 $ or 25000$ could be, but they are not dollars, they are number of people, 50000 people, 100000 people, 25000 people, but the x1, x2, x3, x4 are dollars/issue.

    • @junzhai1715
      @junzhai1715 Před 3 lety

      the coefficient: -2,5,3,etc. are votes/dollar. So -2*X1 means votes/dollar*dollars/issue=votes/issue. Therefore, the constraint is how many total votes for each issue. Here it also assumes each people has one vote. People=Vote

  • @nishchayshah6356
    @nishchayshah6356 Před 7 lety

    What are the space and time complexity of the simplex algo? how to find that?

    • @Marshal4o
      @Marshal4o Před 7 lety

      It's exponential in time, you can find it in the notes here: ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-046j-design-and-analysis-of-algorithms-spring-2015/lecture-notes/MIT6_046JS15_lec15.pdf

    • @aaditshah4689
      @aaditshah4689 Před 7 lety

      It should be noted that the time complexity of the simplex algorithm is only exponential in the worst case. For practical problems, the simplex algorithm is quite efficient running in cubic time.

    • @jacquestaschereau7645
      @jacquestaschereau7645 Před 6 lety

      mention @2:10 and 1:02:10

  • @yashotkarshmanitripathi3694

    why we are equating money spent on each issue to the population of that demography ?

    • @Aiwon
      @Aiwon Před 6 lety +1

      That also bothered me. I think that X1 through X4 are simply dollar and the coefficients associated are in Vote/Dollar. For exemple Urban/Gun control coefficient is +8 meaning that the more money you spend the more vote you get until you have a majority. 8*X1 = the vote you get by spending X1 DOLLARS in urban ad campaign on gun control.

    • @junzhai1715
      @junzhai1715 Před 3 lety +1

      the coefficient: -2,5,3,etc. are votes/dollar. So -2*X1 means votes/dollar*dollars/issue=votes/issue. Therefore, the constraint is how many total votes for each issue. Here it also assumes each people has one vote. People=Vote

  • @rasraster
    @rasraster Před rokem

    Lucky for him the optimal solution had x3 = 0, because otherwise x1 + x2 + x3 + x4 would be strictly greater than 3100000/111!

  • @guillemf2486
    @guillemf2486 Před 3 lety +4

    28:34 Did he just throw a frisbee? Why are his classes so much fun?

    • @harrywang6792
      @harrywang6792 Před 3 lety +9

      I guess you are new here lol. Yeah, he throws a frisbee to the students who answers questions

  • @xavierdsouza8885
    @xavierdsouza8885 Před 4 lety +1

    1:04:53 simplex derive

  • @Giesela0815
    @Giesela0815 Před 7 lety +15

    28:08 Haha that was funny!

    • @fallug2501
      @fallug2501 Před 7 lety

      I didn´t undestand what happened! Can you explain please? Thanks. :)

    • @Giesela0815
      @Giesela0815 Před 7 lety +4

      He said, she has her head down. Then proceeds to throw the Frisbee at the student.

  • @ramizhossain9082
    @ramizhossain9082 Před 2 lety

    Explain an easy way .

  • @KundoKun
    @KundoKun Před 4 měsíci

    I learned that people gift frisbees to politicians based on the message they want to hear.

  • @cyanide4u539
    @cyanide4u539 Před 5 lety +5

    Is this person Indian??

  • @IceTurf
    @IceTurf Před 3 lety

    how come Xi --> Xi' - Xi''?

    • @junzhai1715
      @junzhai1715 Před 3 lety

      because any real number Xi can be represented as the difference of two non-negative numbers Xi' and Xi''.

    • @IceTurf
      @IceTurf Před 3 lety

      @@junzhai1715 Xi' usually implies the first derivative on Xi.... and Xi'' usually implies the second derivative of Xi....?

    • @junzhai1715
      @junzhai1715 Před 3 lety

      @@IceTurf oh no. sry. They are just two different variables. You can treat them as Yi and Zi if you want. Nothing to do with derivative.

  • @AI7KTD
    @AI7KTD Před 4 lety +1

    The assumption at 4:49 would imply that you could decide to spend different amounts of money per issue per region, instead of having a global budget per issue. Now that's how real politics work!

  • @vinayakkambli7278
    @vinayakkambli7278 Před 4 lety

    Sy bsc mumbai university lecture

  • @ShaunYCheng
    @ShaunYCheng Před 7 měsíci

    My #1 take away from this lecture: How does politics work? "You buy elections!"

  • @harshtiwari9315
    @harshtiwari9315 Před 4 lety

    Just use a Neural Network!

  • @SacknoobGaming
    @SacknoobGaming Před 6 lety +3

    this is MIT yet I'm doing this in 10th grade fml

    • @nayankumarbarwa4317
      @nayankumarbarwa4317 Před rokem

      lol and i doing it now hahah in second year engineering
      Even I was in 10th 5 years back, didnt even cared to watch anything other than cartoons

  • @payndha6228
    @payndha6228 Před 6 lety +8

    Am I the only 8th grader that watches this kind of stuff cuz its interesting?