



Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!




Up to now we have been working with maximisation problems. But sometimes we will need to minimise and, we know from the dual that any maximisation problem has an associated minimisation problem with the same solution.
What do we do in order to minimise?
A solution would be to cry, another one give up this lecture course and change subjects, but there is no need for such drastic actions. Minimisation is basically the same as maximisation with a change in sign.
There are two ways of solving a minimisation problem. The first one is to go back to first principles, and rethink the optimality rule in the Simplex algorithm. I leave this for you to think about.
In other opportunities I have said that I prefer the way of minimal effort, so I go for the lazy option. All we have to do is to realise that minimising f(x) is the same as Maximising –f(x). This is to say, we change the sign to the objective function and we apply the rules we already know.
Equality constraints. Consider the following problem (Taha, 1971)
We treat equality constraints as if they were of the less or equal type. This is, we add a positive slack variable. Of course, if this slack variable takes a value other than zero, the constraint will not hold as equality, so we need to force this slack variable to take the value zero in the final solution. This is easy to do: we just include the slack variable in the objective function with a penalty. We have to be careful; the variable has to be introduced in the objective function with a penalty, not a reward. If we are maximising, the slack variable enters the objective function with a negative sign, a cost amongst profits. If we are minimising, it enters with a large positive coefficient. The previous problem would look like:
I have created a slack variable in the equality constraint, and I have included this variable in the objective function with a large penalty of 1000. If S 2 was to take a value that is different from zero, say 1, the value of x 0 would decrease by a large amount,
By adding the slack variable into the objective function we add an extra complication. In the version of the algorithm we have learned, we would start with the variables x0, S1, and S 2 taking values different from zero, and we would be able to see the solution directly. But this is no longer the case; we are forced to take one more step in Simplex. We need to start by transforming the S 2 column into a unit vector. This we do in the standard way. The manipulations can be seen in the tableau below:
Bas X 0 X 1 X 2 X 3 S 1 S 2 Sol Rat
1 -5 -12 -4 0 1000 0 E 1 0 1 2 1 1 0 5 E 2 0 2 -1 3 0 1 2 E 3
The final solution is x 1 = 1, x 2 = 0, x 3 = 0. We see that the second constraint holds in the form of equality since S 2 = 0. The value of the objective is 15/3.
The inclusion of the penalty value in the objective function has consequences. We saw that the value of the dual variable is to be found in the objective equation under the slack variable, but this is no longer the case. In order to know the true dual value we need to remove the penalty value of 1000. The answer to the question “by how much would profit increase if the equality constraint was relaxed in one unit?” is 7/6 units.
Constraints in the form greater or equal. To deal with these constraints we exploit the idea of a penalty value that has just been introduced. We will use an example, also taken from (Taha 1971).
or equal constraints whilst the maximisation problem is always associated with smaller or equal constraints.
So, the first step in writing the dual is related with forcing the equations to behave as desired. We will see this with the example we have just been working with.
Because we are minimising, all the constraints need to be of the greater or equal type. But only one of the constraints is of this form. We start with the third constraint and change the less or equal to greater or equal. This is easy to do, just change the sign of the constraint.
We have a negative sign in the right hand side, never mind. In this procedure we are happy to tolerate it.
We still have a dissident constraint. The first constraint is of the equality type and should be greater or equal. No problem either, we replace the first constraint with a couple of constraints. To be equal implies being at the same time greater or equal and smaller or equal.
Now we deal with the less or equal constraint by changing signs
We are ready to apply the rules, we need to use matrix algebra
With the dual
And returning to the algebraic formulation we have
As we see, each constraint generates a dual variable. This is what we argued earlier, since each dual variable measures the opportunity cost of the resources. Remember that a dual variable measures the amount by which the value of the optimum would change if we were able to relax the constraint by one unit.
We see that an equality constraint results in two dual variables. This needs a little thought. Why is this? Well, an equality constraint can be relaxed in two ways: increasing the value on the right hand side of the constraint is a relaxation, and decreasing the value on the right hand side of the constraint is a relaxation. Given the fact that we are working with linear equations, the effect of one unit increase is the
same as the effect of one unit decrease. In reality we have a single dual variable. This is easy to see with a change of variable:
This is equivalent to:
We do not have to worry about the change of variable. The way Simplex works guarantees that y 1 and y 2 will never be different from zero at the same time. The only possibilities are: y 1 > 0 and y 2 = 0, in which case y 5 > 0; y 1 = 0 and y 2 > 0, in which
case y 5 < 0; and y 1 = 0 and y 2 = 0, in which case y 5 = 0. In summary, y 5 can be positive, negative, or zero, it is unconstrained in sign. In fact, when we have a variable that is unconstrained in sign in a LP, we split it in two variables in this very way. We have already seen that LINGO expects all variables to be positive, this is why we need to specify if a variable is unconstrained in sign.