We consider the optimal market segmentation problem of a monopolist that faces a continuum of customers when it is costly to prevent resale (or parallel trade) among groups. In our framework, the monopolist chooses the number k of market segments, but also their design and the discriminatory...