Simplex Explained

  Рет қаралды 78,195

Louis Holley

Louis Holley

Күн бұрын

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
@osmanhajiyev
@osmanhajiyev 7 жыл бұрын
So concise... Someone give this guy a Nobel Prize
@LnX53
@LnX53 4 жыл бұрын
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
@ibrahimrupawala3444
@ibrahimrupawala3444 3 жыл бұрын
I have spent hours understanding linear programming and simplex but this dude explained it better than anyone in 10 mins
@salmaalfawal6155
@salmaalfawal6155 Жыл бұрын
I can't believe this is the only video on your channel, it's so informative and you explained it very well!
@voxlz
@voxlz 4 жыл бұрын
Except for the last few seconds, which gave me horrible flashbacks, this is more or less the perfect explanation. Thanks a lot!
@akshay-ashok
@akshay-ashok 4 жыл бұрын
I don't usually comment in KZbin videos. But this video right here should be appreciated. Man, you're awesome!
@m4d_al3x
@m4d_al3x 4 жыл бұрын
You just summed up my 1.5hour lecture in a 10min video.
@joebashour
@joebashour 4 жыл бұрын
This is the most straightforward video explanation of Simplex...Very much appreciated. Thanks!
@AbdallahBoukouffallah
@AbdallahBoukouffallah Жыл бұрын
Old yet still the best
@pengliu6245
@pengliu6245 3 жыл бұрын
The only excellent video explains the simplex algorithm very clearly! Many thanks.
@ilikechocolate3741
@ilikechocolate3741 2 жыл бұрын
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
@janplechaty1702
@janplechaty1702 2 жыл бұрын
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.
@CauseOfBSOD
@CauseOfBSOD 3 ай бұрын
@@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)
@daesoolee1083
@daesoolee1083 4 жыл бұрын
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.
@gabrieltepin
@gabrieltepin 4 ай бұрын
This must be one of the best content in the whole youtube, amazing
@krischalkhanal234
@krischalkhanal234 4 жыл бұрын
So concise yet so perfect. And so intuitive and elementary too.
@titanictypist9062
@titanictypist9062 4 жыл бұрын
Holy cow dude! This was VERY well explained. Inspiring.
@chicagogirl9862
@chicagogirl9862 5 жыл бұрын
I searched a lot and I've been confused totally but you explained very good:)
@oliviergagnon5918
@oliviergagnon5918 7 жыл бұрын
Best demonstration around. And would be hard to beat. Thanks.
@warsicklol
@warsicklol 7 жыл бұрын
Simple and clear explanation. Thank you for making this video
@Helen-lm6bb
@Helen-lm6bb 7 жыл бұрын
I don't know why your channel isn't popular! Great explanation for people who don't have prior knowledge to such algorithm. Thanks!
@aziz99
@aziz99 3 жыл бұрын
man you re a life saver , also that scene from dhis is pure gold, bless you
@debonairrose
@debonairrose Жыл бұрын
his voice fits being the main vocal of a rock band i swear to god.
@ayushbhatnagar8091
@ayushbhatnagar8091 4 жыл бұрын
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.
@reshmithampy
@reshmithampy 3 жыл бұрын
Now I have an idea about what I am to do and not feel forced to memorize the steps
@luigiduprez7510
@luigiduprez7510 3 жыл бұрын
I would love to see more videos from him, a very nice way of explaining and visualising the concept
@erazn9077
@erazn9077 Жыл бұрын
At 8:08 shouldn’t the 4th value for the last row be 10/3 instead of 15/4? 5 + ( - 5 / 3 )
@santoshkavhar2596
@santoshkavhar2596 Жыл бұрын
Thanks so much for simplifying it so much, textbooks make it way more harder. I hope you keep making more videos
@wexwexexort
@wexwexexort 6 ай бұрын
Really nice explanation, clear and to the point.
@VietnamSteven
@VietnamSteven 2 жыл бұрын
your presentation style is really outstanding!!
@earthling123
@earthling123 Жыл бұрын
"A quick sanity check" always gets me 😂
@razamailbox
@razamailbox 4 жыл бұрын
Great Explanation, finally a video which gives some intuition Thank you!!
@elliott8175
@elliott8175 3 жыл бұрын
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
@julianocamargo6674
@julianocamargo6674 3 жыл бұрын
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"
@julianocamargo6674
@julianocamargo6674 3 жыл бұрын
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 .
@elliott8175
@elliott8175 3 жыл бұрын
@@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. =)
@faresmajed50
@faresmajed50 5 жыл бұрын
I wish you are my instructor, thank you so much for this short and concise video
@4BohrKid
@4BohrKid 4 жыл бұрын
best explanation i've seen so far.
@TheMyanka
@TheMyanka 7 жыл бұрын
Thank you, that was a brilliant explanation.
@1tokillamockingbird
@1tokillamockingbird 3 жыл бұрын
LEGEND! You can die in peace knowing that your legacy will forever save future undergrad students days before their final exam
@shershahdrimighdelih
@shershahdrimighdelih 4 жыл бұрын
Very well presented, and the jump cuts help understand things better
@lstathisplaysvideogames4906
@lstathisplaysvideogames4906 3 жыл бұрын
My guy, you just saved my ass , my professor could never
@abdulrehmanbilal958
@abdulrehmanbilal958 2 жыл бұрын
OMG This opened the doors of my thoughts.
@mouhamethfadalmarabyaidara4935
@mouhamethfadalmarabyaidara4935 7 жыл бұрын
concise and accurate explanation.Great video and thanks a lot
@markkaravan4245
@markkaravan4245 4 жыл бұрын
Amazing explanation. Not nearly enough subscribers.
@theatulupadhyay
@theatulupadhyay Жыл бұрын
Very beautifully explained.
@valentinegift3689
@valentinegift3689 5 жыл бұрын
Dude you are wonderful - really wish you'll somehow monetize your explanation skills.
@MuhsinFatih
@MuhsinFatih 6 жыл бұрын
I am experiencing mathgasm. So elaborately put. Awesome video
@atakan716
@atakan716 10 ай бұрын
awesome explanation 🎉
@ZenoDiac
@ZenoDiac 2 жыл бұрын
Beautifully explained
@whasuklee
@whasuklee 3 жыл бұрын
Such a great help! Really appreciate your work!!
@ruslanaliev2216
@ruslanaliev2216 4 жыл бұрын
best explanation of simplex ever!
@danielTkachenko0
@danielTkachenko0 7 жыл бұрын
That's a great explanation! Thanks for the video
@pacmanmaster16
@pacmanmaster16 4 жыл бұрын
Great video, you should make a comeback
@toxictime3862
@toxictime3862 4 жыл бұрын
This is awesome! Please do more
@ankitunariya3661
@ankitunariya3661 Жыл бұрын
YOU R A GENIUS ! THANKS A LOT.
@sjwang3892
@sjwang3892 3 жыл бұрын
Thanks for this great video!
@n-da-bunka2650
@n-da-bunka2650 3 жыл бұрын
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.
@Traymer7
@Traymer7 5 жыл бұрын
Perfect man! Love that you implemented theory as well!
@bakdorz
@bakdorz 4 жыл бұрын
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?
@elliott8175
@elliott8175 3 жыл бұрын
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
@estelle367 Жыл бұрын
🤓
@gat0tsu
@gat0tsu 2 жыл бұрын
very clear. amazing. wow
@mathaha2922
@mathaha2922 3 жыл бұрын
Excellent!
@vaggelismanousakis6147
@vaggelismanousakis6147 5 жыл бұрын
Simplex explained Simply. Thaks a lot
@waheebalqamar558
@waheebalqamar558 5 жыл бұрын
Man, you are the best
@saranshgokhale8298
@saranshgokhale8298 3 жыл бұрын
Very helpful, thank you!
@jared0801
@jared0801 5 жыл бұрын
thanks for the straightforward explanation
@ansyona7522
@ansyona7522 7 жыл бұрын
Thank you for sparing many hours of torture for many!!
@Physicus9
@Physicus9 7 жыл бұрын
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...
@louisholley7944
@louisholley7944 7 жыл бұрын
Michael Duffy you are correct, but fortunately here that doesn’t matter. Thanks for pointing out the mistake :)
@user-wq5lv8nx9s
@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.
@prasadkavinda1210
@prasadkavinda1210 6 жыл бұрын
thanks man. very helpful!!
@ericc6820
@ericc6820 Жыл бұрын
well said 👏
@tapobrataroychoudhury3016
@tapobrataroychoudhury3016 2 жыл бұрын
Thank you❤
@nischalsubedi9432
@nischalsubedi9432 3 жыл бұрын
@ 2.25 timestamp--did you mean s1
@elliott8175
@elliott8175 3 жыл бұрын
*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.
@crystalline2
@crystalline2 8 жыл бұрын
that was interesting, very good explanation thank you
@earthling123
@earthling123 Жыл бұрын
Thank you louis
@austinoquinn815
@austinoquinn815 3 жыл бұрын
Wow, that was great.
@iambossgetlost1395
@iambossgetlost1395 3 жыл бұрын
👌
@InvincibleAirman
@InvincibleAirman 2 жыл бұрын
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.
@lopyus
@lopyus 4 жыл бұрын
Thank you so much! =)
@ElectromecanicaIndustrial
@ElectromecanicaIndustrial 3 жыл бұрын
thank you
@Alex-op2kc
@Alex-op2kc 4 жыл бұрын
good video
@nipo4144
@nipo4144 5 жыл бұрын
why do we want the smallest ratio at 6:58?
@24mrdanny
@24mrdanny 5 жыл бұрын
I am wondering this as well...
@nipo4144
@nipo4144 5 жыл бұрын
@@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.
@javad346
@javad346 2 жыл бұрын
Thanks a lot
@thangible
@thangible 4 жыл бұрын
i love this.
@BipinOli90
@BipinOli90 7 жыл бұрын
good explanation
@shaky3
@shaky3 Жыл бұрын
thank you! you made simplex simple lol
@DlcEnergy
@DlcEnergy 7 жыл бұрын
you mean, Complex Explained
@pathfinder750
@pathfinder750 3 жыл бұрын
what a legend
@XShollaj
@XShollaj 3 жыл бұрын
Perfection
@tayyabm_edits
@tayyabm_edits 4 жыл бұрын
welcome to 2021.
@arielediang5381
@arielediang5381 4 жыл бұрын
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?
@kushb5419
@kushb5419 5 жыл бұрын
thank you!
@heoTheo
@heoTheo 6 жыл бұрын
awesome!
@antoinecolson9989
@antoinecolson9989 5 жыл бұрын
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.
@abikim3438
@abikim3438 8 жыл бұрын
from the drawing, how can i know if there is unused material or hours ?
@nandaschuch
@nandaschuch 4 жыл бұрын
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).
@ramananm6257
@ramananm6257 3 жыл бұрын
The irony is Simple is not actually "Simple"!! (The big table thing, Oh God 🤯)
@authenticstories2571
@authenticstories2571 5 жыл бұрын
great
@kevinchou4147
@kevinchou4147 5 жыл бұрын
vivid example
@almakyubi
@almakyubi 7 ай бұрын
tysm
@steven1671
@steven1671 5 жыл бұрын
That intro sound sounds familiar.... dont hug me I'm scared.
@louisholley7944
@louisholley7944 5 жыл бұрын
Steven :)
@pakonicoco
@pakonicoco 2 жыл бұрын
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?
@nils3989
@nils3989 2 жыл бұрын
you can only make a maximumof 40 chairs due to the m3 of wood available.
@pakonicoco
@pakonicoco Жыл бұрын
@@nils3989 Ohhhh thats the detail I overlooked. Thank you for pointing it out.
@clutterArranger
@clutterArranger 4 жыл бұрын
I am a computery guy.
@ilyasaroui7745
@ilyasaroui7745 6 жыл бұрын
don't click 7:01
@ПавлоЛінн
@ПавлоЛінн 4 жыл бұрын
all the trickery with divisions still not explained.
@estelle367
@estelle367 Жыл бұрын
i likz your accent
The Art of Linear Programming
18:56
Tom S
Рет қаралды 728 М.
The Simplex Algorithm
18:10
Maths Help with Mr Orys
Рет қаралды 22 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
The deeper meaning of matrix transpose
25:41
Mathemaniac
Рет қаралды 402 М.
Tovey explains the column geometry of the simplex method
16:02
Georgia Tech
Рет қаралды 25 М.
Intro to Linear Programming
14:23
Dr. Trefor Bazett
Рет қаралды 216 М.
Sliding Window Technique - Algorithmic Mental Models
36:45
Ryan Schachte
Рет қаралды 375 М.
24. Linear Programming and Two-Person Games
53:34
MIT OpenCourseWare
Рет қаралды 70 М.
What Is Mathematical Optimization?
11:35
Visually Explained
Рет қаралды 147 М.
Gradient descent, how neural networks learn | DL2
20:33
3Blue1Brown
Рет қаралды 7 МЛН
Xenon Can Be a Problem
16:04
Illinois EnergyProf
Рет қаралды 269 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН