Prev Next Top Pivot2_1

Using Pivot Function to solve Equation 2.1

Description
In this section we apply the Matlab function Pivot to the problem in Equation 2.1.

Initial Tableau
The initial tableau format for this problem is specified by entering
     A = [ 2 3 1 1 0 0 0  5
           4 1 2 0 1 0 0  11
           3 4 2 0 0 1 0  8
           5 4 3 0 0 0 -1 0 ]
The result of this operation is:
     A = {
     [ 2 , 3 , 1 , 1 , 0 , 0 , 0 , 5 ]
     [ 4 , 1 , 2 , 0 , 1 , 0 , 0 , 11 ]
     [ 3 , 4 , 2 , 0 , 0 , 1 , 0 , 8 ]
     [ 5 , 4 , 3 , 0 , 0 , 0 , -1 , 0 ]
     }

First Pivot
As in Tableau2_1 we choose row index 1 and column index 1 in the tableau for our first pivot:
     r = 1;
     c = 1;
     B = Pivot(A, r, c)
The result of this operation is:
     B = {
     [ 1 , 1.5 , 0.5 , 0.5 , 0 , 0 , 0 , 2.5 ]
     [ 0 , -5 , 0 , -2 , 1 , 0 , 0 , 1 ]
     [ 0 , -0.5 , 0.5 , -1.5 , 0 , 1 , 0 , 0.5 ]
     [ 0 , -3.5 , 0.5 , -2.5 , 0 , 0 , -1 , -12.5 ]
     }

Second Pivot
As in Tableau2_1 we choose row index 3 and column index 3 in the tableau for our second pivot:
     r = 3;
     c = 3;
     C = Pivot(B, r, c);
The result of this operation is:
     C = {
     [ 1 , 2 , 0 , 2 , 0 , -1 , 0 , 2 ]
     [ 0 , -5 , 0 , -2 , 1 , 0 , 0 , 1 ]
     [ 0 , -1 , 1 , -3 , 0 , 2 , 0 , 1 ]
     [ 0 , -3 , 0 , -1 , 0 , -1 , -1 , -13 ]
     }

Input File: Pivot2_1.m