Optimization with missing data