document.write( "Question 1181641: An oil refinery refines types A and B of crude oil and can refine as much as 4000 barrels each week. Type A crude has 2 kg of impurities per barrel, type B has 3 kg of impurities per barrel,and the refinery can handle no more than 9000 kg of these impurities each week.How much of each type should be refined in order to maximize profits, if the profit is R25/barrel for type A and R30/barrel for type B? \n" ); document.write( "
Algebra.Com's Answer #849998 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "The AI solution from the other tutor is correct.

\n" ); document.write( "In that solution, the steps outlined say that you need to evaluate the objective function at each corner of the feasibility region. And that is what most references say.

\n" ); document.write( "However, in fact it is NOT necessary to evaluate the objective function at every corner of the feasibility region.

\n" ); document.write( "The corner of the feasibility region where the objective function is maximized can be determined from the slopes of the constraint boundary lines and of the objective function. The idea there is that the objective function will be maximized where a line with the slope of the objective function just touches the feasibility region.

\n" ); document.write( "In this problem, the constraint boundary line equations are x+y=4000 (slope -1) and 2x+3y=9000 (slope -2/3); the objective function is P=25x+30y (slope -5/6). Since -5/6 is between -1 and -2/3, the objective function is maximized at the intersection of the two constraint boundary lines.

\n" ); document.write( "\"x%2By=4000\"
\n" ); document.write( "\"2x%2B3y=9000\"
\n" ); document.write( "\"2x%2B2y=8000\"
\n" ); document.write( "\"y=1000\"
\n" ); document.write( "\"x=3000\"

\n" ); document.write( "ANSWER: Profit is maximized when 3000 barrels of type A and 1000 barrels of type B are refined each week.

\n" ); document.write( "
\n" ); document.write( "
\n" );