MICROGRID DESIGN AND OPTIMIZATION