The Transformer model outperforms traditional methods in electricity price forecasting, offering a reliable solution for sustainable power system operation.