A) Suppose you have modeled a linear program that includes the decision variables x1 and x2. You wish to incorporate the additional restriction that |x1 − x2| = 0, 5, or 12. Show how you would formulate this problem as an ILP.
B) Suppose you have modeled an ILP that includes includes a variable z, which is restricted to be at least 0, no more than 20, and integer-valued. You wish to incorporate the additional restriction that z does not take on any value in the set {4, 5, 6, 7, 8}. Show how you would formulate this problem as an ILP. (Hint: Can you write this as an either-or constraint?)
Get Answers For Free
Most questions answered within 1 hours.