Next Article in Journal
Economic Viability of Implementing Structural Health Monitoring Systems on the Support Structures of Bottom-Fixed Offshore Wind
Next Article in Special Issue
Optimization of Air Handler Controllers for Comfort Level in Smart Buildings Using Nature Inspired Algorithm
Previous Article in Journal
A Modified Correlative Model for Condensation Heat Transfer in Horizontal Enhanced Tubes with R32 and R410A Refrigerants
Previous Article in Special Issue
Contribution to Active Thermal Protection Research—Part 2 Verification by Experimental Measurement
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

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

1
Department of Electrical Engineering, Syed Babar Ali School of Science and Engineering, Lahore University of Management Sciences, LUMS, Lahore 54792, Pakistan
2
Department of Electrical and Electronic Engineering, University of Jeddah, Jeddah 21959, Saudi Arabia
*
Author to whom correspondence should be addressed.
Energies 2023, 16(13), 4884; https://doi.org/10.3390/en16134884
Submission received: 26 April 2023 / Revised: 31 May 2023 / Accepted: 1 June 2023 / Published: 22 June 2023

Abstract

:
The operation of smart buildings (with solar, storage and suitable power routing infrastructure) can be optimized with the addition of parking stations for electric vehicles (EVs) with vehicle-to-everything (V2X) operations including vehicle-to-vehicle (V2V), vehicle-to-building (V2B) and vehicle-to-grid (V2G) operations. In this paper, a multi-objective optimization framework is proposed for the smart charging and discharging of EVs along with the maximization of revenue and savings of smart building (prosumers with solar power, a battery storage system and a parking station) and non-primary/ordinary buildings (consumers of electricity without solar power, a battery storage system and parking station). A mixed-integer linear program is developed to maximize the profits of smart buildings that have bilateral contracts with non-primary buildings. The optimized charging and discharging (V2X) of EVs at affordable rates utilizing solar power and a battery storage system in the smart building helps to manage the EV load during on-peak hours and prevent utility congestion. The results indicate that in addition to the 4–9% daily electricity cost reductions for non-primary buildings, a smart building can achieve up to 60% of the daily profits. Further, EVs can save 50–69% in charging costs while performing V2X operations.

1. Introduction

Enhancing the dependability of the power supply and the flexibility of building energy through integrating electric vehicles (EVs) into smart buildings offers enormous potential [1,2]. The decreasing costs of solar PV modules (0.3 USD/kWp [3,4]) and lithium-ion battery storage system storage (156 USD/kWh [5]) have encouraged consumers with bulk consumption (buildings) to install the local resource of electricity to reduce the dependence on utility (grid). With an increase in EV adoption, prosumers (smart buildings) may contribute to bettering the running of the power systems. Smart buildings with solar PV and batteries can assist in charging the EVs during on-peak hours [6].
Several studies have been reported in the literature to maximize the profits associated with installing EV charging stations in smart buildings with vehicle-to-everything (V2X) capabilities including vehicle-to-vehicle (V2V), vehicle-to-building (V2B) and vehicle-to-grid (V2G) operations. However, the focus is still on the local optimization of the building load or parking station. For instance, the authors in [7] have proposed an optimal battery storage system sizing for maximizing profit in a charging station. The promotion of solar PV for the charging of EVs to maximize the system operator profit is proposed in [8]. The authors in [9], enabled V2V power transfer from a shared electric vehicle fleet to reduce the impact on distribution grids. For many mobile EVs, authors proposed an intelligent V2V charging navigation technique in [10]. Electric vehicles (EVs) can be charged at a single charging station using the offline and online scheduling methods developed in [11]. In [12], the authors suggested a flexible energy management protocol that might assist EVs in achieving more adaptable and intelligent charging and discharging behaviors.
The studies mentioned earlier examined various business strategies and integrated energy management systems, but there is a lack of existing literature on the profit models for EVs with V2X capability. Previous research works have not taken a comprehensive approach to modeling vehicle-to-everything (V2X) operations including V2V, V2B and V2G along with the optimization of the financial benefits of both prosumers (smart building and EVs) and consumers (non-primary buildings) through bilateral contracts between the smart and non-primary buildings. Therefore, this paper introduces a novel techno-economic framework that enables lucrative power sharing among the following entities: (a) an EV fleet with V2V, V2B and V2G capabilities, (b) a smart building with a provision of rooftop PV, dedicated storage, and charging infrastructure, and (c) non-primary buildings that are only connected to the grid (without solar PV and storage).
The proposed work utilizes a mathematical model to maximize the potential profits of the smart building while providing monetary incentives to the non-primary buildings and the EVs’ fleet. The non-primary buildings have bilateral contracts with the smart building, which stipulate a minimum contracted load at a predetermined tariff lower than the time of use (TOU) cost. The parking station in the smart building facilitates the optimized charging of the EVs’ fleet using power from the grid, solar power, a battery storage system, and a power trade withing the EVs as well as optimized discharging to the grid, smart building, non-primary buildings, and battery storage system and power trading among electric vehicles. The smart building trades electricity to both the EVs’ fleet and the non-primary buildings at rates lower than the TOU tariff, fostering lucrative interaction and active engagement among the participating entities. During on-peak hours, the EVs’ fleet benefits from attractive charging rates provided by the smart building, utilizing solar energy and stored power, thereby supporting the utility by shaping the load curve during on-peak grid hours. This model, to the best of the authors’ knowledge, represents an optimized operation for the grid, local building loads, rooftop solar PV, battery storage system, and the EVs’ fleet, yielding benefits for multiple parties.
For illustration motives to assist in mimicking the model’s applicability, we used three real buildings in Auckland, New Zealand, and a fleet of fifteen EVs. The power sector of New Zealand is used as an example to assesses the optimized power trade to maximize profits for each building (smart and non-primary) as well as the EVs’ fleet, resulting in tangible benefits.
The remaining sections are arranged as follows: The system overview, which describes the framework and numerous system component parameters, is presented in Section 2. In Section 3, a mathematical formulation of the proposed framework is presented. To show the practical applicability of the model, Section 4 discusses the numerical cases and simulation results, followed by conclusions in Section 5.

