Optimizing the Operation of Seawater Desalination Plants