1. A method for controlling a manufacturing apparatus, the method comprising: calculating a set of predicted output values; obtaining a prediction model based on a set of input parameters, the set of predicted output values, and empirical output values; optimizing the prediction model by minimizing differences between the set of predicted output values and the empirical output values; and adjusting the set of input parameters to obtain a set of desired output values to control the manufacturing apparatus.