Tool for optimization of energy consumption of membrane-based carbon capture.