Optimal Power Flow Management for Grid Connected PV Systems With Batteries | Synapse