Machine learning being used to optimize production for PanAm