Optimizer for s-score