Discrete optimization via simulation with stochastic constraints