Text this: Optimal Operation of a Photovoltaic Integrated Captive Cogeneration Plant with a Utility Grid Using Optimization and Machine Learning Prediction Methods