Optimized Power Dispatch for Smart Building and Electric Vehicles with V2V, V2B and V2G Operations | Synapse