Is there just a generaI way of solving these types of problems? I get the steps (define the veriable, write the inequalities...) but I'm stuck on the writing the inequalites part b/c I'm not sure what stuff to include in the inequality.
Would someone love to help me with linear programming???
Well, for one thing you're usually restricted to x%26gt;0 and y%26gt;0. Then if you have 2 different products to consider, put similar constraints together in an inequality. For instance, if you know how many hours each takes to produce, put those together. If you know the space each one takes up, put those together, etc. with one product being x and one being y.
If you give me an example I'd be glad to help you with it.
Okay... let x = peanut butter cookies and y = chocolate chip.
Now you are supposed to have at least 3 of each, so x%26gt;=3 and y%26gt;=3.
Also, there are supposed to be between 6 and 12 cookies total, or x+y.
So x+y%26gt;=6 and x+y %26lt;= 12.
You make 25 cents for every chocolate chip cookie and 26 cents for every peanut butter, so your profit f(x,y)= 26x + 25y
After you graph your inequalities, the profit will be maximized and minimized at vertices of the feasible region, so you only need to evaluate at the vertices.
If you need further explanation, please let me know. Feel free to email me if needed.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment