Ofc. this market is highly regulated, but if I understood correctly there's a lot of room in between the whitespace for interpretations.
(Note : Highly simplified explanation, in reality this will be implemented via leverage and derivatives, but I've consulted for an energy trading division a couple of decades ago.)
In the end, trading is betting on arbitrage, and I don't see why an energy producer would stop leveraging this "free money".
A simple example: if there was good weather expected in another country, the org would set up a contract to buy the energy surplus in that country at a cheaper price. Whether or not or bio-gas & coal plants were running or not was mostly based on how much energy we needed after taking into account what happened on the trading floor, the price of our fuel and how much the other country would be charging. Of course, the other country could decide we didn't offer a good price and decide to tone down it's amount of energy it produced.
I recall a lot of market making on the CO2 emission rights for example, but that's another story.
This is a simple scenario, in real life it was way more complex. (Just think about planning something like the delivery of coal at a plant.)
It seems what has happened is that many of these retailers are some small fly-by-night operations. When wholesale prices are low, they make a lot of hay (making sure to store that somewhere that regulators can't get their hands on them), when the wholesale price rises, well, declare bankruptcy, and start a new company doing the same. Rinse and repeat.
Regulators should really step up the game, making sure that retailers are properly hedged etc. Or then forget this idea of "deregulated" electricity markets.
The calculations for plant scheduling took a gazillion of parameters into account (CO2 emission rights, pricings of different kinds of fuel, weather predictions, ...)
These markets not only trade energy, but also fuel, logistics, CO2 emissions, ... (using direct quantities, options, leveraged products, things like insurance, ... If you could imagine it, there was probably someone trading it.)
If you are into this stuff: I built the prototype that validated their portfolio position with the other suppliers; it was a protocol called EPM (Electronic position matching), developed by the EFET (European Federation of Energy Traders). I am not sure how it evolved, as this was the first iteration of the protocol...
<<The fire at the Interconnexion France-Angleterre (IFA) site broke out in the early hours of Wednesday. The site was evacuated and there were no reports of casualties.
After the fire an electricity interconnector running under the English Channel was "not operating", the National Grid said in a statement.>>