Production Function and Optimization