Economic optimization for the dynamic operation of a grid connected and battery-supported electrolyzer | Synapse