Optimal Home Energy Management Algorithm Incorporating PVs/Electric Vehicles | Synapse