document.write( "Question 1198952: Maximize P=10x+40y
\n" ); document.write( "2x+y≤100
\n" ); document.write( "80x+10y≤500
\n" ); document.write( "30x+10y≤2000
\n" ); document.write( "X≥0
\n" ); document.write( "y≥0 \r
\n" ); document.write( "\n" ); document.write( "Use the simplex method to solve the problem. Use s, t, and u as your slack variables for the first, second, and third inequalities respectively. Use the final simplex tableau to identify the values below.
\n" ); document.write( "X=
\n" ); document.write( "

Algebra.Com's Answer #832655 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "I recommend checking out this page to help refresh your memory how the Simplex Method works.
\n" ); document.write( "https://people.richland.edu/james/ictcm/2006/simplex.html\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "----------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We wish to maximize P = 10x+40y\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The constraints are:
\n" ); document.write( "\"system%282x%2By+%3C=+100%2C80x%2B10y%3C=500%2C30x%2B10y%3C=2000%2Cx%3E=0%2Cy%3E=0%29\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Focus on this subset of constraints
\n" ); document.write( "\"system%282x%2By+%3C=+100%2C80x%2B10y%3C=500%2C30x%2B10y%3C=2000%29\"
\n" ); document.write( "Convert to their corresponding equation format
\n" ); document.write( "\"system%282x%2By%2Bs+=+100%2C80x%2B10y%2Bt=500%2C30x%2B10y%2Bu=2000%29\"
\n" ); document.write( "where s,t,u are the slack variables mentioned. They are nonnegative real numbers.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's have the slack variables present in each equation.
\n" ); document.write( "A coefficient of '1' means the slack variable is actually present in that particular equation.
\n" ); document.write( "A coefficient of '0' means it is not present.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This system
\n" ); document.write( "\"system%282x%2By%2Bs+=+100%2C80x%2B10y%2Bt=500%2C30x%2B10y%2Bu=2000%29\"
\n" ); document.write( "is equivalent to
\n" ); document.write( "
\n" ); document.write( "Then an equation like
\n" ); document.write( "2x+1y+1s+0t+0u = 100
\n" ); document.write( "will have the coefficients: 2,1,1,0,0
\n" ); document.write( "which will make up part of row1 in the simplex tableau.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This is our starting simplex tableau
\n" ); document.write( "
\n" ); document.write( "where C represents the right-hand-side constants of each equation mentioned above.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The bottom row represents the equation -10x-40y+P = 0
\n" ); document.write( "This is a rephrasing of P = 10x+40y where everything is to one side. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Write 0's in the slack entries of the bottom row
\n" ); document.write( "This is because
\n" ); document.write( "-10x-40y+P = 0
\n" ); document.write( "is the same as
\n" ); document.write( "-10x-40y+0s+0t+0u+1P = 0\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Currently this tableau is not optimized because we have negative items in the bottom row.
\n" ); document.write( "Select the negative item furthest from zero, which is -40. Highlight or circle this entire column. This is the current pivot column.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "To find the pivot row, we'll need to divide each C value over each item in that pivot column.
\n" ); document.write( "row1: 100/1 = 100
\n" ); document.write( "row2: 500/10 = 50
\n" ); document.write( "row3: 2000/10 = 200\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The smallest ratio will point us to the pivot row. In this case, that would be row 2.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The item \"10\" in this pivot column and pivot row must be made into a \"1\".
\n" ); document.write( "We do this by multiplying everything in this row by 1/10, i.e. divide everything in this row by 10.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "I'll write the notation (1/10)*R2 --> R2 to indicate \"multiply everything in row 2 (aka R2) by 1/10, then store the result in R2\".\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This is what we get after that row operation
\n" ); document.write( "
\n" ); document.write( "Now we must zero out everything but this '1' in that column.
\n" ); document.write( "This pivot item is highlighted in yellow.
\n" ); document.write( "We are clearing out this column so to speak.
\n" ); document.write( "Use row operations to get this done.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Something like R1-R2 --> R1 means we subtract the corresponding entries of row1 and row2 in that order, then store the result in row1.
\n" ); document.write( "For more information, check out the concept of \"row reduction\".\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This is the result of clearing out the pivot column mentioned
\n" ); document.write( "
\n" ); document.write( "The row operations performed are shown on the right.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "At this point, there aren't any negative items in the bottom row. Therefore, this tableau is optimized.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The variables y, s, u, and P are considered basic variables.
\n" ); document.write( "This is because they contain zeros in the non-pivot entries for the given column. These columns have been \"cleared out\" so to speak.
\n" ); document.write( "Refer to the link I posted above.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The nonbasic variables are x and t, as they don't have such zeros.
\n" ); document.write( "Nonbasic variables will take on the value of zero.
\n" ); document.write( "Therefore: x = 0 and t = 0\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Going back to the basic variables, we have
\n" ); document.write( "y = 50
\n" ); document.write( "s = 50
\n" ); document.write( "u = 1500
\n" ); document.write( "P = 2000
\n" ); document.write( "Each value mentioned is in the column C at the far right side.
\n" ); document.write( "We have u = 1500 for instance because of the '1' in that corresponding row.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "To put everything together:
\n" ); document.write( "x = 0, y = 50
\n" ); document.write( "s = 50, t = 0, u = 1500
\n" ); document.write( "P = 2000\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The nonzero slack values for variable s and variable u indicate that the point (x,y) = (0,50) is not on the boundaries of 2x+y≤100 and 30x+10y≤2000 respectively.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "===============================================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answer:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The max is P = 2000
\n" ); document.write( "It occurs when x = 0 and y = 50\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You can use graphing to confirm the answer.
\n" ); document.write( "
\n" ); document.write( "
\n" );