OPTIMIZED POWER AND CAPACITY CONFIGURATION STRATEGY OF A GRID SIDE