OPTIMIZING MICROGRID SYSTEMS INTEGRATING