OR - 5th Meeting For Upload
OR - 5th Meeting For Upload
Example:
x′1 = x1 + 10
x1 = x′1 – 10
M. Mujiya Ulkhaq, Ph.D. Reformulating “non-standard” models 4
Variables Allowed to be Negative (2)
Variables with No Bound on the Negative Values Allowed
• In the case where xj does not have a lower-bound constraint in the model formulated, another approach is:
xj is replaced throughout the model by the difference of two new nonnegative variables:
xj = xj+ − xj−, where xj+ ≥ 0, xj− ≥ 0.
• Since xj+ and xj− can have any non-negative values, this difference (xj+ − xj−) can have any value (positive or
negative).
Example:
x1 is unrestricted in sign
x1 = x1+ – x1−
2. Revise the objective function by subtracting from the original objective function an additional term for this
artificial variable:
Maximize Z = 3x1 + 5x2 Maximize Z = 3x1 + 5x2 – Mr1
Subject to x1 ≤ 4 Subject to x1 ≤ 4
2x2 ≤ 12 2x2 ≤ 12
3x1 + 2x2 + r1 = 18 3x1 + 2x2 + r1 = 18
x1 ≥ 0, x2 ≥ 0, r1 ≥ 0 x1 ≥ 0, x2 ≥ 0, r1 ≥ 0
4. This system is not yet in proper form from Gaussian elimination because a basic variable r1 has a non-zero
coefficient in Eq. (0) (Recall that all basic variables must be algebraically eliminated from Eq. (0).)
Eliminate r1 from Eq. (0) algebraically: subtract Eq. (0) M times Eq. (3)
Z – 3x1 – 5x2 + Mr1 = 0
M3x1 + M2x2 + Mr1 = 18M
Z – (3M + 3)x1 – (2M + 5)x2 = –18M
Optimal Solution:
basic variables:
(x1, s1, x2) = (2, 2, 6)
Z = 36
s2 is called a surplus variable because it subtracts the surplus of the left-hand side over the right-hand side to
convert the inequality constraint (≥) to an equivalent equality (=) constraint.
Optimal Solution:
basic variables:
(s2, x2) = (5/2, 3/2)
Z = 15/2
• The Phase 1’s objective function is obtained by dividing the Big M method’s objective function by M and then
dropping the negligible terms (i.e., the decision variables).
• Since Phase 1 concludes by obtaining a BF solution for the real problem (one where r1 = 0), this solution is then
used as the initial BF solution for applying the simplex method to the real problem (with its real objective
function) in Phase 2.
Optimal Solution:
basic variables: (x1, s1, x2) = (2, 2, 6)
Z = 36
• Phase 1 : Maximize Z = – r1 – r2
Subject to x1 + 3x2 + x3 + s1 = 5 s1 is the slack variable
2x1 – x2 + x3 – s2 + r1 = 2 s2 is the surplus variable
4x1 + 3x2 – 2x3 + r2 = 5 r1 and r2 are the artificial variables
x1, x2, x3, s1, s2, r1, r2 ≥ 0
Optimal Solution:
basic variables: (x3, x1, s2) = (2.5, 2.5, 5,5)
Z = 12.3