Consistent planning through production optimization