Optimization theory and its application in food processing