MPL Model Library MPL Model Library TV Spots, Example 12.4-2b, Hillier and Lieberman { Exmpl12.4-2b_TVSpots.mpl } { Hillier and Lieberman, Introduction to Operations Research, 7th ed. } { Chapter 12.4, Example 2b, Marketing, Size 7x9, Page 595 } TITLE TVSpots; INDEX product:= 1..3; spots := 0..3; DATA Slope[product, spots] := (0, 1, 2, 0, 0, 0, 2, 1, 0, -1, 3, 2); BINARY VARIABLE y[product, spots]; MODEL MAX TotProfit = SUM(product, spots: Slope * y); SUBJECT TO Cnst [product, spots=2..3] : y[product, spots] - y[product, spots-1] <=0; Tot : SUM(product>0, spots>0: y) =5; END Return to MPL Model Library