MPL Model Library MPL Model Library TV Spots, Example 12.4-2a, Hillier and Lieberman { Exmpl12.4-2_TVSpots.mpl } { Hillier and Lieberman, Introduction to Operations Research, 7th ed. } { Chapter 12.4, Example 2a, Marketing, Size 4x9, Page 594 } TITLE TVSpots; INDEX product:= 1..3; spots := 0..3; DATA Profit[spots, product] := (0, 0, 0, 1, 0, -1, 3, 2, 2, 3, 3, 4) ; J[spots=1..3] := (1, 2, 3); BINARY VARIABLE y[spots=1..3, product]; !Equals 1 if product i fills j spots MODEL MAX TotProfit = SUM(product, spots: Profit * y); SUBJECT TO NumProd[product]: SUM(spots=1..3: y) <= 1; NumSpots : SUM(product, spots: J*y) = 5; END Return to MPL Model Library