❖ The Simplex Method and the Dual : A Minimization Example ❖

  Рет қаралды 676,626

Patrick J

Patrick J

Күн бұрын

Пікірлер: 189
@aishvetorah5704
@aishvetorah5704 8 жыл бұрын
I'm gonna make a part of graduation speech about you saving student lives.
@patrickjmt
@patrickjmt 8 жыл бұрын
+Katsuragi Keima ha, thanks :)
@georgewekesa1380
@georgewekesa1380 5 жыл бұрын
Most definately
@AsmaaMohamed-kr1dm
@AsmaaMohamed-kr1dm 4 жыл бұрын
Yesssssss he is amazing in his explanation
@Hud_Adnan
@Hud_Adnan 4 жыл бұрын
did you do it ? ( I'm just curious )
@aishvetorah5704
@aishvetorah5704 4 жыл бұрын
@@Hud_Adnan i graduated online by forced. I cried. They just show us our pictures online that we finished the course then boom done. ;_;
@runnereatscow
@runnereatscow 7 жыл бұрын
patrickJMT you saved me when I was getting my general ed math courses. Now once again, you are saving me for my Algorithms class :)
@peteshramkop.e.4211
@peteshramkop.e.4211 4 жыл бұрын
Awesome job mate. It’s been 20 years since I looked at LP since grad school... who knew it would become so relevant to everything we do today 🧐
@vishalchoure1993
@vishalchoure1993 8 жыл бұрын
This was so much easier to understand here than in school. Thank you :)
@nikkovincegonzales2758
@nikkovincegonzales2758 6 жыл бұрын
I chose Y2 as the pivot column in the initial table and got the result in the next iteration. Got lucky I guess, thanks Pat. Your method is faster than the one we were taught.
@rajuacharya7839
@rajuacharya7839 3 жыл бұрын
I really love your working style. Its so simple and easy to understand. Thank you for this video. Love from 🇳🇵 Nepal
@heavencalling3808
@heavencalling3808 3 жыл бұрын
I've really understood the whole process it's much easier. The fact that I've not seated in any lectures for this semester because of lockdown and no meeting but I've understood as though I was in class and paharps much better than in class. Thanks 🤝🤝🤝🤝🤝
@vinayaknayak6383
@vinayaknayak6383 8 жыл бұрын
Thanks a lot for making this video, Patrick!!Just one suggestion, if in the first step, you select the element in the second column or the second column's -8 as the pivot column, then you directly land up at the final matrix (17:50 in the video).
@nuElevenGG
@nuElevenGG 8 жыл бұрын
thanks! i'm sure a lot of people will find this helpful. maybe you can do a video on the geometric interpretation of the simplex method?
@rajendramisir3530
@rajendramisir3530 3 жыл бұрын
Thanks Patrick. Nice review for me. I learned about the Simplex method in Finite Mathematics 28 years ago in College.
@iqrandiamalik2881
@iqrandiamalik2881 3 жыл бұрын
Loved it😊 even after 5 years, it still helped
@gogvale
@gogvale 4 жыл бұрын
I have no idea why this works, but thanks. You just saved me from my exam tomorrow ♥
@iDramex
@iDramex 4 жыл бұрын
after finishing Math courses I lost hope of seeing you again until I came across this video in an operations research course.
@hencodelange9289
@hencodelange9289 3 жыл бұрын
I just caught up a week of class 2 hours before the test, thank you
@Graywolf116
@Graywolf116 8 жыл бұрын
Came looking for insight into Dual vs Primal problems for ML hw, left with a greater respect for LinAlg and an idea how row ops can be made into an algorithm. Thanks!
@xoppa09
@xoppa09 7 жыл бұрын
it would be nice to put all the simplex videos into one playlist. nice video ;p
@tobyto4614
@tobyto4614 4 жыл бұрын
I read the brilliant's steps on performing this, it is trying to solve it from bottom to top, which is hard to understand. This one explains it very clearly on how the operations go. :D
@austinfairris4332
@austinfairris4332 8 жыл бұрын
Awesome video. Can I ask when youre turning the problem into a maximization and taking the transpose, what if the matrix is not square like it is here? Will it still work if say we take a 5x3 matrix and transpose it into a 3x5? Thanks
@mercymwanza7715
@mercymwanza7715 4 жыл бұрын
😄😄I like where you say this is fun😆 it is fun when you know what you are doing, just like my lecturer always says,"have the confidence. "
@notmimul
@notmimul 4 жыл бұрын
I really like your energy and way of explaining it. from A-Z
@avaolsen1339
@avaolsen1339 4 жыл бұрын
Great video, Thank you! Question: at 19:52 you said the goal is to have zeros everywhere else. once you get rid of negative numbers, you would get a solution. Could you please clarify on that? what do you mean by 'have zeros everywhere else'? thank you.
@tutsyb26
@tutsyb26 7 жыл бұрын
You are the definition of a life saver..thank you Patrick!
@comfortinnsuitesmiller6588
@comfortinnsuitesmiller6588 5 жыл бұрын
Thank You So Much For Making Videos. it helps a lot to understand complex problems.thank you so much sir..
@jaysorenson2662
@jaysorenson2662 8 жыл бұрын
I first used this technique back in 1968. Used it to solve resource allocation in banking. One can also use it for goal seeking.
@pootlovato8285
@pootlovato8285 8 жыл бұрын
Thats so cool how applicable this method is, why i love matrices. It was first used in 1947 when there was a scheduling problem with the Berlin airlift
@warank
@warank 8 жыл бұрын
that was even an easy explanation for a high-schooler(which is me) thanks a lot
@patrickjmt
@patrickjmt 8 жыл бұрын
glad i could help!
@alejandroservin1432
@alejandroservin1432 Жыл бұрын
I had an economics teacher who says y1 the way you do, god does that really urk me 😅
@tobiaskaufmann5205
@tobiaskaufmann5205 4 жыл бұрын
Why are you writing 1 at 2:05 when later in the simplex starting table you replace it with 0 after transposing the matrix? (as it produces the wrong solution when you don't writ 0 instead of 1)
@Hoo852r
@Hoo852r 7 жыл бұрын
you are an ass saver I swear!! nothing got me through hard major courses but your videos ! THANK YOU !!
@patrickjmt
@patrickjmt 7 жыл бұрын
pjmt, the ass saver.
@hassanhashemi6478
@hassanhashemi6478 8 жыл бұрын
dude, i love you.
@AbdulraufuMashaka
@AbdulraufuMashaka 2 ай бұрын
Another example please 🥺
@小小豬-u3f
@小小豬-u3f Жыл бұрын
Correct me if I was wrong. Since every row of P column is always 0, so no matter what oprations it has been done, the last row is always 1, (there are no cases that the last row will be chosen as the "pivot row" and apply it opration to the other rows), which means, this column is completely useless and therefore could be omited.
@manojkumarhk5696
@manojkumarhk5696 7 жыл бұрын
When you took X1 and X2 as slack variables, how did you choose the corresponding inequality? Because if we exchange X1 and X2, I might get X1=0 and X2=8; which can't be right!
@shereenzalloum6909
@shereenzalloum6909 8 жыл бұрын
Patrick your such a life saver omg 😭 can you please make a video about the two-phase method & Big M method? please please please my exam is on the 20th.
@patrickjmt
@patrickjmt 8 жыл бұрын
i will look into them!
@shereenzalloum6909
@shereenzalloum6909 8 жыл бұрын
I would really appreciate! I don't understand from my teacher because I moved to a country that doesn't speak English and I don't understand half the things he says... anyways thank yooouuuuu Pat! :D
@amyl3766
@amyl3766 5 жыл бұрын
Bless you and your family.
@redjon0999
@redjon0999 4 жыл бұрын
OMG now i am clear. thank you so much bro,
@muathkawther662
@muathkawther662 8 жыл бұрын
Question.. in the maximization problem videos you said that we should write the slack variables also on the left side of the matrix as we solve the problem, and change/replace them accordingly whenever we perform any operation during our solution.. why didn't you do the same thing in this minimization problem??
@waleedahmed5708
@waleedahmed5708 8 жыл бұрын
Muath Kawther yah I had the same question
@uhavebeen
@uhavebeen 8 жыл бұрын
I had the same question as well, I think maybe because it's a dual problem/maximization it's different?
@bhangi
@bhangi 7 жыл бұрын
can someone answer thsi question? please?
@atkinsonmachingauta4034
@atkinsonmachingauta4034 7 жыл бұрын
I think the same process still applies, only that here he was not really concerned with writing the slack variables since its a dual problem. This therefore means that even if we solve the problem, it is easy to identify the replacement that was supposed to be done because its an either or situation.
@athanasiakaragianni1447
@athanasiakaragianni1447 7 жыл бұрын
so what is the actual solution? the one he did or the one with the other way he showed in the previus videos?? (8,0,8,0) or (0,3,0,3) ?
@scottsimpkins7894
@scottsimpkins7894 5 жыл бұрын
I think the last step should result in x1 = 10 and P = 30. With that -2 hanging around under x1 you never get an x1, x2 unity matrix. If you don't mind clarifying...thank you.
@purpleboxersrocks
@purpleboxersrocks 8 жыл бұрын
I wish you were my lecturer because I'll definitely get what you were saying. Provided of course, if the whiteboard was a zoomed in screen of your hands and sharpie markers instead xD
@badAtPickingUsernames1988
@badAtPickingUsernames1988 3 жыл бұрын
8:28 Are there any circumstances where you don't take the smaller value? I saw an example done where it is a minimization problem and it had -32 and 30 in the rightmost column and in the pivot column it had -1 and 5 respectively with 5 in the bottom row. They didn't even explain why they just said you use -1. But 6 < 32. Did they just make a mistake?
@robiyonas1401
@robiyonas1401 2 жыл бұрын
Why in the other video the values corresponding to the variables were the constants at the outer right of the matrix, but in this video, the variables correspond to the last row.
@EN-yn2zx
@EN-yn2zx 4 жыл бұрын
If pivot is in 2nd row, then do we have to turn the number under it into zero? Or the one above it as well?
@shsabre5874
@shsabre5874 7 жыл бұрын
I just wonder after you find the most negtive element during the simplex process, what if there is a negative constant exist. should I pick that the most smaller number? or only smallest divided positive constant is my next target?
@jasminebactat2436
@jasminebactat2436 4 жыл бұрын
what if the matrix you want to transpose is not square? can we just add another variable like Y3?
@harrisonfok8267
@harrisonfok8267 6 жыл бұрын
Yo man thanks for saving my life lol Was stuck on this yesterday for so long
@invictus_1245
@invictus_1245 5 жыл бұрын
Thank you man, you make this stuff so easy why does my teacher over complicate these problems?
@karelsurya4809
@karelsurya4809 3 жыл бұрын
i just realized that he is a lefty lol. kinda satisfying to watch that left hand move around
@bram3205
@bram3205 5 жыл бұрын
5:23 "it turns out thats what you wanna do" Why? I don't understand why all of this works this way..
@MiaowJahat
@MiaowJahat 5 жыл бұрын
he said that he already did 5 videos about that part. so, watch that videos first, ok?
@Plagger
@Plagger 4 жыл бұрын
@@MiaowJahat what if u had 3 variables at the initial minimization problem? u wouldn't be able to fit in a 3rd x3, in the new maximization problem. i also didnt get it
@sajanamethsarakulathunga243
@sajanamethsarakulathunga243 4 жыл бұрын
you are a hero man ...i love youuuuuuuuu
@tonyuriano4469
@tonyuriano4469 2 ай бұрын
why is the C value assumed to be 1 and not 0 when filling out the initial tableau? I believe this is an oversight...
@TheMuteBoy
@TheMuteBoy 2 жыл бұрын
Alhamdulilah thank you so much sir
@luzongomaybinmumbuwa2114
@luzongomaybinmumbuwa2114 6 жыл бұрын
wonderful presentation
@saifullah4127
@saifullah4127 4 жыл бұрын
@patrickJMT please check the solution of the dual program, you got y=(8,0) which is not satisfying constant 1 of the dual problem.
@pramoudaya7432
@pramoudaya7432 6 жыл бұрын
can you explain with 3 variables with greater than equal constraints please?
@my_religion
@my_religion 3 жыл бұрын
What if the smallest ratio is negative? should we take the row with the least positive ratio?
@madeIeine
@madeIeine 7 жыл бұрын
Okay, around 8:48 how about when it's 3 instead of two? Will I still use 1/2? Or not?
@jurajhlavek7742
@jurajhlavek7742 6 жыл бұрын
u would divide it by 3 (1/3). What you need is to get number 1 as pivot, so if you would have there for example 16, you would divide whole row by 16 (1/16)
@featheredice
@featheredice 8 жыл бұрын
11:18 Kinda confusing, I think you mean three halves plus nine :)
@GustavoGarufi
@GustavoGarufi 8 жыл бұрын
Another question that I've been left wondering, what is the difference between this dual simplex method and the regular simplex method?
@ahmedyasser9639
@ahmedyasser9639 6 жыл бұрын
Reqular we search in in objective function for a pivot column, dual we search for the pivot row from the constrain R..H..S
@ferdaozdemir
@ferdaozdemir 5 жыл бұрын
@@ahmedyasser9639 Yes, but why do we take that effort. Why do not use just regular simplex? What is the advantage of converting simplex problem to dual and solving it? I am also trying to understand this.
@mounaamouna2459
@mounaamouna2459 4 жыл бұрын
@@ferdaozdemir we use the dual method to transform the lpp from its current form to the standard form then we can use the algorithm of simplexe and solve the rest of the problem
@mounaamouna2459
@mounaamouna2459 4 жыл бұрын
i hope i said it correctly and clearly
@rajendramisir3530
@rajendramisir3530 3 жыл бұрын
@@mounaamouna2459 I think you stated that fact correctly.
@ssuriset
@ssuriset 3 жыл бұрын
Wait.. so in the dual simplex, you don't have to keep track of your pivot value's column label (on the leftmost of the pivot) and switch it with its row label (on the topmost of the pivot)?
@brandonc4346
@brandonc4346 5 жыл бұрын
you are the best , god bless you
@rimaben2120
@rimaben2120 5 жыл бұрын
Very well explained, thank u! But what if wheb choosing pivot befor deviding and comparing, what if we have to choose between 5/2 and b 7/0 for axample?! Is this case possible to face..
@lasharistudio8878
@lasharistudio8878 7 жыл бұрын
Please tell advantages and disadvantages of simplex method
@nyahhbinghi
@nyahhbinghi 2 жыл бұрын
isn't there a way to run minimization without transposing and using the dual? Would be nice to address that.
@fidelio2281
@fidelio2281 5 жыл бұрын
After u transposed the minimazation problem into maximazation, at the time u want to get zeros on your pivot column, why dont u exhange variables at the left of the tableu as you did every time in your video with the maximazation problem ? It will be a blessing if u answer as quick as you can.
@allyanamanabat7323
@allyanamanabat7323 5 жыл бұрын
Is the regular and this dual simplex method the same? I mean does they point out to one answer???
@Mallorque40
@Mallorque40 8 жыл бұрын
Can you talk about the Kuhn and Tucker theorem?
@amodingteddy1877
@amodingteddy1877 4 жыл бұрын
Thank you🥰🥰🥰🥰
@o.biertrinker9649
@o.biertrinker9649 6 жыл бұрын
I don't know why I find duality so fascinating, as it were more than mathematics, rather art!!
@fiorella5717
@fiorella5717 8 жыл бұрын
Could you please tell me what is the goal to change it to maximization?, thanks!
@MacPSPpro
@MacPSPpro 8 жыл бұрын
Because the simplex method works only for maximization I think
@Skandalos
@Skandalos 4 жыл бұрын
@@MacPSPpro multiplying the objective function by -1 and then maximazing it seems less work than this dual method.
@shabbirsaifee7497
@shabbirsaifee7497 7 жыл бұрын
Hey, what if there is equality instead of inequalities. How to apply the method in those case?
@stephenholmes9386
@stephenholmes9386 7 жыл бұрын
I'm pretty sure you've messed up but got lucky? You've chosen the slack variables to be the values of x1 and x2... Is that right?
@Qwevo8
@Qwevo8 2 жыл бұрын
Thanks so much...
@RohanSharma-tf3fn
@RohanSharma-tf3fn 5 жыл бұрын
My question have 3 variables 2 constraints so the matric is 3x4 transpose is 4x3 idk what to do
@xaoc2nd
@xaoc2nd 7 жыл бұрын
Hello, why don't you use slack variables? And why don't you read your x1 and x2 as the maximization in your table?
@xaoc2nd
@xaoc2nd 7 жыл бұрын
Oh i understood, that's because you use the dual method to make it more easier
@hbbn6281
@hbbn6281 8 жыл бұрын
Thank you very much.
@patrickjmt
@patrickjmt 8 жыл бұрын
you are very welcome!
@balthazar500
@balthazar500 7 жыл бұрын
Thank you, you're a Godsend!
@ezioauditore4109
@ezioauditore4109 9 ай бұрын
watching a day before finals
@johnberry6077
@johnberry6077 4 жыл бұрын
Anybody can "jump in" and answer this, if they know the answer. [question]: When you get to the part where he does the _transpose,_ he was working with a _Square Matrix,_ from which a _transpose_ can be formed, very nicely. If, instead, at that step, he had to _transpose_ a *non-* _Square Matrix,_ would his method (for converting a *minimize* problem into a *maximize* problem) still work?
@johnberry6077
@johnberry6077 4 жыл бұрын
I think I figured out what you would do *if* the original _minimization_ problem had more than *2* constraint equations. Let's suppose that the original _minimization_ problem had *15* constraint equations. According to the three possible *row operations* rules, you could identify *14* (of the *15* ) constraint equations, add them all together into a _single_ constraint equation, and then you would have _only_ *two* remaining constraint equations (which would fit into the form of being the 2-by-2 _Square Matrix_ that he _transposes._ )
@christinastanley3938
@christinastanley3938 4 жыл бұрын
Thank you very much :) !
@patrickjmt
@patrickjmt 4 жыл бұрын
You're welcome!
@victoriacharalambous6977
@victoriacharalambous6977 3 жыл бұрын
thank you so much!!!!!!
@sarahnjoki1655
@sarahnjoki1655 7 жыл бұрын
what happens when the constant on the right hand side becomes negative
@seankennethumali4382
@seankennethumali4382 6 жыл бұрын
What if there are three constraints? It would look like there are 3 x1, x2, x3
@randal-ashqar2103
@randal-ashqar2103 4 жыл бұрын
I need your help, I have homework about dual and primal simplex i cant do it
@eliteeconomics3158
@eliteeconomics3158 6 жыл бұрын
what kind of simplex method is this?
@cgsshshh4255
@cgsshshh4255 7 жыл бұрын
can we convert the objective function to max by multiply it by negative 1
@audryk.7825
@audryk.7825 6 жыл бұрын
that's what I thought
@Skandalos
@Skandalos 4 жыл бұрын
Whats the advantage of this? Why not just solve the primal problem? Seems just more work to me.
@IKIN_10
@IKIN_10 4 жыл бұрын
Can someone please explain why do we use duality in the first place?
@SequinBrain
@SequinBrain 3 жыл бұрын
five years too late, but there wasn't the basic variables to the left which were entering and leaving, even though I saw them on your scratch sheet. I was able to figure out what they were anyway.
@NejatMolla
@NejatMolla 7 жыл бұрын
Came here looking for copper. Found GOLD
@sandrasurendran5068
@sandrasurendran5068 3 жыл бұрын
Thanks a lot !!!
@bayanalsaraireh4037
@bayanalsaraireh4037 7 жыл бұрын
thank you so much .
@Alexandrusg
@Alexandrusg 7 жыл бұрын
I did everything exactly how you did but my professor said its not a right method to get your X1 and X2?
@mrsamot4677
@mrsamot4677 4 жыл бұрын
Yeah I thing it's because he used x1, x2 names for his slack variables. I think he should have used his y1, y2 Vals. Can anyone else confirm?
@addisuberhanuofficial1829
@addisuberhanuofficial1829 3 жыл бұрын
Wow good job
@josefsamik3859
@josefsamik3859 7 жыл бұрын
the slakes of the dual are the solutions of the primal ? how ?
@jon7960
@jon7960 6 жыл бұрын
Not sure if you actually care anymore since you posted this 5 months ago, but there is a theorem called the Duality Theorem that states and proves this.
@desmondmaluleke3484
@desmondmaluleke3484 8 жыл бұрын
im confused,,why are you doing maximization while the question is requesting you to calculate minimization?????
@VonDutchyy
@VonDutchyy 8 жыл бұрын
Yeah but he has turned a minimization question into a maximization to make it easier by transposing the matrix, the result is the same
@lolaalsaadi5708
@lolaalsaadi5708 7 жыл бұрын
Thanks a lot , actually i want to know how to use MM algorithm with phase noise
@macmoore5452
@macmoore5452 8 жыл бұрын
why is the slack variable in this the same as the original variable, why not the usual s1, s2
@macmoore5452
@macmoore5452 8 жыл бұрын
also the way you pick your x1 and x2 is different from the way we pick them in the previous example(maximization example)
@ScepticalElephant
@ScepticalElephant 5 жыл бұрын
why is'nt x(2) 3?
@wheyllch2858
@wheyllch2858 7 жыл бұрын
why did you pick the most negative values when it's a mximization problem ?
@rimaben2120
@rimaben2120 5 жыл бұрын
Bcz He multiplied the maximization equality by -1
@yigitsevim1516
@yigitsevim1516 6 жыл бұрын
hocam 18.46 da ne yaptınız hocam?????
@awayggamer
@awayggamer 7 жыл бұрын
hi what about i'm blank about this Max z=x1+x2+x3+x4 subject to x1+x2
@axelfarias3
@axelfarias3 5 жыл бұрын
X1 = 5 x2= 0 X3= 2 X4=1
❖ The Big M Method : Maximization with Mixed Constraints ❖
35:48
Simplex Explained
10:01
Louis Holley
Рет қаралды 78 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Linear Programming (Optimization) 2 Examples Minimize & Maximize
15:08
Mario's Math Tutoring
Рет қаралды 624 М.
Simplex Method-Minimization Problem-Part 1
6:03
Dr D’s Math Help
Рет қаралды 131 М.
The Art of Linear Programming
18:56
Tom S
Рет қаралды 726 М.
Intro to Simplex Method | Solve LP | Simplex Tableau
12:40
Joshua Emmanuel
Рет қаралды 507 М.
Part 1 - Solving a Standard Maximization Problem using the Simplex Method
7:16
Intro to Linear Programming
14:23
Dr. Trefor Bazett
Рет қаралды 215 М.