OPTIMIZATION STRATEGY OF POWER PURCHASE AND SALE FOR ELECTRICITY