Optimal Operation of Batch Membrane Processes