OPTIMIZING HYBRID PHOTOVOLTAIC BATTERY DIESEL MICROGRIDS IN