I have a linear program and need to determine and solve the dual program. The primal program is
$\begin{array}{lcl} \text{Maximize: }\\ f(x) := 6x_1+4x_2\\ \text{Subject to:}\\ -2x_1-4x_2 \leq -12\\ x_1+x_2 \leq 7\\ x_1 \leq 4\\ x_2 \leq 5\\ x_1 \geq 0; x_2\geq 0. \end{array}$
So by trying to follow this (very good!) post i got the dual problem as
$\begin{array}{lcl} \text{Minimize: }\\ g(y) := -12y_1+7y_2+4y_3+5y_4\\ \text{Subject to:}\\ -2y_1+y_2+y_3 \geq 6\\ -4y_1+y_2+y_4 \geq 4\\ y_1 \geq 0; y_2\geq 0; y_3\geq 0; y_4\geq 0. \end{array}$
The solution is $y^*:=(0;4;2;0)$, which yields $g(y^*) = 36$. That's exactly the result i would expect, since it's the same result i get by solving the primal program (by drawing).
Since i can't draw the dual program i did some research and got to know that one might use the simplex-algorithm to solve it. But that looks like a little bit to much.. maybe there is some more elegant/basic way to get to the result?