A method for optimal charging station placement for ships