Constraint-based clustering selection