OPTIMIZATION FOR PORT ENERGY SYSTEMS VIA MICROGRID PLANNING