Here is an explanation of the simplex algorithm, including details on how to convert to standard form and a short discussion of the algorithm's time complexity.
Пікірлер: 122
@osmanhajiyev7 жыл бұрын
So concise... Someone give this guy a Nobel Prize
@LnX534 жыл бұрын
this is legitimately gold, i've had no idea about simplex, circulated through 4 or 5 video, all of them assumed I had some knowledge prior to watching the video so I could not understand anything at all from them. But this one right here... This is perfect ! thank you
@ibrahimrupawala34443 жыл бұрын
I have spent hours understanding linear programming and simplex but this dude explained it better than anyone in 10 mins
@salmaalfawal6155 Жыл бұрын
I can't believe this is the only video on your channel, it's so informative and you explained it very well!
@voxlz4 жыл бұрын
Except for the last few seconds, which gave me horrible flashbacks, this is more or less the perfect explanation. Thanks a lot!
@akshay-ashok4 жыл бұрын
I don't usually comment in KZbin videos. But this video right here should be appreciated. Man, you're awesome!
@m4d_al3x4 жыл бұрын
You just summed up my 1.5hour lecture in a 10min video.
@joebashour4 жыл бұрын
This is the most straightforward video explanation of Simplex...Very much appreciated. Thanks!
@AbdallahBoukouffallah Жыл бұрын
Old yet still the best
@pengliu62453 жыл бұрын
The only excellent video explains the simplex algorithm very clearly! Many thanks.
@ilikechocolate37412 жыл бұрын
at 8:07 the column S2, third row, the number should be 10/3, not 15/4. Also, you didn't mention artificial variables, two phase simplex and duality at all. With that being said, very good video, I'd give you a 9/10
@janplechaty17022 жыл бұрын
Yes, I got that too. I think there was a mistake with -1/3 on the S2 above that 15/4, because S2 on the second row should be just 1/3, not -1/3. Thank you for your comment and thanks to author for his explanation.
@CauseOfBSOD3 ай бұрын
@@janplechaty1702 indeed, I have been implementing the algorithm for a computer science project. Test case (problem from this video) kept failing because of this. Eventually worked through the algorithm by hand and got the same result my implementation gave (i.e. both S2 row 3 being 10/3 and S2 row 2 being 1/3 are the correct answers)
@daesoolee10834 жыл бұрын
Read and watched several explanations about the Simplex but this video is the best. It starts with the overall idea and gets deeper and deeper, which helps the understanding quite a lot.
@gabrieltepin4 ай бұрын
This must be one of the best content in the whole youtube, amazing
@krischalkhanal2344 жыл бұрын
So concise yet so perfect. And so intuitive and elementary too.
@titanictypist90624 жыл бұрын
Holy cow dude! This was VERY well explained. Inspiring.
@chicagogirl98625 жыл бұрын
I searched a lot and I've been confused totally but you explained very good:)
@oliviergagnon59187 жыл бұрын
Best demonstration around. And would be hard to beat. Thanks.
@warsicklol7 жыл бұрын
Simple and clear explanation. Thank you for making this video
@Helen-lm6bb7 жыл бұрын
I don't know why your channel isn't popular! Great explanation for people who don't have prior knowledge to such algorithm. Thanks!
@aziz993 жыл бұрын
man you re a life saver , also that scene from dhis is pure gold, bless you
@debonairrose Жыл бұрын
his voice fits being the main vocal of a rock band i swear to god.
@ayushbhatnagar80914 жыл бұрын
At 9:15, Case where x is negative, I think you need to add one more constraint x_1< x_2 and need to include them in the objective function as well. Great explanation btw.
@reshmithampy3 жыл бұрын
Now I have an idea about what I am to do and not feel forced to memorize the steps
@luigiduprez75103 жыл бұрын
I would love to see more videos from him, a very nice way of explaining and visualising the concept
@erazn9077 Жыл бұрын
At 8:08 shouldn’t the 4th value for the last row be 10/3 instead of 15/4? 5 + ( - 5 / 3 )
@santoshkavhar2596 Жыл бұрын
Thanks so much for simplifying it so much, textbooks make it way more harder. I hope you keep making more videos
@wexwexexort6 ай бұрын
Really nice explanation, clear and to the point.
@VietnamSteven2 жыл бұрын
your presentation style is really outstanding!!
@earthling123 Жыл бұрын
"A quick sanity check" always gets me 😂
@razamailbox4 жыл бұрын
Great Explanation, finally a video which gives some intuition Thank you!!
@elliott81753 жыл бұрын
So, this vid is amazingly concise; but I got me some questions: 1) How do you choose the first vertex? In this case it's "obvious" that (0,0) is a vertex, but I have a problem with over 100k decision variables and if I set them all to zero then I'll be outside the solution region. 2) How to handle constraints that don't form a boundary? Imagine the same as above, but with the added constraint *x
@julianocamargo66743 жыл бұрын
1 - This is the purpose of the slack variables. If the right side vector b is positive, you can always start with x=0 ans s=b. Some problems do not have postive b, and then indeed it is another problem. It is called the 'first phase' of simplex algorithm. You have to start with what we call a "basic feasible solution"
@julianocamargo66743 жыл бұрын
2 It seems the process of changing the base was not explained, but in simplex if you start with a bfs vertex, you always get another bfs (improved) vertex. When you change the point you test how far can you move it in a given direction, and then your redundant constraint would never show up. Since some constraints add nothing to the problem, some solvers can do a preprocessing and remove it just to make the matrix smaller .
@elliott81753 жыл бұрын
@@julianocamargo6674 Thanks for your explanations! I wish I could give an intelligent response, but I haven't touched simplex since I first wrote this comment. I'm sure I'll come back to it and read your comments again. Thanks. =)
@faresmajed505 жыл бұрын
I wish you are my instructor, thank you so much for this short and concise video
@4BohrKid4 жыл бұрын
best explanation i've seen so far.
@TheMyanka7 жыл бұрын
Thank you, that was a brilliant explanation.
@1tokillamockingbird3 жыл бұрын
LEGEND! You can die in peace knowing that your legacy will forever save future undergrad students days before their final exam
@shershahdrimighdelih4 жыл бұрын
Very well presented, and the jump cuts help understand things better
@lstathisplaysvideogames49063 жыл бұрын
My guy, you just saved my ass , my professor could never
@abdulrehmanbilal9582 жыл бұрын
OMG This opened the doors of my thoughts.
@mouhamethfadalmarabyaidara49357 жыл бұрын
concise and accurate explanation.Great video and thanks a lot
@markkaravan42454 жыл бұрын
Amazing explanation. Not nearly enough subscribers.
@theatulupadhyay Жыл бұрын
Very beautifully explained.
@valentinegift36895 жыл бұрын
Dude you are wonderful - really wish you'll somehow monetize your explanation skills.
@MuhsinFatih6 жыл бұрын
I am experiencing mathgasm. So elaborately put. Awesome video
@atakan71610 ай бұрын
awesome explanation 🎉
@ZenoDiac2 жыл бұрын
Beautifully explained
@whasuklee3 жыл бұрын
Such a great help! Really appreciate your work!!
@ruslanaliev22164 жыл бұрын
best explanation of simplex ever!
@danielTkachenko07 жыл бұрын
That's a great explanation! Thanks for the video
@pacmanmaster164 жыл бұрын
Great video, you should make a comeback
@toxictime38624 жыл бұрын
This is awesome! Please do more
@ankitunariya3661 Жыл бұрын
YOU R A GENIUS ! THANKS A LOT.
@sjwang38923 жыл бұрын
Thanks for this great video!
@n-da-bunka26503 жыл бұрын
Perhaps it was my linear computation classes from 1981 kicking in but didn't everyone know the answer the minute it was asked? I started to wonder why he was presenting such an obvious solution and kept waiting for the trick that I may have originally missed which, of course, doesn't exists.
@Traymer75 жыл бұрын
Perfect man! Love that you implemented theory as well!
@bakdorz4 жыл бұрын
Great explanation! Question though: Once we reach intersection at B ( 4:35 ) you mention that we have TWO options. Keep b=0, or keep s2=0. I'm not sure I understand how come we have two options, since if we chose b-0, then the objective would decrease no?
@elliott81753 жыл бұрын
Yeah, I think you're always strictly improving on the solution, so surely you could always rule-out the vertex that you just came from. For 2D problems that'd mean doing a circuit till you're at the max.
@estelle367 Жыл бұрын
🤓
@gat0tsu2 жыл бұрын
very clear. amazing. wow
@mathaha29223 жыл бұрын
Excellent!
@vaggelismanousakis61475 жыл бұрын
Simplex explained Simply. Thaks a lot
@waheebalqamar5585 жыл бұрын
Man, you are the best
@saranshgokhale82983 жыл бұрын
Very helpful, thank you!
@jared08015 жыл бұрын
thanks for the straightforward explanation
@ansyona75227 жыл бұрын
Thank you for sparing many hours of torture for many!!
@Physicus97 жыл бұрын
Am I the only one wondering how at 8:05 he managed to get 15/4 for the 5-(5*(-1/3))? That would be 10/3 if I'm not mistaken...
@louisholley79447 жыл бұрын
Michael Duffy you are correct, but fortunately here that doesn’t matter. Thanks for pointing out the mistake :)
@user-wq5lv8nx9sАй бұрын
Mistake at 8:04 second row -1/3 on the right should be 1/3 and the 15/4 should be 10/3 everything else is all good.
@prasadkavinda12106 жыл бұрын
thanks man. very helpful!!
@ericc6820 Жыл бұрын
well said 👏
@tapobrataroychoudhury30162 жыл бұрын
Thank you❤
@nischalsubedi94323 жыл бұрын
@ 2.25 timestamp--did you mean s1
@elliott81753 жыл бұрын
*S* represents the amount that you would need to add to the smaller amount (lhs) to make it equal to the larger amount (rhs). So *S1* and *S2* should be strictly non-negative.
@crystalline28 жыл бұрын
that was interesting, very good explanation thank you
@earthling123 Жыл бұрын
Thank you louis
@austinoquinn8153 жыл бұрын
Wow, that was great.
@iambossgetlost13953 жыл бұрын
👌
@InvincibleAirman2 жыл бұрын
I came here to understand the reasons behind the matrix manipulation better, but when the video reached that part, it kind of stopped explaining (why things are done) and settled for narrating (what is being done, which I already know) so I didn't find it as helpful as I had hoped.
@lopyus4 жыл бұрын
Thank you so much! =)
@ElectromecanicaIndustrial3 жыл бұрын
thank you
@Alex-op2kc4 жыл бұрын
good video
@nipo41445 жыл бұрын
why do we want the smallest ratio at 6:58?
@24mrdanny5 жыл бұрын
I am wondering this as well...
@nipo41445 жыл бұрын
@@24mrdanny this smallest ratio allows us to keep the constraints on variables. on a graph it corresponds to moving along the edge until u encounter the first constraint.
@javad3462 жыл бұрын
Thanks a lot
@thangible4 жыл бұрын
i love this.
@BipinOli907 жыл бұрын
good explanation
@shaky3 Жыл бұрын
thank you! you made simplex simple lol
@DlcEnergy7 жыл бұрын
you mean, Complex Explained
@pathfinder7503 жыл бұрын
what a legend
@XShollaj3 жыл бұрын
Perfection
@tayyabm_edits4 жыл бұрын
welcome to 2021.
@arielediang53814 жыл бұрын
s1 and s2 aren't supposed to be great or equal to zero? why do you s1 and s1 are less than zero while drawing the graph?
@kushb54195 жыл бұрын
thank you!
@heoTheo6 жыл бұрын
awesome!
@antoinecolson99895 жыл бұрын
you did not explain why at 6:40 you take the constants in the last column and divide them by their corresponding values in the first column. This video does not explain the simplex method, it simply describes it.
@abikim34388 жыл бұрын
from the drawing, how can i know if there is unused material or hours ?
@nandaschuch4 жыл бұрын
You are producing 20 of each chair, which use 3m2, so in total you use 120m2 (40*3m2) which is the maximum allowed by the problem, so no unused material. The same for the hours, the full 1000 hours were used (20*40+20*10).
@ramananm62573 жыл бұрын
The irony is Simple is not actually "Simple"!! (The big table thing, Oh God 🤯)
@authenticstories25715 жыл бұрын
great
@kevinchou41475 жыл бұрын
vivid example
@almakyubi7 ай бұрын
tysm
@steven16715 жыл бұрын
That intro sound sounds familiar.... dont hug me I'm scared.
@louisholley79445 жыл бұрын
Steven :)
@pakonicoco2 жыл бұрын
Might be either dumb or too late.. but why not only sell standard chairs? As I am understanding it, you are essentially loosing profit with every “luxury” chair you sell.. if you spent the 1000 hours on 100 “standard” chairs (costing 10 hours each) you would make $1000 at $10 each. If you made a single “luxury” one and the rest “standard”, you would make $980. If you made two “luxury” chairs and the rest “standard”, you would make $960.. i.e. you are loosing $20 for every chair. It costs you twice in labor to profit for every luxury chair, compared to a one to one cost in labor to profit for standard chairs. What the hell am I missing?
@nils39892 жыл бұрын
you can only make a maximumof 40 chairs due to the m3 of wood available.
@pakonicoco Жыл бұрын
@@nils3989 Ohhhh thats the detail I overlooked. Thank you for pointing it out.
@clutterArranger4 жыл бұрын
I am a computery guy.
@ilyasaroui77456 жыл бұрын
don't click 7:01
@ПавлоЛінн4 жыл бұрын
all the trickery with divisions still not explained.