Algorithmic? Desalination – Saltwater +- Freshwater

I was wondering. Does there exist smart desalination. Like for car batteries where you have lots of computerized control algorithms.

Could there exist a recurrent desalination? Where one parameter is to control the level of salt in the tubes. That is. You add freshwater to the saltwater prior to desalination according to some dynamic control algorithm.

Perhaps the salt level changes could dissolve ?cloths easier?