DUAL LAYER OPTIMIZATION CONFIGURATION OF USER SIDE ENERGY STORAGE