A gradient optimization scheme for solution purification process. (November 2015)