2. System Overview

Figure 1 depicts the several entities engaged in the power trading network including EVs, the utility with on-peak and off-peak price plan, and three different buildings.
  • Smart Building: This building has a rooftop solar PV (400 kWp in this case) with the provision of 400 kWh of storage. Additionally, 15 EVs can use the available parking station for charging and discharging.
  • Non-primary Building(s): These include buildings close to the smart building, that lack rooftop solar power, a battery storage system, and an EV parking station. These buildings have bilateral load agreements with the smart building. This study considers two non-primary buildings with power trading agreements with the smart building.
  • Electric Vehicles: The parking station within the smart building can charge and discharge 15 EVs’ fleet. EVs can transfer power between vehicles, smart buildings (load and battery storage system), non-primary buildings, and the utility.
Table 1 provides an overview of the system component sizes and related costs.

3. Problem Formulation

An optimization problem using a mixed-integer linear programming (MILP) approach is formulated in ILOG Optimization Studio to achieve optimized power dispatch and cost savings for smart and non-primary buildings, as well as a fleet of electric vehicles. The power flow diagram in Figure 1 illustrates how power is distributed between the smart building, non-primary buildings, the grid, and the EVs. The diagram also highlights that the smart building and EVs can provide power back to the grid at significantly lower rates compared to the time of use (TOU) tariff rates. Additionally, the smart and non-primary buildings can acquire electricity from the EVs at a slightly reduced tariff compared to the TOU pricing. Further, this study primarily focuses on the techno-economic evaluation of the system, and it is worth noting that power quality constraints can be incorporated into the proposed model to enhance the practicality of the results [15,16]. By considering power quality factors, the model can provide more comprehensive and accurate assessments of the system’s performance and feasibility.
The goal of the optimization is to determine the values of decision variables that maximize the overall profit for the smart and non-primary buildings, as well as the EVs’ fleet. The optimization problem includes 359 decision variables that are non-negative and 32 decision variables that are binary. A multi-objective optimization problem is solved using a profit model, which ensures the highest profitability for the smart building, non-primary buildings, and the EVs’ fleet. One hour is chosen as the time step for the optimization model. The non-primary buildings are interconnected with the smart building, allowing power sharing between them. It is guaranteed that the minimum contracted load demand of the non-primary buildings, when purchasing electricity from the smart building, will always be supplied by the smart building, using power from sources such as solar PV, storage, or power imported from the grid. The smart building features a parking station that enables EVs to be charged either directly from the grid or through solar PV or battery storage system sources. The primary building provides power to the EVs at reduced rates rather than charging directly from the grid. Additionally, the EVs’ fleets can bilaterally trade with each other depending upon the state of power (SOP) of the participating vehicles. The objective function and set of 469 inequality constraints and 45 equality constraints provide optimal power dispatch in accordance with the suggested profit model.

3.1. Objective Function

