Intro to Linear Programming

  Рет қаралды 179,261

Dr. Trefor Bazett

Dr. Trefor Bazett

Күн бұрын

This optimization technique is so cool!!
Get Maple Learn ►www.maplesoft.com/products/le...
Get the free Maple Calculator for your phone►www.maplesoft.com/products/ma...
Play around with the exact Maple Learn document I use in the video ►learn.maplesoft.com/#/?docId=...
Play around with the Maple Learn document I use in the video ►learn.maplesoft.com/index.htm...
In this video we explore the idea of Linear Programming, which is an extremely powerful constrained optimization technique. It involves maximizing or minimizing a linear function with constraints a list of linear inequalities. The feasible region is all points satisfying those inequalities, and the big question is which points in the feasible region (which looks like a polygon) give the optimum values? The big idea of linear programming is that the optimal values occur at the vertices, that is where the iso-value line first touches the polygon.
0:00 Linear Programming
1:31 The Carpenter Problem
4:20 Graphing Inequalities with Maple Learn
5:45 Feasible Region
8:29 Computing the Maximum
10:36 Iso-value lines
13:15 The Big Idea
MY DIFFERENTIAL EQUATIONS PLAYLIST: ► • Ordinary Differential ...
Open Source (i.e free) ODE Textbook: ►web.uvic.ca/~tbazett/diffyqs
OTHER COURSE PLAYLISTS:
►DISCRETE MATH: • Discrete Math (Full Co...
►LINEAR ALGEBRA: • Linear Algebra (Full C...
►CALCULUS I: • Calculus I (Limits, De...
► CALCULUS II: • Calculus II (Integrati...
►MULTIVARIABLE CALCULUS (Calc III): • Calculus III: Multivar...
►VECTOR CALCULUS (Calc IV) • Calculus IV: Vector Ca...
►LAPLACE TRANSFORM: • How to solve ODEs with...
OTHER PLAYLISTS:
► Learning Math Series
• 5 Tips To Make Math Pr...
►Cool Math Series:
• Cool Math Series
BECOME A MEMBER:
►Join: / @drtrefor
MATH BOOKS & MERCH I LOVE:
► My Amazon Affiliate Shop: www.amazon.com/shop/treforbazett
SOCIALS:
►Twitter (math based): / treforbazett
►Instagram (photography based): / treforphotography

Пікірлер: 257
@DrTrefor
@DrTrefor 3 жыл бұрын
**TYPO** At 13:16 when I introduce the Big Idea I call the region concave when I mean convex!!!
@SAAARC
@SAAARC 3 жыл бұрын
I was wondering what a convex region would look like and I see this comment lol
@georginamuluki2134
@georginamuluki2134 2 жыл бұрын
Okay....I understood, thank you
@imranq9241
@imranq9241 2 жыл бұрын
Nice, i was just confused about that and see that now
@chibby0ne
@chibby0ne 2 жыл бұрын
Your enthusiasm is contagious and the way you presented the example, then the intuition and later the more formal geometric solution felt so much simpler than parsing the Wikipedia article. Thanks a lot!
@ikersanchez8222
@ikersanchez8222 2 жыл бұрын
It would be great to have a series of this topic. You would actually help a lot of not only math students, but those who are involved with economics, accountability, tourism, engineering, actuarial and computer sciences. Great video, Dr. Trefor!
@ningxinzheng4382
@ningxinzheng4382 Жыл бұрын
Thank you Dr. Trefor, I was so confused in the lecture, your video is so nice and clear!
@MrRomulocunha
@MrRomulocunha 3 жыл бұрын
you channel is absolutely amazing, just wanna say i learn so much from watching it. thx for sharing your knowledge.
@DrTrefor
@DrTrefor 3 жыл бұрын
Glad you enjoy it!
@much-love-
@much-love- Жыл бұрын
Great explanation, and I can see you're passionate about this / about math, which is awesome!! Keep doing what you love and teaching with passion
@michaljaros1380
@michaljaros1380 2 жыл бұрын
Great explanation, you saved my studies today. Please, keep making videos
@dilipbarman9322
@dilipbarman9322 5 ай бұрын
What a cool video! I'm introducing linear programming to my algebra students in 2 days and including a link to your nice video. I'm glad that I found your resources!
@tuongnguyen9391
@tuongnguyen9391 3 жыл бұрын
I hope professor Trefor Bazett could cover Convex Optimization in the future. Study with him is really energetic and engaging
@WRpauldirac
@WRpauldirac 20 күн бұрын
Amazing explanation! Just to point out that at 9:54 the actual value of f(0, 10) is not equal to 1800 but to 2000, having f(x, y) = 180x + 200y. Just a simple variable confusion. Thanks for this clear introduction to LP, Dr. Trefor.
@ronhernandez8857
@ronhernandez8857 2 жыл бұрын
this is amazingly simple in comparison to what i was looking for which is the actual simplex algorithm
@dariuszspiewak5624
@dariuszspiewak5624 2 жыл бұрын
A convex shape is one where each two points belonging to the shape can be connected with a straight line fully contained in the shape.
@IMadeOfClay
@IMadeOfClay 3 жыл бұрын
Brilliant video. Thank you professor!
@DrTrefor
@DrTrefor 3 жыл бұрын
Glad you liked it!
@nubainnoob8419
@nubainnoob8419 Жыл бұрын
Coming from an economics background this makes so much sense. I now know the math behind the concept of equilibrium 😄
@vuraxis953
@vuraxis953 3 жыл бұрын
As cool as simplex is in concept, carrying it out is the most mind-numbing thing I've ever had to do in maths by miles
@DrTrefor
@DrTrefor 3 жыл бұрын
Haha that is true. But tbh when actually done in practice we're just to program it into the computer and get them to compute out the vertices.
@vuraxis953
@vuraxis953 3 жыл бұрын
@@DrTrefor yeah unfortunately A level further maths doesn't seem to appreciate that lmao. It doesn't go into stupid amounts of detail in the A level but I have had to do a two-stage simplex with 4 variables and 4 constraints in the past, which took me about 40 minutes to do the one question, it was pure suffering
@avanishparmessur5032
@avanishparmessur5032 Жыл бұрын
@@vuraxis953 same for some uni courses. you have to do it manually
@vuraxis953
@vuraxis953 Жыл бұрын
@@avanishparmessur5032 yup, I'm on the MMORS scheme at Cardiff now because I wanna go into stats and they have no maths and stats course without OR, and the OR modules do unfortunately have simplex in. Not looking forward to revisiting it
@avanishparmessur5032
@avanishparmessur5032 Жыл бұрын
@@vuraxis953 interesting, im at cardiff too in data sci :)
@tanmaysharma3869
@tanmaysharma3869 2 жыл бұрын
This was really helpful. Thank you so much!
@reubensolomon4162
@reubensolomon4162 Жыл бұрын
U're the best. U just save me hours of head breaking maths
@iloveutubealotandmor
@iloveutubealotandmor 9 ай бұрын
Great explanation. Please keep up the good work
@yeetonykp4569
@yeetonykp4569 2 жыл бұрын
I took a linear programming in uni years ago. I get a pass then that's it. Now watching your video I truly know what it is about. Thanks.
@MossesRoss
@MossesRoss Жыл бұрын
Just wanted to say you're a wonderful teacher
@StokesburyUSA
@StokesburyUSA 6 ай бұрын
Wonderful explanation. Thank you for the video.
@eoncatalyst
@eoncatalyst Жыл бұрын
Finally, a good video on the topic!
@anatolystrashkevich7621
@anatolystrashkevich7621 2 жыл бұрын
very comprehensive, thank you
@axisepsilon514
@axisepsilon514 3 жыл бұрын
Holy shit, thank you! Had to take one in my senior year anyways, might as well just preview for fun
@prashanthkumar0
@prashanthkumar0 2 жыл бұрын
really great video on the concept
@user-or7ji5hv8y
@user-or7ji5hv8y 3 жыл бұрын
Great explanation!
@vickdeem
@vickdeem 11 ай бұрын
Amazing! Nice explanation.
@Ender7j
@Ender7j Жыл бұрын
This sounds more like graphical solutions of 2-decision variable LP problems. The simplex method requires conversion of the LP to standard form among other things I'm about to learn today in class. For those watching this and reading here, the cornerpoint method he shows is super easy. Find the x/y intercepts of each corner of the region, plug those (x,y) values into the objective function and find your MIN/MAX value from that table. Great video nonetheless! Thank you
@vinayajoseph7025
@vinayajoseph7025 2 жыл бұрын
Loved your lecture and your T-shirt
@rakhshandamujib2793
@rakhshandamujib2793 2 жыл бұрын
My teacher was talking about how we shift from vertices to vertices and also about some slack variables. Do you have a video for that, Sir?
@zamzam9031
@zamzam9031 2 жыл бұрын
This is really awesome....thanks!
@dlerosman6183
@dlerosman6183 3 ай бұрын
Thanks for the nice explanation.
@mohamudmohameddaar48
@mohamudmohameddaar48 4 ай бұрын
Free Great lesson, Thank you
@thomasLMK
@thomasLMK Жыл бұрын
Very clear in explanation.
@ogunsadebenjaminadeiyin2729
@ogunsadebenjaminadeiyin2729 3 жыл бұрын
You really did justice to this topic in a brief time.
@DrTrefor
@DrTrefor 3 жыл бұрын
Thank you!
@charlieobimbo8310
@charlieobimbo8310 2 жыл бұрын
7:50 Actually all of the wood and all the labor does not always give one the optimal solution. This depends on the slope of the optimization function. Thus one needs to check all the corner points, except for the origin. In this case the corner points are: (0,10); (40/3, 10/3); (16,0) If the Optimization function is: a) 2y + 3x then the optimal point is (16, 0) b) 3y + x then the optimal point is (0, 10) Professor Charlie Obimbo
@lukewitherow6380
@lukewitherow6380 2 жыл бұрын
Yeah and you can’t have 10/3 tables
@mumujibirb
@mumujibirb 11 ай бұрын
ILP should be used here
@charlieobimbo8310
@charlieobimbo8310 11 ай бұрын
@@lukewitherow6380 Exactly!
@mathapelongwepe2652
@mathapelongwepe2652 Жыл бұрын
The only linear programming tutorial that made sense🙌
@sitarabatool585
@sitarabatool585 2 жыл бұрын
great job! nice teacher
@nourhisham3432
@nourhisham3432 2 жыл бұрын
LOVE THIS VIDEO💗💗💗
@yash1152
@yash1152 3 жыл бұрын
7:00 4 vertices - due to 4 constraints 11:13 anhhh, the concept of *iso-line* is cool - i wanted some similar line/curve too when i was studying this chapter (Senior School) but didnt spend much time to think it out. But yeah, it makes many things much easier to communicate too.
@DrTrefor
@DrTrefor 3 жыл бұрын
So often this is taught purely algorithmically, but the geometric idea is so cool!
@imranq9241
@imranq9241 2 жыл бұрын
Given any set of constraints are there algorithms that can calculate the optimal point efficiently using simplex geometry ?
@xolanikhumalo9267
@xolanikhumalo9267 2 жыл бұрын
nice vid!very informative
@jaikumar848
@jaikumar848 3 жыл бұрын
Great video sir! Are you planning to make more videos on linear programming?
@DrTrefor
@DrTrefor 3 жыл бұрын
Thank you! Yes, I do plan to! And move a bit more broadly into different optimization techniques (example discrete as well). However, I'm back to differential equations videos for the next few before I can do that.
@rahulnarasimhan1669
@rahulnarasimhan1669 Жыл бұрын
Love your shirt, where'd you get it from?
@TravisDawkins
@TravisDawkins 2 жыл бұрын
Great Video. I had to Subscribe!
@Alex-xh9kv
@Alex-xh9kv 2 жыл бұрын
You explained it far better than my college professors...16 years ago....
@DanielTysonM
@DanielTysonM 2 жыл бұрын
Thanks for the introduction! I find this fascinating, so have picked up Robert J. Vanderbei's book on Linear Programming. Though, I would love to know more from you as well - it would be a nice support to the material. Do you have any other videos, or are you planning to make some in the future? :)
@DrTrefor
@DrTrefor 2 жыл бұрын
I don't have more yet, but I plan to update this into a series at some point!
@earthtotracee
@earthtotracee Жыл бұрын
@@DrTrefor I hope you do more of these soon!!
@jzcpan
@jzcpan Жыл бұрын
Is there a video explaining for LP problems with >3 variables? The graph visualisation method would be extremely difficult with more variables. Thanks!
@proHannuTorrekens
@proHannuTorrekens Жыл бұрын
Only in this case is the middle point maximum. It is very possible that the maximum actually lies on the axis. If the Isoprofit line has a steep enough slope max will be at y=0. If it's almost horizontal then max will be at x=0.
@kyloren2373
@kyloren2373 2 жыл бұрын
A give the perfact examples for one to understand each and every bit of topic you introduce.🙏
@christianevans5471
@christianevans5471 2 жыл бұрын
Any suggestions on where to find more videos on Linear Programming and the Simplex Method? I attend Valdosta State University in Georgia. We have a course dedicated to going beyond this topic which is called Operations Research. The professor is encouraging of Data Science. We've covered this, slack variables, Tableau method, Anti-cycling rule, 2-Phase Simplex Algorithm for the 1st exam. Later we go on to learn MATLAB & R language.
@anunknowncommenter7013
@anunknowncommenter7013 2 жыл бұрын
How did he get the value of two Y??? 20- 5 divide 4 times x 10- x divide 2
@asrajan55
@asrajan55 Ай бұрын
I love the t-shirt! Where can I get one?
@nosms6581
@nosms6581 8 ай бұрын
I have a question Dr. Brazzet why we need to construct a branch of knowledge i.e linear programming to deal with optimization problem when we have calculus methods like derivatives and Lagrange multiplier etc...
@Sara-oy6ly
@Sara-oy6ly Жыл бұрын
Best explanation thanks 😊
@leonardoluistorresvillegas6443
@leonardoluistorresvillegas6443 3 жыл бұрын
I just have to say, excellent, this video is excellent
@DrTrefor
@DrTrefor 3 жыл бұрын
Thank you!!
@jimbojones8713
@jimbojones8713 Жыл бұрын
amazing, thank you!
@whitehorsejason
@whitehorsejason 2 жыл бұрын
Where did you get that awesome shirt?
@PatiliCanlar31
@PatiliCanlar31 2 жыл бұрын
How can I find the shirt you are wearing? I love it
@lailaabidi5734
@lailaabidi5734 Жыл бұрын
السلام عليكم. اشكرك على الدرس. Alsalaam Alikum.. Thank you.
@christinalafaber5060
@christinalafaber5060 11 ай бұрын
Great video ❤❤
@fugoogle_was_already_taken
@fugoogle_was_already_taken 3 жыл бұрын
You sir, are a lifesaver. Already saved me on multivariable calculus last semester, now saving me on optimization. Thank you!!
@DrTrefor
@DrTrefor 3 жыл бұрын
So glad I could help!
@skripten6189
@skripten6189 2 жыл бұрын
Excuse me sir, where did you get your tshirt from? I want it :)
@jordanbarry3212
@jordanbarry3212 2 жыл бұрын
Really nice presentation and great production. It appears that you refer to the region as concave, but I'm not sure that is correct. I believe it should be convex since the set of all feasible solutions should form a convex set. Additionally, I don't think you can guarantee solutions in the way you presented in a concave region of the plane.
@rayondaitel
@rayondaitel 2 жыл бұрын
I love your shirt 😂 thank you for the lesson :D
@tivokio
@tivokio 8 ай бұрын
Thank you! Preparing for a college course after 10 years of not doing math...I have 2 months to prepare haha, wish me luck!
@swayamkumarpatro776
@swayamkumarpatro776 3 жыл бұрын
Thank you sir... You are always there at the right time for me....🙂
@swayamkumarpatro776
@swayamkumarpatro776 3 жыл бұрын
I wanted lectures on Linear programming and fortunate that you have made lectures sir.... Thank you
@DrTrefor
@DrTrefor 3 жыл бұрын
Glad to hear that!
@wjrasmussen666
@wjrasmussen666 Жыл бұрын
Can you suggest books that might have this type of problems?
@krishnavbajoria7742
@krishnavbajoria7742 2 жыл бұрын
Thank you!!
@ossahmadrezaazimikohnabi5108
@ossahmadrezaazimikohnabi5108 3 жыл бұрын
I love you're T-shirt 😂
@ossahmadrezaazimikohnabi5108
@ossahmadrezaazimikohnabi5108 3 жыл бұрын
@Wilson Go Yeah 😂 but believe it or not here in Iran we learn these things in highschool! I was so happy when I realized I don't need any college algebra course or precalculus when started to learn online.
@Klarpimier
@Klarpimier 2 жыл бұрын
*your I’ve never seen it go the other way
@owendebest4183
@owendebest4183 3 жыл бұрын
I WANT YOUR T SHIRT!!! I LOVE IT
@DrTrefor
@DrTrefor 3 жыл бұрын
Haha I love it so much:D
@galitna
@galitna 2 жыл бұрын
Hi, where did you get the figures from your solution at 8:58? thanks
@lastnamenexttime6017
@lastnamenexttime6017 2 жыл бұрын
thanks sir love from India
@Levelup383
@Levelup383 3 жыл бұрын
Tx for the lecture 🙏
@DrTrefor
@DrTrefor 3 жыл бұрын
You're most welcome!
@abuzerbazuka
@abuzerbazuka 2 жыл бұрын
Thanks a lot!!
@achrafcherkaoui1566
@achrafcherkaoui1566 2 жыл бұрын
hi dr from where you got your t-shirt
@TrinityTwo
@TrinityTwo 3 жыл бұрын
And to think I racked my brain finding maximum and minimum values through differentiation.
@DrTrefor
@DrTrefor 3 жыл бұрын
Right?!?
@TrinityTwo
@TrinityTwo 3 жыл бұрын
Where the hell were you when I struggling with Calculus to the point that I gave up?
@Gabi_0048
@Gabi_0048 2 жыл бұрын
I came here to learn about the Simplex Method, but I stayed because of your amazing T-shirt
@sakhawathossain3362
@sakhawathossain3362 3 жыл бұрын
But why did u mention 'simplex' word here if it doesn't have any usage????
@lailaabidi5734
@lailaabidi5734 Жыл бұрын
Please if you have lecture. About simplex lpp method.
@pipertripp
@pipertripp 3 жыл бұрын
I love this subject b/c it's so elegant and pretty simple. Is this vid a one-off or does it belong to a playlist?
@DrTrefor
@DrTrefor 3 жыл бұрын
Hoping to do a little series on optimization techniques, but for the next month or so it'll be a one-off as I head back to finishing off differential equations.
@pipertripp
@pipertripp 3 жыл бұрын
@@DrTrefor gotcha. I'll be sure to keep an eye for the other vids in as they appear. The ODE series is brill so glad to hear that you're putting your focus on that. It's been a great supplement to my self-study, so thank you!
@naman4067
@naman4067 2 жыл бұрын
@@DrTrefor it's already 9 months
@derekburm
@derekburm 2 жыл бұрын
Love the shirt!
@lukasmiller8531
@lukasmiller8531 2 жыл бұрын
That intuition you present about why it should be the vertex not on one of the axis, is that always true? If the iso line had a different gradient, it would hit another vertex at its maximum, right? Or can it never have such a steep gradient?
@DrTrefor
@DrTrefor 2 жыл бұрын
The claim is it hits some vertex, so you have to check them all to see which it is
@TitanGriffins
@TitanGriffins 11 ай бұрын
Awesome!
@sandeshgoli1591
@sandeshgoli1591 2 жыл бұрын
Thanks a lot. ❤️
@DrTrefor
@DrTrefor 2 жыл бұрын
You're welcome 😊
@moeal5110
@moeal5110 Жыл бұрын
Would you please do a video explaining steps for solving the simplex method, not using graphs
@flynnlaurie5722
@flynnlaurie5722 2 жыл бұрын
i like the video! but how did you get x = 40/3 = 13.33 and y = 10/3 = 3.33 in the computing the maximum section? i'm having a hard time figuring it out
@charlieobimbo8310
@charlieobimbo8310 2 жыл бұрын
He took the two equations 5x + 4y = 80 10x + 20y = 200 and solved them using the substitution method, i.e. by making y the subject of the formula for each equation, and then equating the y's to eliminate the y's. And after solving for x (i.e. x=40/3), he got the value for y by using one of the equations which had y as the subject of the formula. Prof. Charlie Obimbo
@imranq9241
@imranq9241 2 жыл бұрын
Is this related to convex hull problems at all ?
@lovebroman9335
@lovebroman9335 Жыл бұрын
What can linear programming do that you cant do with lagrange multipliers?
@marciastenvert1671
@marciastenvert1671 2 жыл бұрын
you are AMAZING
@saisiva5808
@saisiva5808 3 жыл бұрын
I think this is NOT SIMPLEX method. It seems graphical method
@walkingturtle6646
@walkingturtle6646 11 ай бұрын
where can I get his shirt? I really like it.
@baqerghezi1342
@baqerghezi1342 2 жыл бұрын
9:27 Do x, y should be intgeres since we're talking about table/ shelves?
@DrTrefor
@DrTrefor 2 жыл бұрын
Yes, and we need to only accept integers for physical reasons we can find the "exact" answer and then search nearby to find the integer solutions, that works perfectly well.
@amaobidavidchibuzor2326
@amaobidavidchibuzor2326 2 жыл бұрын
i love the shirt. How can i get it?
@hishamabdeltawab5868
@hishamabdeltawab5868 2 жыл бұрын
From where can I get a shirt like yours?
@ace3examcell376
@ace3examcell376 3 жыл бұрын
Sir please upload some content on the Fourier series with real-time Applications
@DrTrefor
@DrTrefor 3 жыл бұрын
Fourier series actually coming out in one week!
@petersisler1398
@petersisler1398 3 жыл бұрын
The feasible region looks convex to me. Is that so? Also, is the solution not integral values for x and y?
@DrTrefor
@DrTrefor 3 жыл бұрын
Oh good catch, yes absolutely convex not concave, I've pinned an explanation about that yes! Indeed this shows the precise location and then can round to the nearest integer depending on the context.
@vladfeldfix7825
@vladfeldfix7825 3 ай бұрын
So if I have 8,000 vertices I have to calculate 8,000 times to find the best vertex?
@lilmonix3957
@lilmonix3957 4 ай бұрын
what if a table makes 1$ and a bookcase makes 1000$? is optimizing the use of resources affects the profit? help im confused
@Bibi_Mbaape
@Bibi_Mbaape 2 жыл бұрын
Where can I get that amazing t-shirt?
@jeanpeuplu3862
@jeanpeuplu3862 2 жыл бұрын
Found it!! Look for "algebra dance shirt"
Intro to Graph Theory | Definitions & Ex: 7 Bridges of Konigsberg
5:53
Dr. Trefor Bazett
Рет қаралды 45 М.
Lagrange Multipliers | Geometric Meaning & Full Example
12:24
Dr. Trefor Bazett
Рет қаралды 271 М.
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 25 МЛН
Linear Programming
33:20
The Organic Chemistry Tutor
Рет қаралды 1 МЛН
Linear Programming (Optimization) 2 Examples Minimize & Maximize
15:08
Mario's Math Tutoring
Рет қаралды 519 М.
Amazing Graphs - Numberphile
12:36
Numberphile
Рет қаралды 991 М.
The Dirichlet Integral is destroyed by Feynman's Trick
8:15
Dr. Trefor Bazett
Рет қаралды 146 М.
Simplex Explained
10:01
Louis Holley
Рет қаралды 70 М.
Complex Fibonacci Numbers?
20:08
Stand-up Maths
Рет қаралды 1 МЛН
Linear Programming 1: Maximization -Extreme/Corner Points (LP)
5:43
Joshua Emmanuel
Рет қаралды 949 М.
The Art of Linear Programming
18:56
Tom S
Рет қаралды 631 М.
Intro to Markov Chains & Transition Diagrams
11:25
Dr. Trefor Bazett
Рет қаралды 97 М.
What Is Mathematical Optimization?
11:35
Visually Explained
Рет қаралды 113 М.
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 25 МЛН