optimization with noise