The objective function, denoted by Equation (1), seeks to maximize the smart building’s net profit. It can sell electricity to a variety of parties participating in the power trading industry, including utility (net metering), non-primary buildings, and electric vehicles (parking station). The smart building’s net profit in Equation (1) is calculated by deducting the daily costs of the battery storage system, solar power, and charger from the total income received. The best way to maximize the net income of the smart building is given by Equation (2).
P M a x = R M a x ( B a t t e r y   C o s t + S o l a r   P V   C o s t + C h a r g e r   C o s t )
R M a x = M a x ( R g + R B i + R E n + R B 1 O B C E n C B T B i P E n ) ; n ; i = 2,3
Power exports to the utility ( R g ), B2 and B3 ( R B i ), and Evs ( R E n ) make up the smart building’s revenue. The savings achieved by satisfying the smart building’s load demand are also included in its income ( R B 1 ). The costs incurred by the smart building include a flow of cash to the utility to satisfy the contracted loads of non-primary buildings ( T B i ), charging the battery storage system ( C B ), charging electric vehicles ( C E n ), importing electricity from the utility to satisfy the outstanding load of B1 ( O B ), and paying the electric vehicles for buying electricity ( P E n ). The terms in (2) are further defined as follows:
R g = t = 1 24 T S G t E s t + T B G t / δ d b E s ( t )
R B i = t = 1 24 ( T S B i t E C B i ( t ) + T B B i t / δ d b E C B i ( t ) ) ; i = 2 , 3
R E n = n = 1 15 t = 1 24 ( T B E n t E E B 1 ( t ) ) + ( T S E n t E E B 1 ( t ) ) + ( T G E n ( t ) E E G ( t ) ) δ c e Δ t
R B 1 = t = 1 24 T S B 1 t E p t E s t + T B B 1 t / δ d b E p t E s t Δ t
O B = t = 1 24 T G B 1 t E p t Δ t
C E n = t = 1 24 T G E n t E p t Δ t
C B = t = 1 24 T G B t δ c b E p t Δ t
T B i = t = 1 24 T G B i t E p t E C B i t Δ t
P E n = n = 1 15 t = 1 24 ( T E n B 1 t + T E n B t ) E E X ( t ) Δ t
In our study, we have focused on a single smart building. However, the proposed model can be extended to encompass multiple ‘M’ smart buildings. These buildings would be equipped with solar panels, battery storage systems, and charging facilities to facilitate various vehicle-to-everything (V2X) operations, including vehicle-to-vehicle (V2V), vehicle-to-building (V2B), and vehicle-to-grid (V2G) operations. In the case of multiple smart buildings, the objective function will be modified and overall revenues of multiple smart buildings will be maximized through Equation (12).
R M a x = M a x R g m + R B i m + R E n m + R B m O B m C E n m C B m T B i m P E n m ; n ; i = 2,3 ; m
The terms in Equation (12) include revenues earned from the power traded by each smart building with the utility ( R g m ), B2 and B3 ( R B i m ), and EVs ( R E n m ). The savings earned by meeting load of each smart building are termed as ( R B m ). The costs sustained by smart buildings includes flow of cash to the utility to satisfy the contracted loads of non-primary buildings ( T B i m ), charging the battery storage systems of each smart building ( C B m ), charging electric vehicles through the parking station in each smart building ( C E n m ), importing electricity from the utility to satisfy the outstanding loads of each smart building ( O B m ), and payments to the electric vehicles for buying electricity by each smart building ( P E n m ).

3.2. Problem Constraints

3.2.1. Storage Constraints

