Optimizing resource allocation in service systems via simulation: A bayesian formulation