Self-optimizing control of fully electrified heat pump assisted distillation process by flash vapor circulation | Synapse