1. A computer method for generating parameters for a manufacturing apparatus to produce wafers, the method comprising: identifying one or more input parameters that cause a change in output characteristics of the wafers produced by the manufacturing apparatus; estimating the output characteristics of the wafers based on changes to the input parameters; minimizing a first mathematical function to yield optimized output values; and generating a recipe for controlling the manufacturing apparatus for producing the wafers based on the optimized output values.