Question
The following questions refer to an advertisement budgeting problem involving printing of five magazines represented by binary variables M_1, M_2, M_3, M_4 and M_5. Write a constraint modeling a situation in which two of the magazines M_1, M_4 and M_5 must be printed. _______ Write a constraint modeling a situation in which if M_2 or M_3 is printed, they must both be printed. _______ Write a constraint modeling a situation in which magazine M_1 or M_3 must be printed, but not both. _______ Write constraints modeling a situation where M_2 cannot be printed unless magazine M_3 and M_5 also are printed. _______ Write a constraint in which not more than 4 of all the five magazines have to be printed. _______ Write a constraint in which exactly five of the magazines are printed. _______
Explanation / Answer
a> we have three options for print and out of these only 2 nust be printes so we'll have different combinations of Magazines that would be printed together.
total combination = 3 {M1M4 , M1M5 and M4M5}
the constaint would be : M1 , M4 >=0 or M1,M5 >=0 or M4,M5 >=0