Text this: Optimal operation of batch membranebprocesses