High-dimensional integration for optimization under uncertainty