metodo de la gran m de investigacion de operaciones

10
Simplex: Artificial Variables with TI-89 or Voyage 200 Hernan Rivera Texas Lutheran University October 18, 2004 0-0

Upload: api-3820030

Post on 10-Apr-2015

5.826 views

Category:

Documents


0 download

DESCRIPTION

Manual para realizar el metodo de la gran M en IOP para la ti89 y voyage

TRANSCRIPT

Page 1: Metodo de La Gran M de Investigacion de Operaciones

Simplex: Artificial Variableswith TI-89 or Voyage 200

Hernan RiveraTexas Lutheran University

October 18, 2004

0-0

Page 2: Metodo de La Gran M de Investigacion de Operaciones

Big M Method. Consider the following example.

Minimize Z = 25x1 + 1

2x2

Subject to 310x1 + 1

10x2 ≤2710

12x1 + 1

2x2 = 635x1 + 2

5x2 ≥ 6

x1,x2,x3 ≥ 0

The minimization problem is transformed into a maxi-mization form by the expression:

Maximize−Z = −25x1−

12x2

To transform the last constraint into an equation, we haveto subtract asurplus variable from the left hand side,

35x1 + 2

5x2− x3 = 6

The first constraint need aslackvariable to become equa-tion,

310x1 + 1

10x2 + x4 = 2710

Now all the constraints are equations but do not providea initial basic feasible solution, hence the need to addartificial variables to the second and third constraints,

0-1

Page 3: Metodo de La Gran M de Investigacion de Operaciones

obtaining the following augmented system.

−Z + 25x1 + 1

2x2 +Mx̄5 +Mx̄6 = 0310x1 + 1

10x2 + x4 = 2710

12x1 + 1

2x2 + x̄5 = 635x1 + 2

5x2− x3 + x̄6 = 6

Notice that in the objective function artificial variablesare penalized with big coefficientsM, so that they willnever become basic variables.

On TI-89 or Voyage 200 we will implement thisBigM coefficient by using the imaginary unit. These calcu-lators provide the following elementary operations thatwe use in this type of computations:mRow(expr, mat, index) that multiplies the row indi-cated inindex of the matrixmat by the expression inexpr.mRowAdd(expr, mat, index1, index2)that adds to rowindex2 the rowindex1multiplied byexpr.We put the matrix in the calculator to get:

0-2

Page 4: Metodo de La Gran M de Investigacion de Operaciones

However this is not a standard simplex tableau, since thecoefficients of the basic solution on the objective functionhave to be zero. To fix this problem we use elementaryoperations and get.

Having the standard tableau we proceed with the sim-plex. Assuming that the pivot is in theith row and thejth

column, the calculator instructions will look like

mRow(1/ans(1)[i, j],ans(1), i)

mRowAdd(−ans(1)[k, j],ans(1), i,k), k 6= i

After three iterations we obtain the following screen

0-3

Page 5: Metodo de La Gran M de Investigacion de Operaciones

The solution is−Z = −21

4 , x1 = 152 , x3 = 3

10, x2 = 92

0-4

Page 6: Metodo de La Gran M de Investigacion de Operaciones

Two Phase Method. We run the simplex twice, the firsttime with

Minimize Z1 = x̄5 + x̄6

until both arbitrary variables become non-basic, and thesecond time with:

Minimize Z2 = 25x1 + 1

2x2

The calculator implementation will take both phases si-multaneously. Changing to maximization we have:

−Z1 + x̄5 + x̄6 = 0

−Z2 + 25x1 + 1

2x2 = 0

The matrix, in the calculator will look like this one:

Again this is not a standard tableau, after two elementaryoperations we get:

0-5

Page 7: Metodo de La Gran M de Investigacion de Operaciones

Three iterations latter we get the following screen

This corresponds to an optimal tableau, and the artificialvariables are no longer basic variables. Ignoring the firstrow and the columns corresponding to artificial variableswe see that the resulting tableau is also optimal, and thesolution is as before.

−Z = −214 , x1 = 15

2 , x3 = 310, x2 = 9

2

0-6

Page 8: Metodo de La Gran M de Investigacion de Operaciones

Dual simplex Method In the original set of constraintswe add slack variable to the first, subtract surplus variableto the third and change the signs in the third constraint,this give us:

Maximize −Z = −25x1−

12x2

Subject to 310x1 + 1

10x2 + x3 = 2710

12x1 + 1

2x2 = 6

−35x1−

25x2 + x4 = −6

x1,x2,x3,x4 ≥ 0

The corresponding matrix, in the calculator, looks like:

This, however is not a standard simplex tableau, we needa third basic variable. We choosex2 in the second con-straint, make its coefficient equal to one and zeros for therest in its column.

0-7

Page 9: Metodo de La Gran M de Investigacion de Operaciones

The current solution is not feasible, we apply dual sim-plex to the last constraint to obtain

This is not optimal, it needs a regular simplex for thefourth column

0-8

Page 10: Metodo de La Gran M de Investigacion de Operaciones

This corresponds to an optimal tableau, and the solutionis:

−Z = −214 , x3 = 3

10, x2 = 92, x1 = 15

2

0-9