On some optimization problems under uncertainty