Text this: Optimal Operation of Batch Membrane Processes