Added medoid constraints.