Smart Manufacturing using Control and Optimization