Mathematical Programming Applied in Energy System Optimization through Advanced Data-Driven and Co-Simulation Frameworks | Synapse