Presentation on theme: "Unrestricted-in-Sign Variables"— Presentation transcript:
1Unrestricted-in-Sign Variables In solving LPs with the simplex algorithm, we used the ratio test to determine the row in which the entering variable became a basic variable. Recall that the ratio test depended on the fact that any feasible point required all variables to be nonnegative. Thus, if some variables are allowed to be unrestricted in sign (urs), the ratio test and therefore the simplex algorithm are no longer valid. In this section, we show how an LP with unrestricted-in-sign variables can be transformed into an LP in which all variables are required to be nonnegative.
2For each urs variable xi, we begin by defining two new variables xi` and xi``. Then substitute xi `- xi`` for xi in each constraint and in the objective function. Also add the sign restrictions xi ` andxi `` . The effect of this substitution is to express xi as the difference of the two nonnegative variables xi ‘and xi’’. Because all variables are now required to be nonnegative, we can proceed with the simplex.
3Example- Baker Problem A baker has 30 oz of flour and 5 packages of yeast. Baking a loaf of bread requires 5 oz of flour and 1 package of yeast. Each loaf of bread can be sold for 30¢. The baker may purchase additional flour at 4¢/oz or sell leftover flour at the same price. Formulate and solve an LP to help the baker maximize profits (revenues costs).
4Baker Problem Define x1 = number of loaves of bread baked x2 = number of ounces by which flour supply is increased by cash transactionsTherefore, x2 > 0 means that x2 oz of flour were purchased, and x2 <0 means that x2 ounces of flour were sold (x2 = 0 means no flour was bought or sold). After noting thatx1 ≥ 0 and x2 is urs, the appropriate LP is
5Objective functionz = 30x1-4x2Subject to5x1 ≤ 30+x2x1 ≤ 5x1 ≥ 0 and x2 is urs