When constructing the dual, we want to try to find some upper bound on the maximization goal, we do this by multiplying all of our equations by positive constants , we obtain by summing all the equations we obtain the following equation: We see that the LHS is upperbounded by the RHS, we know that by minimizing the upper-bound to be as small as possible this will force the solution to the dual to be equal to the solution of the primal, so we must minimize : under the constraints: this is the dual.
Now we want to use the simplex algorithm to solve the given question. Next we re-write our question in the slack form, which is the following:
The first stage of the simplex algorithm is to note that is a feasible solution, because and is a vertex of our polytope. Since we already have a vertex let's move to another vertex to increase our objective value . Right now we know that , so increase we may increase any such that has a positive coefficient, for example we pick and call it our "entering variable".
Given this choice, let's see how much we can increase the value of , recall that we already know that , by we obtain the equation , by we know and through we have that , which doesn't add any new information. So the tightest obstacle is the one produced by which states that . Therefore we can safely increment , instead of actually setting this value, we instead do something different, we instead take equation and then solve the tighest obstacle for the nonbasic varaible Here we say that is the "entering varaible" because it has entered the LHS, and we say that is an "leaving variable" because has left the LHS. Now what we do is that we subsitute this value of in all the other parts of the slack form: At this point we see that after one interation we've increased to , now we repeat this process. So we pick since it has a positive coefficient, then we can look at the rest of the constraints: We see that yields , : , : , the tighest obstcale is given by with by re-arranging we obtain that we now substitute this in to obtain At this point there is one last varaible with a positive coefficient in 's equation which is , so we look at the equations again to find the tighest obstacle:
- :
- :
- :
We know that so then produces the tightest constraint, solving for in that equation yields now we can substitute that value everwhere: which we can concicely write as At this point we can see that there are no non-basic varaibles with positive coefficient and so our answer is given by and which gives optimal value .