Linear Programming - Shadow Price, Slack/Surplus calculations

  Рет қаралды 253,245

Joshua Emmanuel

Joshua Emmanuel

8 жыл бұрын

This video shows how to solve the following problem.
Min Z = 5x1 + x2
s.t.
2x1 + x2 ≥ 6
X1 + x2 ≥ 4
2x1 + 10x2 ≥ 20
X1, x2 ≥ 0
a) Graphically solve the linear programming problem and determine the optimal solution.
b) What is the objective function value?
c) Calculate slack/surplus for each constraint.
d) If the RHS of Constraint #1 increases by 1, by how much would the OFV change?
e) If the RHS of Constraint #2 increases by 2, by how much would the OFV change?
f) Suppose x1 and x2 are required to be integers, what will the optimal solution be?

Пікірлер: 86
@nemesbence2002
@nemesbence2002 3 жыл бұрын
these five minutes were more useful than half a semester of lectures. Cheers, man!
@lazarusmonkeymansoutdoorad2170
@lazarusmonkeymansoutdoorad2170 2 жыл бұрын
You're not lying.... (currently studying for midterm with a horrible [but nice] instructor, and this 5min video was worth two entire weeks of lectures.)
@PunmasterSTP
@PunmasterSTP 2 жыл бұрын
@@lazarusmonkeymansoutdoorad2170 I'm just curious; how did the midterm and the rest of the class go?
@PunmasterSTP
@PunmasterSTP 2 жыл бұрын
I'm just curious; how did the rest of your semester go?
@connorferguson8832
@connorferguson8832 4 жыл бұрын
Great format for the video, quick and to the point, and explaining exactly what needed to be said. Thanks!
@PunmasterSTP
@PunmasterSTP 2 жыл бұрын
This was incredible; you explained so many concepts so clearly! I've been looking for videos like these for a long time, and I'm so glad that I finally came across one.
@estefaniac8260
@estefaniac8260 5 жыл бұрын
Thank you so much for your video. I loved how you used this graphic explanation to illustrate shadow prices. You totally saved me.
@tymothylim6550
@tymothylim6550 3 жыл бұрын
Thank you very much for this video, Joshua! I really enjoyed the use of visuals! I learnt what shadow price means as well!
@dextarndumia2395
@dextarndumia2395 4 жыл бұрын
You're the best man.... These tutorials have saved me a lot of hustle
@VivekGupta-vh8ti
@VivekGupta-vh8ti Жыл бұрын
The best video till date on Linear Programming. Thank you very much
@mernadiaa99
@mernadiaa99 8 ай бұрын
Thank you !!!! you explained half of a semester to me !!!!!!
@mgmailggmail6431
@mgmailggmail6431 7 жыл бұрын
love this guy already
@jay0shinigami
@jay0shinigami 7 жыл бұрын
thx man i like ur videos they are really ease to understand
@sallytan5632
@sallytan5632 7 жыл бұрын
This is very helpful, thanks.
@Novana16
@Novana16 4 жыл бұрын
read some sheet 4 times of my professor than watched this , thanks man
@luisfernandogarcia4916
@luisfernandogarcia4916 4 жыл бұрын
Very good video man, congrats
@ZenoDiac
@ZenoDiac Жыл бұрын
Amazing. I can see you put a lot of work into making this video. It's very clear and concise. Well done!
@joshemman
@joshemman Жыл бұрын
Thanks, ZenoDiac.☺
@camilaparola2781
@camilaparola2781 5 жыл бұрын
Thanks, this helped me a lot!
@Gijserddd
@Gijserddd 5 жыл бұрын
Thanks, Great video!
@elektrokitttv9279
@elektrokitttv9279 5 жыл бұрын
you saved my grade
@oguzknal4348
@oguzknal4348 5 жыл бұрын
maybe...
@OniiChanBest
@OniiChanBest 7 жыл бұрын
hello, for finding the shadow price for constraint 2, how did you derive with x1=0?
@joshemman
@joshemman 7 жыл бұрын
x1 ≥ 0 is a binding constraint. Note that the optimal solution occurs at the intersection of x1=0 and 2x1+x2=6.
@Saksham916
@Saksham916 5 жыл бұрын
COOL EXPLANATION WAS AWESOME
@GMornat
@GMornat 7 жыл бұрын
Whoah Thanks a lot it helped me to easily calculate Slack and Shadow Prices easily
@donjr3270
@donjr3270 6 жыл бұрын
Phew it was fast, had to pause and try to absorb it in. All the same, great video - helps a lot!
@MsAlqattan
@MsAlqattan 6 жыл бұрын
D
@mauroacunacaliso2358
@mauroacunacaliso2358 5 жыл бұрын
Very insightful thanks
@hunchingshang492
@hunchingshang492 6 жыл бұрын
thanks bro, helps a lot.
@BASIET
@BASIET 4 жыл бұрын
hi, thanks for the great video. but just found an error in the table at 1:24. the co-ordinates in row 3 are swopped around.
@luckydubey3219
@luckydubey3219 6 жыл бұрын
Thanks it helped me a lot
@nadiapranabudi1749
@nadiapranabudi1749 3 жыл бұрын
wow thank you so much
@moniruzzamanmonir6189
@moniruzzamanmonir6189 10 ай бұрын
take a bunch of thanks from Bangladesh
@lf24-87
@lf24-87 Жыл бұрын
Amazing lecture
@misganawmekonnen57
@misganawmekonnen57 2 жыл бұрын
very great expression
@GodIsEverPowerful
@GodIsEverPowerful 4 ай бұрын
What's the physical significance of SP is equal to 1 ? at the end? What is the impact of non binding on SP at the end?
@user-cs3bo4xk6m
@user-cs3bo4xk6m 8 ай бұрын
very educative mister
@joshemman
@joshemman 8 ай бұрын
Nice to hear, Abdul. Thanks for dropping a note.
@NotSoFat
@NotSoFat 7 жыл бұрын
u are godsend
@GodIsEverPowerful
@GodIsEverPowerful 4 ай бұрын
What about binding constraint x1=0 ? if RHS increases by 1?
@neon1300
@neon1300 6 жыл бұрын
Hi Joshua, thanks for the vid. I still don't understand the part of finding shadow prices. Why the constraint x1>=0 was ignored? If the constraint became x1>=1, the optimal solution certainly will change as x1>= 0 is a binding constraint.
@davidlanday2647
@davidlanday2647 Жыл бұрын
It's a good question. These are bound constraints on your decision variables x1 and x2 and I believe the reason why you would or wouldn't adjust your bound constraints in practice will depend on the context of the problem you are solving. The video doesn't give a specific context to the problem it tries to solve, but I tried to add some below that I hope helps explain why context might matter when investigating shadow prices. In the video problem, let's say you grow apples(x1) and oranges(x2) on your farm, and you are trying to minimize the cost of growing each (z), where the coefficients 5 and 1 are your associated grow costs for apples and oranges respectively. Now, let's say your 3 linear constraints are the productions at your three other grow stations and they are costing you a certain amount (or more) throughout the grow season (this can vary hence the >= signs). You can see that as far as analysis of shadow prices goes, it makes sense to try adjusting these because it can tell you how much you could gain by making your production more energy efficient at the other stations. whereas, if you are deciding how many apples(x1) or oranges(x2) to grow based on energy costs, it does not make sense to adjust your bound constraints because you don't want to assume that you need to grow a certain amount of one or the other, and it will be up to the model to tell you how much of each you should grow in the context of energy costs (it just suffices to say that you can't have negative number of apples or oranges i.e: x1>=0, x2>=0 because that wouldn't make sense). When you adjust your lower bounds on x1 you are saying your station needs to produce a certain amount and maybe that is a requirement based on demand for apples or oranges at your farm, but probably it doesn't make sense to impose that assumption. Notice that your objective only changes when x1>=1 or x2>=6 and changing x1 will result in a new binding constraint, essentially changing the fundamental question you are trying to answer in the first place. I hope my example helps / is somewhat clear.
@jackli3989
@jackli3989 7 жыл бұрын
For the shadowing price part, I think you have to tell for more specific(seperate each step more clearly)
@jackli3989
@jackli3989 7 жыл бұрын
And don't speak too fast
@jackli3989
@jackli3989 7 жыл бұрын
When you explain the shadowing price, you should always have a feasible line along as well
@joshemman
@joshemman 7 жыл бұрын
Please see if this one clearer: kzbin.info/www/bejne/apnTYaCAnN-gncU
@swaathykumaran1903
@swaathykumaran1903 4 жыл бұрын
@@joshemman yes it's clear there
@raiyanrahman2926
@raiyanrahman2926 3 жыл бұрын
in max LP, what is relation between shadow price and dual price?
@nirajvyas9997
@nirajvyas9997 6 жыл бұрын
Thanks Please give me your Divine blessings
@mahirdheendsa9282
@mahirdheendsa9282 7 жыл бұрын
Thanks Brother
@maxxpro4
@maxxpro4 5 жыл бұрын
way better than my class
@amandeepsingh6139
@amandeepsingh6139 7 жыл бұрын
What is difference between canonical & standard forms of LPP? Please provide canonical form of LPP video. Thanks for all videos of LPP. You explain very good in all videos.
@lanciauxrayzimba
@lanciauxrayzimba 3 жыл бұрын
how do you use this on matlab?
@muathalrumayh4392
@muathalrumayh4392 7 жыл бұрын
شكرا
@azizalimov6417
@azizalimov6417 3 жыл бұрын
what if we are only given the final matrix but not the original constraints
@10.j.c
@10.j.c 7 жыл бұрын
may I know where does s1, s2 & s3 come from? at 01:46 please kindly reply and explain thanks
@joshemman
@joshemman 7 жыл бұрын
s1, s2, & s3 are used to represent slack/surplus variables.
@bettys7298
@bettys7298 6 жыл бұрын
Hi @Joshua Emmanuel. Thanks for sharing. I have a question for question (d). Why can the question be interpreted into x1=0 but not x2=0? Thanks!!
@joshemman
@joshemman 6 жыл бұрын
x1 = 0 on the y-axis.
@bettys7298
@bettys7298 6 жыл бұрын
tks
@aronize
@aronize 4 жыл бұрын
Hi, what happens if I get a negative slack variable? What does this say about the shadow price of the constraint?
@joshemman
@joshemman 4 жыл бұрын
You shouldn't get a negative slack value. Slack & Surplus values must be non-negative.
@abdulrhmanaleid3072
@abdulrhmanaleid3072 7 жыл бұрын
Greeting, i would like to have the same problem to be solved with MAXIMIZE objective. Do you have one? thanks
@joshemman
@joshemman 7 жыл бұрын
If you solve this as a Maximization problem, the solution will be unbounded. Please a maximization example here: kzbin.info/www/bejne/ZoWnaniHmM2YkK8
@winnieooko
@winnieooko 6 жыл бұрын
Hello while doing my calculation on point 3 on the graph X1=2.5 and X2=1.5 when i do the calculation for Z=14 that is what i get ,am i doing it wrongly kindly clarify?
@joshemman
@joshemman 6 жыл бұрын
1:23. You're right Z = 14 at point 3. I incorrectly used (1.5, 2.5) in my calculation.
@gaurangasaikia2584
@gaurangasaikia2584 6 жыл бұрын
Thank you so much Sir... It cleared many of my doubts... One question Sir.. On finding dual price should we subtract optimum value from (RHS+1) always or we can do (Optimum value - (RHS+1)) also..
@joshemman
@joshemman 6 жыл бұрын
I calculated shadow price here. In Minimization problems, Dual Price is the negative of Shadow Price. So if you want dual price, yes, your latter formula is correct in a Min problem.
@gaurangasaikia2584
@gaurangasaikia2584 6 жыл бұрын
Okay.. Thank you Sir.
@sathanasaetiao8219
@sathanasaetiao8219 3 жыл бұрын
What if there's 3 variables, How can I solve for the shadow price?
@joshemman
@joshemman 3 жыл бұрын
You can use software or simplex method.
@fitriawulandariramlan552
@fitriawulandariramlan552 Жыл бұрын
Hi, I think for the point 3, x1=2.5 and x1=1.5, so in the minutes 1:23, 5(2.5) + 1.5 = 14
@joshemman
@joshemman Жыл бұрын
You are very correct. I somehow swapped x and y.
@farooqshah1137
@farooqshah1137 5 жыл бұрын
according to your definition for calculation of shadow price we have to simultaneously solve a binding constraint with a one for which we want to find shadow price. So if i solve constraint #1(it is a binding) with x1+x2=5 then we have x1=1 and x2=4 which yields z=9 and then SP2=9-6=3. and when you solved x1=0 and x1+x2=5 then SP2=-1. so why this happens?
@joshemman
@joshemman 5 жыл бұрын
It happens because the regions between Constraint #1 and #2 are not in the feasible region. The regions are bounded by [(0, 4), (0, 6), and (2,2)] and [(3,0), (2,2) and (4, 0)].
@zabrinanuramalia4693
@zabrinanuramalia4693 2 жыл бұрын
in 1:54, where did you get the optimal solution values X1=0, X2=6, Z=6?
@joshemman
@joshemman 2 жыл бұрын
Hi Zabrina, How to get the solution is not shown in this video. You can solve it manually or use software as shown in videos below: kzbin.info/www/bejne/sJq5nY2oidKnf5Y kzbin.info/www/bejne/d5TdYoebrNuAp7s
@zabrinanuramalia4693
@zabrinanuramalia4693 2 жыл бұрын
@@joshemman aah thank you!
@manfyegoh
@manfyegoh 4 жыл бұрын
ur x1 and x2 is wrong for point 3
@chayangupta9897
@chayangupta9897 4 жыл бұрын
thank you sir but how to identify binding or non binding constraint?
@joshemman
@joshemman 4 жыл бұрын
A binding constraint has a zero slack/surplus. A non-binding constraint has a positive slack/surplus.
@nazaryoussef1185
@nazaryoussef1185 5 жыл бұрын
3rd point should be (2.5,1.5)
@Novana16
@Novana16 4 жыл бұрын
read some sheet 4 times of my professor than watched this , thanks man
@Novana16
@Novana16 4 жыл бұрын
read some sheet 4 times of my professor than watched this , thanks man
Linear Programming (Optimization) 2 Examples Minimize & Maximize
15:08
Mario's Math Tutoring
Рет қаралды 521 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 136 МЛН
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 60 МЛН
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 49 МЛН
Linear Programming 4: Slack/Surplus, Binding Constraints, Standard Form
5:31
LP sensitivity analysis explained
17:13
Yen-Ting Lin
Рет қаралды 75 М.
Linear programming and shadow prices
5:41
Sian Eaton
Рет қаралды 25 М.
4. Sensitivity Analysis for LP - Using Shadow Prices
17:21
Decision Making 101
Рет қаралды 17 М.
Linear Programming
33:20
The Organic Chemistry Tutor
Рет қаралды 1 МЛН
The Art of Linear Programming
18:56
Tom S
Рет қаралды 634 М.
What is Shadow Pricing? (How it Works?)
8:18
WallStreetMojo
Рет қаралды 14 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 136 МЛН