Real-time parameter optimization based on neural network for smart injection molding