PDF OPTIMAL DESIGNING OF GRID CONNECTED MICROGRID SYSTEMS FOR