Optimal Design & Operation of RO Systems