Text this: End-to-End Collaborative Optimization Method for Microgrid Power Prediction and Optimal Scheduling