OPTIMIZATION OF MICRO GRID WITH DISTRIBUTED ENERGY RESOURCES USING