1. Rewrite the constraints in slope-intercept form. 2. List the values of the objective function for each vertex
Slope intercept form is \(y = mx + b\) So you just have to solve for y. \[-3x + 2y \leq 8\]\[2y \leq 8 + 3x\]\[y \leq 4 + \frac{3}{2}x\] You can probably do the other one.
ok thanks @SACAPUNTAS but when it says list the values of the objective function for each vertex what does that mean?
It means after you've found the coordinates of each vertex you plug its values into the objective function to get a value of P.
For example if there is a vertex at (1, 2) (I'm not saying there is, just, as an example) You'd plug it in with x = 1 and y = 2 so \(P = 13(1) + 2(2)\)
WHAT? im so lost
Sorry. Do you get how linear programming works? I can start at the beginning!
i do not understand linear prog. we are studying it but idk wats going on
Ok. Do you have the two inequalities in slope intercept form?
no just 1
Ok. Well, first we get the other one. That's just solving for y. :D
y≤4+32x is one and hold on let me find the other one
3/2, not 32. But yes.
sorry i copied n pasted that
\[y \le 4+\frac{ 3 }{ 2 }x\] is the other one
That's the same one. The other one is \[-8x + y \geq -48\]So it's actually really simple to solve it for y. :P
ok −8x+y≥−48 changes to y≥8x-48 right?
Right.
so now what?
So, we can graph these inequalities. They want you to do it on a graphing calculator I guess but on here I'll let Wolfram Alpha do it. http://www.wolframalpha.com/input/?i=graph+y+%3C%3D+4+%2B+%283%2F2%29x+and+y+%3E%3D+-48+%2B+8x+and+x+%3E%3D+0+and+y+%3E%3D+0 Do you see how since they are inequalities (and not equations) each one has a region associated with it, like, it's not just a line. And by graphing them all at the same time, we constrain a specific area?
yes i see that.
Ok. So basically the idea of linear programming is that once we've constrained the specific area, we have to test whatever function we're trying to optimize at each of the vertices of that area.
For example, (0,0) is one of our vertices. So we can plug x = 0, y = 0 into our objective function. \[P = 13(0) + 2(0) = 0\](That one's simple)
Essentially, you're making a shape with the inequalities and then test your objective function at the coordinates of each of its corners.
ohhhhhh so we just plug in the vertices to P=13x+2y?
Right! And then you pick the vertex with the highest value for P, since you are trying to maximize.
ahhhhhhh thanks sooooooooooo much i understand it now
Well, that's what you'd do in real linear programming. They just want you to list the P for every vertex.
Good. :D
Join our real-time social learning platform and learn together with your friends!