Development of optimal bidding strategies for generation companies with risk management