Selberg Optimal Weights