1) Introduce slack variables "x_5, x_6, x_7," for the first, the second, and the third equation. then write the function in the form
"Z = - Mx_5 - Mx_6 - Mx_7 \u2192 max ," express the slack variables:
"x_5 = 15-x_1-2x_2-3x_3""x_6 = 20-2x_1-x_2-5x_3""x_7 = 10-x_1-2x_2-x_3-x_4" Substitute them to the function:
"Z= 4Mx_1+5Mx_2+9Mx_3+Mx_4-45M\u2192 max ,"After the first phase (common simplex-method with optimal solution) has ended at the following matrix:
"\\begin{matrix}\n 0 & -1 & 0 & 0& 0 \\\\\n 15\/7 & -1\/7 & 0 & 0& 0 \\\\\n 25\/7 & 3\/7& 0 & 0 & 0 \\\\\n15\/7 & 6\/7 & 0 & 0 & 0\\\\\n0 & 0 & -1 & 0 &0 \\\\\n0 & 0 & 0 & -1 & 0 \\\\\n0 & 0 & 0 & 0 & -1 \\\\\n0 & 0 & 0 & 0 & 0 \\\\\n\n\\end{matrix}" Express the basic variables:
"x_2 = 15\/7+1\/7x_1, \\\\\nx_3 = 25\/7-3\/7x_1." Substitute them to the function:
"Z=x_1 + 2(15\/7+1\/7x_1) + 3(25\/7-3\/7x_1)=15."
Finally we get the correct matrix after removing the rows with slack variables (Phase II):
"\\begin{matrix}\n 0 & -1 & 0 & 0& 0 \\\\\n 15\/7 & -1\/7 & 0 & 0& 0 \\\\\n 25\/7 & 3\/7& 0 & 0 & 0 \\\\\n 15\/7 & 6\/7 & 0 & 0 & 0\\\\\n15 & 0 & 0 & 0 &0\n\\end{matrix}"
The two-phase simplex method gives:
"x_1 = 0 \\\\\nx_2 = 15\/7 \\\\\nx_3 = 25\/7 \\\\\nZ = 2\u202215\/7 + 3\u202225\/7 + 0\u202215\/7 = 15."
Comments
Leave a comment