15. Linear Programming: LP, reductions, Simplex

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ต.ค. 2024
  • MIT 6.046J Design and Analysis of Algorithms, Spring 2015
    View the complete course: ocw.mit.edu/6-0...
    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

ความคิดเห็น • 96

  • @gustavo5320
    @gustavo5320 4 ปีที่แล้ว +19

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

  • @Ludiusvox
    @Ludiusvox 5 ปีที่แล้ว +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 5 ปีที่แล้ว +2

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

  • @karansvnit
    @karansvnit 6 ปีที่แล้ว +116

    Simplex algo: 58:38

  • @henryzhu7309
    @henryzhu7309 4 ปีที่แล้ว +7

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

  • @SubhamKumar-eg1pw
    @SubhamKumar-eg1pw 5 ปีที่แล้ว +15

    Simplex algorithm at 59:53

  • @XiaosChannel
    @XiaosChannel 8 ปีที่แล้ว +74

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

    • @andriwmunoz9006
      @andriwmunoz9006 7 ปีที่แล้ว +2

      Xiao'sChannel amazing, isn't it?

    • @李愚-f7j
      @李愚-f7j 5 ปีที่แล้ว

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

  • @bhushan8362
    @bhushan8362 4 ปีที่แล้ว +6

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

  • @lilyshawn5454
    @lilyshawn5454 ปีที่แล้ว +1

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

  • @jwarha7797
    @jwarha7797 6 ปีที่แล้ว +13

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

  • @PedroFPardo
    @PedroFPardo 6 ปีที่แล้ว +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 3 ปีที่แล้ว +1

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

    • @lounesbenali4889
      @lounesbenali4889 2 ปีที่แล้ว +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

  • @caio-jl6qw
    @caio-jl6qw ปีที่แล้ว

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

  • @ariellubonja7856
    @ariellubonja7856 2 ปีที่แล้ว +4

    39:45 - Expressing Max-Flow as LP

  • @KofiKrules
    @KofiKrules 6 ปีที่แล้ว +7

    This dude is rolling of a bean rn

    • @KofiKrules
      @KofiKrules 6 ปีที่แล้ว +29

      never mind, I had my speed on 1.25

  • @AvanagantiAkshathreddy
    @AvanagantiAkshathreddy 9 หลายเดือนก่อน

    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??

  • @gatoquantico3925
    @gatoquantico3925 3 ปีที่แล้ว +4

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

  • @guillemf2486
    @guillemf2486 4 ปีที่แล้ว +4

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

    • @harrywang6792
      @harrywang6792 4 ปีที่แล้ว +9

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

  • @binwangcu
    @binwangcu 3 ปีที่แล้ว +1

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

  • @SakosTechSpot
    @SakosTechSpot 8 ปีที่แล้ว +19

    how relevant to current events.

    • @dariusduesentrieb
      @dariusduesentrieb 4 ปีที่แล้ว +1

      yeah

    • @nyahhbinghi
      @nyahhbinghi 2 ปีที่แล้ว

      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

  • @lounesbenali4889
    @lounesbenali4889 2 ปีที่แล้ว +1

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

  • @gulnursonmez9539
    @gulnursonmez9539 3 ปีที่แล้ว +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 3 ปีที่แล้ว

      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

  • @hsujerry7231
    @hsujerry7231 8 หลายเดือนก่อน

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

  • @ZhanCaitao
    @ZhanCaitao 3 ปีที่แล้ว +2

    Good lecture.

  • @yashotkarshmanitripathi3694
    @yashotkarshmanitripathi3694 7 ปีที่แล้ว +2

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

    • @Aiwon
      @Aiwon 7 ปีที่แล้ว +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 3 ปีที่แล้ว +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

  • @mustafa7891
    @mustafa7891 3 ปีที่แล้ว +1

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

    • @OakCMC
      @OakCMC 3 ปีที่แล้ว +2

      It's a frisbee.

  • @rasraster
    @rasraster 2 ปีที่แล้ว

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

  • @SarveshBhatnagar1214
    @SarveshBhatnagar1214 6 ปีที่แล้ว

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

    • @biswajeetsethi7689
      @biswajeetsethi7689 5 ปีที่แล้ว

      At 16 min.. what is that / 111 ?? I dnt get it

    • @hernanodi2877
      @hernanodi2877 5 หลายเดือนก่อน

      @@biswajeetsethi7689 I don't understand either

  • @rongrongmiao4638
    @rongrongmiao4638 8 ปีที่แล้ว +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 7 ปีที่แล้ว

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

    • @wademarshall2364
      @wademarshall2364 6 ปีที่แล้ว

      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

  • @englishmotherfucker1058
    @englishmotherfucker1058 4 ปีที่แล้ว

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

  • @rahulkasar124
    @rahulkasar124 3 ปีที่แล้ว

    Can someone timestamp when he starts talking about Simplex please?

  • @KundoKun
    @KundoKun 7 หลายเดือนก่อน

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

  • @AI7KTD
    @AI7KTD 4 ปีที่แล้ว +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!

  • @jeongminyoun5388
    @jeongminyoun5388 4 ปีที่แล้ว +2

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

    • @ttobg
      @ttobg 3 ปีที่แล้ว +1

      I don't know also

    • @shubhamide
      @shubhamide 3 ปีที่แล้ว +1

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

    • @mustafa7891
      @mustafa7891 3 ปีที่แล้ว +1

      Do you till want to know?

  • @xavierdsouza8885
    @xavierdsouza8885 4 ปีที่แล้ว +1

    1:04:53 simplex derive

  • @Catloverassam
    @Catloverassam 3 ปีที่แล้ว +2

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

  • @Giesela0815
    @Giesela0815 7 ปีที่แล้ว +15

    28:08 Haha that was funny!

    • @fallug2501
      @fallug2501 7 ปีที่แล้ว

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

    • @Giesela0815
      @Giesela0815 7 ปีที่แล้ว +4

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

  • @_ahmedkira
    @_ahmedkira 3 ปีที่แล้ว +1

    can you add timestamp please

  • @ramizhossain9082
    @ramizhossain9082 2 ปีที่แล้ว

    Explain an easy way .

  • @cyanide4u539
    @cyanide4u539 5 ปีที่แล้ว +5

    Is this person Indian??

  • @brandongomes7321
    @brandongomes7321 8 ปีที่แล้ว

    This is great

  • @ShaunYCheng
    @ShaunYCheng 10 หลายเดือนก่อน

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

  • @nishchayshah6356
    @nishchayshah6356 8 ปีที่แล้ว

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

    • @Marshal4o
      @Marshal4o 7 ปีที่แล้ว

      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 7 ปีที่แล้ว

      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 7 ปีที่แล้ว

      mention @2:10 and 1:02:10

  • @IceTurf
    @IceTurf 4 ปีที่แล้ว

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

    • @junzhai1715
      @junzhai1715 3 ปีที่แล้ว

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

    • @IceTurf
      @IceTurf 3 ปีที่แล้ว

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

    • @junzhai1715
      @junzhai1715 3 ปีที่แล้ว

      @@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.

  • @vinayakkambli7278
    @vinayakkambli7278 4 ปีที่แล้ว

    Sy bsc mumbai university lecture

  • @harshtiwari9315
    @harshtiwari9315 4 ปีที่แล้ว

    Just use a Neural Network!

  • @payndha6228
    @payndha6228 7 ปีที่แล้ว +8

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

  • @SacknoobGaming
    @SacknoobGaming 7 ปีที่แล้ว +3

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

    • @nayankumarbarwa4317
      @nayankumarbarwa4317 ปีที่แล้ว

      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