[#07] Manual do Lingo - Pre莽o sombra - YouTube

Channel: unknown

[0]
Hello! How are you?
[3]
Let's continue our Lingo's manual video series
[5]
We entered here starting with Lingo
[7]
Examining solution and dual price reports
[10]
So,
[12]
we have here our model when we solve
[14]
we have dual price information in relation to our mathematical equations
[20]
Here are the lines, so we have the first
[23]
which is precisely the objective function
[26]
and then our three restrictions
[28]
And we have the value here of the dual price of 25, 0 and 75
[32]
So what is the interpretation
[34]
can we have this value of 25 here?
[38]
If we can increase
[42]
in 1 the right value of this constraint
[45]
ie here where we have the value of 100
[48]
Ergo go from 100 to 101 ...
[49]
we will have an increase in our objective function of
[52]
25 units, and what i'm saying is that
[55]
if we increase here from the standard now 101
[58]
our objective function goes to value
[61]
to 14.525
[64]
Let's do the test here, I'll change to 101
[68]
I'll solve it and look here the
[71]
the function, look at the value of our objective function
[74]
14.525. Then I'll come back here
[78]
to the previous one. I will solve again
[82]
And here we have the value of zero. Why do we have this value of zero?
[86]
Because in this equation we already have
[88]
a break of 90 computers, so ...
[92]
I already have computers
[94]
Here from this restriction, that I could
[97]
build the most. Because?
[99]
Why we only produce 30 turbo computers
[102]
So we have a slack of 90
[105]
So if I increased one unit here
[108]
I would have 91 computers without using
[112]
Note that in both
[114]
equations i have a positive value here
[117]
of our restrictions, I just don't have
[120]
no slack or surplus, so ...
[123]
I'm on the edge of these restrictions
[126]
of the 100 computers I've used the 100
[130]
here, from 160 hours I already used the
[133]
160
[134]
So, in this one, that I have a break
[137]
Putting one more unit won't bring me any
[140]
benefit
[142]
And finally we have here the last restriction, that she ...
[144]
there's no slack, so there's a
[147]
dual price ... of 75
[150]
So if I increase here to 171
[153]
Our objective function goes to the value of 14.575
[157]
Let's do the simulation here
[160]
I'll change it to 171 for us to check. I will solve
[163]
And note that our value went to
[166]
14.575
[169]
Then I will come back here again to the previous
[172]
And what interpretation can we have then
[175]
of these values. Why is there such a price? The name of
[178]
dual price here also called shadow price
[180]
It's called the shadow price, precisely because
[183]
this is the value you
[186]
the maximum amount you can afford
[189]
if you want to increase this unit. For example...
[191]
If you want to increase by one hour, the journey
[194]
workforce, ie to increase by 160
[197]
for 161 hours, it will be worth it as long as
[201]
the cost you have to do that
[203]
be less than 75 units
[207]
For example, if to increase by 1 hour, you have the cost
[210]
of 60 units, it will be worth it. Why?
[213]
Because you will have a cost of 60 but you
[216]
will increase your profit
[219]
In...
[220]
for sale, at 75, ergo ...
[223]
60 minus 75
[226]
you will have a final profit of 15
[229]
Now if to increase 1 hour you will have a cost of
[232]
100
[234]
units, then it's not worth it because you just
[236]
would win 75
[239]
So 75 minus 100
[242]
would you be at a loss of 25
[246]
As well as the reduced cost
[249]
the shadow price also has the range in which it operates
[252]
we will see this a little further on, but to activate it
[255]
we have to come here in solver, options
[259]
general solver, and here where there are dual contations
[262]
we have to mark price and range
[265]
After we mark this ...
[267]
After we solve the model and after you solve the model, you can
[270]
come here in the solver and click on range
[273]
and it tells you, what is the range that those values
[277]
gives...
[278]
from ... so much from ...
[280]
reduced cost how much of the shadow price are
[283]
valid, but this we will see a little later
[286]
I recommend you leave this deactivated by default, because
[289]
it spends an extra computational time getting
[292]
in these values, so only activate when you are going to
[295]
use
[297]
Well, then we understand what dual price is and why
[299]
that he is called shadow price
[302]
The value this objective function will increase
[305]
when you increase by one unit the right side of the
[308]
your equation
[309]
Then our objective function has the value right there of 1
[312]
Why when we increase by 1
[315]
our objective function, it increases by 1
[320]
It's kind of obvious
[322]
If your objective function increases by 1
[325]
Its objective function increases by 1 unit, so
[328]
for each unit you increase in your objective function it will increase
[331]
also a unit, so it has here the value of 1
[335]
and for the other restrictions you will have
[338]
the value that Lingo will solve for you
[342]
Well, other videos like this you can find here on the channel and
[345]
on the site sudocontrol.com.br
[348]
Don't forget to leave your tips and suggestions for upcoming videos.
[351]
Here in the comments. I'll meet you soon,
[354]
See you!