The battery storage system constraints are listed as Equations (13)–(17), including 32 inequality constraints and 15 equality constraints. The two variables in Equation (13) guarantee that the battery storage system cannot be charged and drained at the same time; Equation (14) restricts battery storage system charging; and Equation (15) sets higher and lower limitations on the battery storage system’s charging and discharging, respectively. The battery storage system’s maximum quantity of power that may be drawn is determined by Equation (16). As of the next time slot, the battery storage system power is expressed as Equation (17).
α ( t ) + β ( t ) 1 α ( t ) , β ( t ) 0,1 , ( t )
( T G B t + T S B t + T E n B t ) α ( t ) S O P B M a x ; ( n )
S O P B M i n S O P ( t ) S O P B M a x
( T B B 1 t + T B B 2 t + T B B 3 t + T B G t + T B E n t ) β ( t ) ( S O P B M a x S O P B M i n ) ; ( n )
S O P B t + 1 = S O P B t + ( δ c b T G B t + ( ( δ c b T S B t + δ c b T E n B t α t ( T B G t / η d i s c h ) + ( T B B 1 t / δ d b ) + ( T B B 3 t / δ d b ) + ( δ c e T B E n t / δ d b ) β t ; ( n )

3.2.2. Building Load and Power Trading Constraints

The utility, batteries, or solar can all meet the smart building’s load requirement, which is expressed as 15 inequality constraints as shown in Equation (18). The bilateral contractual power assures that B2 and B3 will obtain the minimum contracted loads, modeled as 32 inequality constraints, as shown by Equations (19) and (20), respectively.
0 T G B 1 t + T B B 1 t / δ d b + T S B 1 t + T E n B 1 t / δ d e L 1 t ; ( n )
C B i t T G B i t + T B B i t / δ d b + T S B i t L i t ;   i = 2 , 3
0 T G B i t + T B B i t / δ d b + T S B i t + T E n B i t / δ d e L i t C B i t ;   i = 2 , 3 ; ( n )

3.2.3. Electric Vehicle Constraints

The utility, solar power, or the battery storage system may all be used to charge EVs. A fleet of fifteen electric vehicles (EVs) with a capacity of 24 kWh is taken for simulation purposes. With the increased capacity of electric vehicles (EVs), trading with buildings can occur more frequently during peak hours when the supply from solar and battery sources is limited. EVs can take advantage of off-peak hours to charge their batteries and participate in vehicle-to-everything (V2X) operations based on their state of power (SOP). This allows EVs to actively contribute to energy exchanges and support overall grid stability and management. The parking station in the smart building is further assumed to have 15 Level 2 chargers (SAE-J1772, 208-240 VAC) [6] that are accessible, having an efficiency of 90%. The standard working hours are assumed as 8 a.m. to 6 p.m. Through the t location scale distribution, the EVs’ arrival time is determined [13].
In line with this, Figure 2 displays the various EV-produced arrival timings. Each EV’s stay time is computed using a normal distribution with a mean of 8.5 h. The S O P E n ( t ) of each incoming EV is calculated using Monte Carlo simulations. The procedure for the charging and discharging of EVs and trading among the EVs is described in Equations (21)–(32) through 390 inequality constraints and 15 equality constraints. For each Level 2 charger, the term ‘ ε ’ denotes the charger capacity, which is 10 kW.
φ E n ( t ) + ϕ E n ( t ) 1             ( φ E n ( t ) , ϕ E n ( t ) ) 0,1 , t ( n )
T G E n t + T B E n t + T S E n t φ E n ( t ) S O P E n M a x ;   ( n )
S O P E n M i n S O P E n ( t ) S O P E n M a x ; ( n )
( T E n B 1 t + T E n B 2 t + T E n B 3 t + T E n B t + T E n G ( t ) ) ϕ E n ( t ) ( S O P E n M a x S O P E n M i n ) ; ( n )
S O P E n ( t + 1 ) = S O P E n ( t ) + ( ( δ c e T G E n ( t ) ) + ( δ c e T B E n t / η d i s c h ) + ( δ c e T S E n ( t ) ) ) φ E n ( t )   ( ( δ c b T E n B ( t ) / η d i s c h ) + ( T E n G ( t ) / η d i s c h ) +   ( T E n B 1 ( t ) / δ d e ) +   ( T E n B 2 ( t ) / δ d e ) + ( T E n B 3 ( t ) / δ d e ) )   *   ϕ E n ( t ) ; ( n )
( δ c e T G E n t ) ε ;   ( n )
( δ c e T S E n ( t ) ) ε ;   ( n )
( δ c e T B E n t / δ d b ) ε ;   ( n )
( T E n G t / δ d e ) ε ;   ( n )
( δ c b T E n B ( t ) / δ d e ) ε ;   ( n )
( T E n B I ( t ) / δ d e ) ε ;   n , i = 1,2 , 3
( δ c b T E n E n ( t ) / δ d e ) ε ;   n , ( n n )

3.2.4. Solar Constraint

The total amount of electricity sold to the utility, and distributed to the battery storage system, the EVs’ fleet, smart building and non-primary building is equal to the solar output modeled as 15 equality constraints, as shown by Equation (33):
T S B 1 t + T S B 3 t + T S B 3 t + T S G t + T S B t + T S E n t = a ( t )         ( n )

3.3. Solution Methodology

There are limitations to non-negativity for each state variable. The model is created as a mixed-integer linear program (MILP), solved using the CPLEX solver. The associated input data, including the daily load demands for each building, solar production, tariff details, and contractual tariffs, are readily accessible for assessing the technique and are further described in our prior work [17].

4. Results and Discussion (Case Studies)

The daily earnings and savings for smart and non-primary buildings are assessed in three cases. Figure 3 illustrates the utility’s on-peak and off-peak pricing, contract rates for non-primary buildings and sales/purchase prices for EV charging/discharging. For both non-primary buildings, identical contract rates are used, which are less expensive than the utility price. A minimum contractual load of 5 kW is maintained during the simulations. Further, it is assumed that the utility can buy power at a price that is one-third of that of the utility and that EVs can be charged at a cheaper rate with solar power and batteries rather than with the utility. Additionally, EVs offer a power trade at slightly discounted prices compared to the utility prices to every participant (V2X trade).

4.1. Reference Case (Business As Usual)

Rooftop solar power, battery storage system, or electric vehicle charging facilities are absent from any of the buildings in this case. Our study shows that smart and non-primary buildings (B2 and B3) spend USD 50, USD 21, and USD 72, respectively, on buying all of the power from the utility. Furthermore, it is estimated that EVs will cost the system USD 9.5 in total to buy electricity.

4.2. Case 1

In this case, the smart building has 400 kWp rooftop solar power and a parking station (no battery storage system storage). Figure 4a–c displays the results of the optimized power transactions between the utility, solar, buildings, and electric vehicles. As seen in Figure 4a, solar energy powers electric vehicles and delivers power to smart and non-primary buildings to the greatest extent possible. It is seen from Figure 4b that EVs are charged from the utility when solar power is unavailable. Additionally, Figure 4c shows that buildings purchase power from the utility when solar power is unavailable. Additionally, Figure 5 shows that EVs exchange power among themselves depending upon the SOC and stay duration of each EV.

4.3. Case 2

In this case, the smart building is installed with solar power, a battery storage system (400 kWh) and a parking station. Figure 6a depicts the optimized power transactions from solar power to each building, EVs, and the utility. Further, Figure 6b illustrates the battery storage system’s changing power levels. The findings show that the battery storage system is charged during the off-peak hours and drains between the on-peak hours of 09:00 a.m. and 12:00 p.m. and 07:00 p.m. and 12:00 a.m, respectively.
Furthermore, Figure 7a shows that a sizable portion of the EVs’ charging occurs between the hours of 2:00 p.m. and 5:00 p.m. using either solar power or the battery storage system. The utility’s optimized power transactions with smart and non-primary buildings are depicted in Figure 7b. It has been noted that neither the smart building nor non-primary buildings purchase any power from the utility between 9:00 a.m. and 12:00 p.m., which is the on-peak price time. Additionally, Figure 8 shows the power trade between EVs (V2V). However, owing to the battery storage system’s availability during on-peak hours, EVs trade less frequently with each other compared to in this case compared to in case 1 when only solar power was available.
The implemented business model proves to be feasible for smart buildings equipped with EV charging infrastructure (with V2V, V2B and V2G capabilities), as all buildings and the EVs’ fleet make revenue and savings compared to those in the business-as-usual case. This highlights the viability of the proposed model. Notably, there is a substantial price difference between on-peak and off-peak hours, encouraging peer-to-peer (P2P) energy trading within the grid-connected arrangement.
The optimization framework allows the computation of fiscal benefits for each interconnected building (B1, B2, and B3) and the electric vehicles’ fleet, ensuring mutual benefits for all participants. The utilization of solar and storage resources by primary and non-primary buildings, as well as EVs, during on-peak hours, enables the shared demand on the electric grid. Additionally, the localized power sharing among non-primary buildings and the charging of electric vehicles using local resources contribute to reduced losses (I2R) and enhanced grid resilience.
The daily revenues and savings earned by the smart building, non-primary buildings and fleet of electric vehicles for cases 1 and 2 are shown in Table 2. It can be observed that that an annual revenue of USD 10,950 and USD 28,871.5 are earned by the smart building for cases 1 and 2, respectively. From Table 1, the total cost of the system for cases 1 and 2 can be computed as USD 100,500 and USD 158,500, respectively. Hence, the payback period for the smart building in cases 1 and 2 is calculated as 9.2 years and 5.5 years, respectively.
Table 3 lists the percentage revenues made by smart buildings and the cost reductions for non-primary buildings for a typical summer day. The formulae to compute percentage financial gains are given in Appendix A. Depending upon the total load and local supply (from solar power and/or the battery storage system) to the load, the revenues and savings for the smart building and non-primary buildings vary from 60–158% and 4–9%, respectively. The revenues and savings earned by the respective buildings increase with the addition of battery storage system storage. The smart building raises its revenue by around 98% and non-primary buildings increase their savings by around 4% after the inclusion of battery storage system storage in the smart building. However, the savings of EVs decrease by 19% in case 2 due to there being less trade with EVs during on-peak hours.

5. Conclusions

The deployment of rooftop PV along with a battery storage system and parking station with V2X capability (including V2V, V2B and V2G) in the smart building is presented in this study as a new paradigm for maximizing financial benefits. The smart and non-primary buildings agree on a minimum contractual load and contract pricing(s) based on the non-primary building’s load shape. At the parking station located in the smart building, EVs can be charged via the utility, solar power, or the battery storage system. This paper provides consistent results and valuable insights that can be derived from the conducted research, including the following:
  • The research demonstrates that bilateral arrangements between the smart building and non-primary building can be adjusted effectively to benefit all parties engaged in the trade.
  • The profits and savings of each building and the fleet of electric vehicles are influenced by several key factors, including the design of bilateral contracts, time-of-use tariffs, and the diverse characteristics of load profiles. Additionally, the charging and buying rates for EVs also play a significant role in determining profitability and savings.
  • Optimized charging strategies utilizing solar power, or storage technologies substantially reduce the reliance of EVs on the grid. Moreover, the on-peak hour load of both smart and non-primary buildings, as well as of EVs, is shared, further minimizing their dependency on grid power.
  • Based on the power level, arrival, and departure times of each vehicle, EVs can sell electricity to any of the entities including the building load, battery storage system storage, and utility along with the bidirectional trade between EVs (V2X).
  • The smart building (B1) earns a daily revenue of up to 158%, while the non-primary buildings and EVs have daily savings of up to 9% and 69%, respectively, due to the optimized power scheduling during on-peak hours with the inclusion of battery storage system storage.
  • The smart building is assured the highest financial gains due to the well-designed profit model. Additionally, the non-primary buildings and the fleet of electric vehicles achieve substantial cost savings in electricity expenses by leveraging the contracted load, pricing, and tariff mechanisms.
The proposed market architecture is applicable to a neighborhood comprising N buildings, where the smart building assumes responsibility for solar PV, storage, and charging infrastructure. By optimally involving N-1 non-primary buildings in the trading process, the aim is to maximize the revenues and savings for both the smart building and the non-primary buildings. The research findings demonstrate that the developed system enables and promotes interconnected buildings to connect while also providing convenient charging and discharging facilities to EVs within the smart building. In future, the suggested model can be extended to M smart buildings (with solar power, a battery storage system and charging facilities to support V2X operations (including V2V, V2B and V2G)) with bilateral contracts with N-M non-primary buildings.

Author Contributions

Conceptualization, S.M.A.; methodology, S.M.A.; software, S.M.A.; validation, H.A.K., S.S. and A.M.H.; formal analysis, S.M.A.; investigation, H.A.K., S.S. and A.M.H.; data curation, S.M.A.; writing—original draft, S.M.A.; writing—review and editing, S.M.A., H.A.K., S.S. and A.M.H.; supervision, H.A.K. and S.S.; project administration, H.A.K., S.S. and A.M.H.; funding acquisition, S.S. and A.M.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Ministry of Education in Saudi Arabia through the project number MoE-IF-UJ-R-22-20822-02.

Data Availability Statement

The data presented in this study are available in the article.

Acknowledgments

The authors extend their appreciation to the Deputyship for Research & Innovation, Ministry of Education in Saudi Arabia, for funding this research work through the project number MoE-IF-UJ-R-22-20822-02.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

Indices
Ttime (1–24)
ibuildings (1–3)
nelectric vehicles (1–15)
msmart buildings (1, 2,…, M)
Parameters
a ( t ) Power from solar power
L i ( t ) Load of building ‘i’
C B i ( t ) Contractual load of building ‘i’
E p ( t ) Electricity purchase price from utility
E s ( t ) Electricity sell price to utility
E E G ( t ) Electricity purchase price from utility for EVs
E E B 1 ( t ) Electricity purchase price from B1 for EVs
E E X ( t ) Electricity sale price by EVs
E E E ( t ) Sale/purchase price of electricity among EVs
E C B i ( t ) Electricity from solar/battery storage system sources at contracted rate for building ‘i’
S O P B M a x Maximum power from battery storage system
S O P B M i n Minimum power from battery storage system
S O P E n M a x Maximum power from EV
S O P E n M i n Minimum power from EV
δ cbEfficiency (charging) of battery storage system
δ dbEfficiency (discharging) of battery storage system
δ ceEfficiency (charging) of each EV
δ deEfficiency (discharging) of each EV
Δ t Time granularity (one hour)
Variables
T BG ( t ) Power transaction from battery storage system to utility
T GB ( t ) Power transaction from utility to battery storage system
T SB ( t ) Power transaction between solar PV and battery storage system
T SG ( t ) Power transaction between solar PV and utility
T S B i ( t ) Power transaction between solar PV and building ‘i’
T B B i ( t ) Power transaction between battery storage system and building ‘i’
T G B i ( t ) Power transaction between utility and building ‘i’
T G E n ( t ) Power transaction from utility to nth EV
T B E n ( t ) Power transaction from battery storage system to nth EV
T S E n ( t ) Power transaction from solar to nth EV
T E n G ( t ) Power transaction from nth EV to utility
T E n B ( t ) Power transaction from nth EV to battery storage system
T E n B i ( t ) Power transaction from nth EV to building ‘i’
T E n E n ( t ) Power transaction from nth EV to nth EV
α ( t ) Binary variable for charging of battery storage system
β ( t ) Binary variable for discharging of battery storage system
φ E n ( t ) Binary variable for charging of nth EV
ϕ E n ( t ) Binary variable for discharging of nth EV
S O P B ( t ) Power state of battery storage system
S O P E n ( t ) Power state of nth EV

Appendix A

The daily percentage revenue and savings obtained by the smart building and non-primary buildings, and the EVs’ fleet, are denoted as Equations (A1)–(A4), respectively:
% a g e   r e v e n u e   f o r   B 1 = R B 1 0 ( R B 1 0 N B 1 ) R B 1 0 100
% a g e   s a v i n g s   f o r   B 2 = R B 2 0 ( R B 2 0 N B 2 ) R B 2 0 100
% a g e   s a v i n g s   f o r   B 3 = R B 3 0 ( R B 3 0 N B 3 ) R B 3 0 100
% a g e   s a v i n g s   f o r   E V s   F l e e t = R E V 0 ( R E V 0 N E V ) R E V 0 100
In the above equations, R B 1 0 , R B 2 0 , R B 3 0 , and R E V 0 represent the purchase price of the electricity from the grid for the smart building, non-primary buildings and EVs, respectively, for the base case. Further, N B 1 , N B 2 , N B 3 , and N E V represent the revenues and savings for the smart building, non-primary buildings and the fleet of electric vehicles, respectively.

References

  1. Wang, Z.; Wang, L.; Dounis, A.I.; Yang, R. Integration of plug-in hybrid electric vehicles into energy and comfort management for smart building. Energy Build. 2012, 47, 260–266. [Google Scholar] [CrossRef]
  2. Venegas, F.G.; Petit, M.; Perez, Y. Active integration of electric vehicles into distribution grids: Barriers and frameworks for flexibility services. Renew. Sustain. Energy Rev. 2021, 145, 111060. [Google Scholar] [CrossRef]
  3. Ahsan, S.M.; Khan, H.A. Performance comparison of CdTe thin film modules with c-Si modules under low irradiance. IET Renew. Power Gener. 2019, 13, 1920–1926. [Google Scholar] [CrossRef]
  4. Ahsan, S.; Niazi, K.A.K.; Khan, H.A.; Yang, Y. Hotspots and performance evaluation of crystalline-silicon and thin-film photovoltaic modules. Microelectron. Reliab. 2018, 88, 1014–1018. [Google Scholar] [CrossRef]
  5. Curry, C. Lithium-ion battery costs and market. Bloom. New Energy Financ. 2017, 5, 43. [Google Scholar]
  6. Thomas, D.; Deblecker, O.; Ioakimidis, C.S. Optimal operation of an energy management system for a grid-connected smart building considering photovoltaics’ uncertainty and stochastic electric vehicles’ driving schedule. Appl. Energy 2018, 210, 1188–1206. [Google Scholar] [CrossRef]
  7. Dukpa, A.; Butrylo, B. MILP-Based Profit Maximization of Electric Vehicle Charging Station Based on Solar and EV Arrival Forecasts. Energies 2022, 15, 5760. [Google Scholar] [CrossRef]
  8. Prajapati, S.; Fernandez, E. Solar PV parking lots to maximize charge operator profit for EV charging with minimum grid power purchase. Energy Sources Part A Recovery Util. Environ. Eff. 2020, 1–11. [Google Scholar] [CrossRef]
  9. Sehimi, Y.; Sakly, J.; Almaksour, K.; Robyns, B. A Novel Fast Charger Architecture with Reduced Impact on Distribution Grids Based on V2V Power Transfer. In Proceedings of the 2021 IEEE Vehicle Power and Propulsion Conference (VPPC), Gijon, Spain, 25–28 October 2021; pp. 1–6. [Google Scholar]
  10. Li, G.; Sun, Q.; Boukhatem, L.; Wu, J.; Yang, J. Intelligent vehicle-to-vehicle charging navigation for mobile electric vehicles via VANET-based communication. IEEE Access 2019, 7, 170888–170906. [Google Scholar] [CrossRef]
  11. Koufakis, A.-M.; Rigas, E.S.; Bassiliades, N.; Ramchurn, S.D. Offline and online electric vehicle charging scheduling with V2V energy transfer. IEEE Trans. Intell. Transp. Syst. 2019, 21, 2128–2138. [Google Scholar] [CrossRef]
  12. Zhang, R.; Cheng, X.; Yang, L. Flexible energy management protocol for cooperative EV-to-EV charging. IEEE Trans. Intell. Transp. Syst. 2018, 20, 172–184. [Google Scholar] [CrossRef] [Green Version]
  13. Ahsan, S.M.; Khan, H.A. Optimized power dispatch for smart building (s) and electric vehicles with V2X operation. Energy Rep. 2022, 8, 10849–10867. [Google Scholar] [CrossRef]
  14. Ahsan, S.M.; Khan, H.A.; Ayyadi, S.; Arif, S.M.; Lie, T.-T. Optimized Power Dispatch for Solar-Storage System and Electric Vehicles with Multiple Buildings in Bilateral Contracts. In Proceedings of the 2021 IEEE PES Innovative Smart Grid Technologies Europe (ISGT Europe), Espoo, Finland, 18–21 October 2021; pp. 1–5. [Google Scholar]
  15. Scarabaggio, P.; Carli, R.; Dotoli, M. Noncooperative Equilibrium-Seeking in Distributed Energy Systems Under AC Power Flow Nonlinear Constraints. IEEE Trans. Control Netw. Syst. 2022, 9, 1731–1742. [Google Scholar] [CrossRef]
  16. Yao, M.; Molzahn, D.K.; Mathieu, J.L. An optimal power-flow approach to improve power system voltage stability using demand response. IEEE Trans. Control Netw. Syst. 2019, 6, 1015–1025. [Google Scholar] [CrossRef]
  17. Ahsan, S.M.; Khan, H.A.; Hassan, N.-u.; Arif, S.M.; Lie, T.-T. Optimized power dispatch for solar photovoltaic-storage system with multiple buildings in bilateral contracts. Appl. Energy 2020, 273, 115253. [Google Scholar] [CrossRef]
Figure 1. The suggested business model’s architecture includes a primary (smart) building (B1) and non-primary (secondary) buildings (B2 and B3) with V2X (V2V, V2B, and V2G) capability.
Figure 1. The suggested business model’s architecture includes a primary (smart) building (B1) and non-primary (secondary) buildings (B2 and B3) with V2X (V2V, V2B, and V2G) capability.
Energies 16 04884 g001
Figure 2. EVs with varying arrival times.
Figure 2. EVs with varying arrival times.
Energies 16 04884 g002
Figure 3. Tariff rates (w.r.t. on-peak and off-peak utility pricing) for the purchase and sale of electricity by smart and non-primary buildings and EVs.
Figure 3. Tariff rates (w.r.t. on-peak and off-peak utility pricing) for the purchase and sale of electricity by smart and non-primary buildings and EVs.
Energies 16 04884 g003
Figure 4. (a) Actual loads of smart and non-primary buildings and optimized power transactions of solar, (b) EVs and (c) utility.
Figure 4. (a) Actual loads of smart and non-primary buildings and optimized power transactions of solar, (b) EVs and (c) utility.
Energies 16 04884 g004
Figure 5. Cumulative power transactions from EV to the rest of the EVs (V2V) (without battery storage system).
Figure 5. Cumulative power transactions from EV to the rest of the EVs (V2V) (without battery storage system).
Energies 16 04884 g005
Figure 6. (a) Actual loads of smart and non-primary buildings and optimized power transactions of solar, and (b) battery storage system.
Figure 6. (a) Actual loads of smart and non-primary buildings and optimized power transactions of solar, and (b) battery storage system.
Energies 16 04884 g006
Figure 7. Optimized power transactions (with battery storage system) of (a) EVs and (b) utility.
Figure 7. Optimized power transactions (with battery storage system) of (a) EVs and (b) utility.
Energies 16 04884 g007
Figure 8. Cumulative power transactions from EV to the rest of the EVs (V2V) (with the battery storage system).
Figure 8. Cumulative power transactions from EV to the rest of the EVs (V2V) (with the battery storage system).
Energies 16 04884 g008
Table 1. Size and costs of solar power, battery storage system and charger.
Table 1. Size and costs of solar power, battery storage system and charger.
System EntitySolarBattery Charger
Size400 kWp400 kWh10 kW × 15
Price of a single unit0.2 USD/W [3]145 USD/kWh [5]570 USD/Charger
Life (months)300120300
Total Cost (USD)92 k58 k8.5 k [13,14]
Average price for a day (USD)18291.7
Table 2. Daily revenues and savings (USD) earned by the smart building, non-primary buildings, and EVs.
Table 2. Daily revenues and savings (USD) earned by the smart building, non-primary buildings, and EVs.
EntityCase 1 (without Storage)Case 2 (with Storage)
Smart Building 3079.1
Non-primary Building (B2)1.01.8
Non-primary Building (B3)3.15.4
Electric Vehicles6.64.8
Table 3. Daily revenues and savings earned by smart, non-primary buildings, and EVs (in % ofg age).
Table 3. Daily revenues and savings earned by smart, non-primary buildings, and EVs (in % ofg age).
EntityCase 1 (without Storage)Case 2 (with Storage)
Smart Building 60158.2
Non-primary Building (B2)4.88.6
Non-primary Building (B3)4.37.5
Electric Vehicles69.450.5
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ahsan, S.M.; Khan, H.A.; Sohaib, S.; Hashmi, A.M. Optimized Power Dispatch for Smart Building and Electric Vehicles with V2V, V2B and V2G Operations. Energies 2023, 16, 4884. https://doi.org/10.3390/en16134884

AMA Style

Ahsan SM, Khan HA, Sohaib S, Hashmi AM. Optimized Power Dispatch for Smart Building and Electric Vehicles with V2V, V2B and V2G Operations. Energies. 2023; 16(13):4884. https://doi.org/10.3390/en16134884

Chicago/Turabian Style

Ahsan, Syed Muhammad, Hassan Abbas Khan, Sarmad Sohaib, and Anas M. Hashmi. 2023. "Optimized Power Dispatch for Smart Building and Electric Vehicles with V2V, V2B and V2G Operations" Energies 16, no. 13: 4884. https://doi.org/10.3390/en16134884

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop