Optimal designs for the elimination of heterogeneity