Introduction

An increasing portion of the world population is expected to live in urban and sub-urban areas, posing formidable challenges1. The current urban mobility system is obsolete and it requires drastic changes in order to cope with its main flaws such as congestion, inefficiency, and high carbon footprint. Fossil-fuel vehicles are a major contributor to greenhouse gases and pollutants, which in turn are interlinked with climate change and to more than 8 million deaths each year globally2. Vehicle electrification is key towards a radically more sustainable mobility system3, promising a significant reduction in the environmental impact of the transportation sector. Several ride-sharing and ride-hailing alternatives are emerging in the urban mobility sector, driven by these pressing climate and health-related issues, by increasing traffic congestion, and given the trend of younger generations favoring ride-hailing options over car ownership. Indeed, cities worldwide are already experiencing this transformation, observing the rise in popularity of on-demand ride-hailing options in companies such as Uber and Lyft4,5. Ride-hailing platforms have started advertising greener options, such as shared rides and electric vehicle (EV) rides, increasing their appeal. Future mobility trends will also include fleets of autonomous EVs for ride-sharing services to improve both the quality of service (QoS) and sustainability6,7,8.

However, a 100%-electrification of the urban mobility sector – and, in particular, of the ride-sharing services – may come at a cost: with the current modus operandi of the power infrastructure, large numbers of EVs may increase the loading of distribution systems, potentially surpassing the loading capacity in portions of the grid9,10; this, in turn, would compromise the reliability and increase the fragility of the power infrastructure3. Moreover, large swings in the power demand from EVs may impact electricity prices and energy markets. It is therefore of paramount importance to uncover coordination mechanisms between the power network operators and transportation system operators to enable a reliable and effective integration of EVs into the grid at large scale11,12.

In this context, we consider a scenario where ride-hailing enterprises utilize a 100%-electrified fleet of vehicles, and seek responses to the following key questions: given the potential effect of EV charging on the power infrastructure, how can power utility companies and ride-hailing companies interact to promote vehicle charging in areas with high renewable generation? How can one maximize the utilization of renewables for charging purposes without disrupting the quality of the ride-hailing services? Answering the first question would allow one to systematically integrate EVs at scale with minimal effect on the power grid reliability, and without requiring structural upgrades of distribution feeders and substations to handle the additional power demand. A positive response to the second question would provide evidence for a successful transition away from internal combustion engines in the urban mobility sector. In this paper, we provide answers to the questions above by investigating new means for power utility companies to interact with ride-hailing companies in order to promote renewable-based charging directly at locations where renewables are available. Beyond maximizing the use of renewable generation, the aim is also to satisfy the largest number of ride requests and to keep the unoccupied fleet size as small as possible.

Before describing the proposed methodology, we provide a brief overview of existing approaches in the context of mobility-as-a-service (MaaS) and for the coordination between transportation and power systems. Various approaches to tackle problems related to the dispatch of ride-hailing fleets can be found in the literature, including microscopic (possibly stochastic) combinatorial problems13,14,15,16,17,18 and macroscopic network-flow-based formulations19. A common topic of research is the interaction between a large fleet of (autonomous) EVs and the power infrastructure in densely populated areas, taking into account factors such as EV charging requirements20, fluctuating customer demand, battery degradation, and power system constraints12,19,21,22,23. It is also well acknowledged that EVs have the potential to benefit the grid by providing24,25,26: (i) energy storage, serving as distributed power storage unit storing excess energy generated by renewable resources; (ii) load balancing, scheduling the EV charging during off-peak hours; and (iii) ancillary services, such frequency support.

The coupled problem arising from a transportation network together with a power network load balancing has been analyzed via single-level optimization formulations22, exploiting the benefits of EV charging with renewable energy. Some works have explored hierarchical models such as Nash–Stackelberg–Nash game framework in a network-flow based formulation27,28,29,30,31,32. Traditional game-theoretic frameworks have analyzed the interaction between EVs and the grid through the regulation of energy prices and EV charging schedules, where the grid acts as a player that sets the cost of the energy, and EVs respond with a charging schedule that optimizes their operation, usually assuming traffic flow models33. Other lines of work model the problem of coordinating the charging needs of an EV fleet as a game, seeking a Nash equilibrium 34. In the case where the EV charging management problem is affected by the volatile nature of renewable generation, Generalized Nash Equilibrium (GNE) approaches have been used to coordinate the EV charging plans with real-time generation profiles35,36.

Figure 1
figure 1

(a) Description of the interaction between utility company, ride-service provider, and EV drivers. The ride-service provider receives ride requests from customers and charge requests from a utility company. The bargaining procedure involves a vehicle-request assignment problem that takes into consideration incentives coming from both parties and bids from customers, to assign available EVs to requests. (b) Case study: Lower Manhattan, New York City, NY, partitioned into 9 regions (links between regions correspond to a reachable site within a 10 minute drive). PV generation is present in 4 regions. This image has been designed using assets from Freepik.com.

In this paper, we propose a new mechanism to enable interactions between power utility companies and ride-hailing companies. We also consider the case where rides may be shared, namely, multiple ride requests can be served by the same vehicle. The proposed process requires minimal modifications of existing vehicle-ride assignment frameworks for ride-hailing services – where rides are assigned to vehicles based on an assignment problem – and with a little computational and operational burden on the power utility side. The proposed mechanism enables a power utility company to issue charge requests that model a financial incentive (tied to specific renewable generation profiles and locations) offered to the ride-hailing company to promote the use of the available renewable energy. This mechanism is qualitatively illustrated in Fig. 1a. Drawing from game-theoretic approaches, our strategy involves a bargaining procedure where the power company proposes incentives, and the ride-hailing platform, after receiving charging incentives and ride requests from customers, assigns vehicles to both ride requests and charge requests. Mathematically, the interaction is in the form of a Gauss-Seidel method where, at each iteration, the power utility company proposes new incentives associated with the charge requests by solving a given optimization problem, and based on the current potential vehicle assignment; subsequently, the ride-service provider issues a new potential assignment based on the new incentives. The performance cost used in the vehicle-request assignment problem involves the minimization of the overall operational cost for the ride-service provider. The cost used by the utility company quantifies the need for the self-consumption of renewable energy resources. With this mechanism, the power utility company and the ride-service provider eventually lead to prices and EV assignments that are aligned with the notion of Nash equilibria. We point out that, while this work stresses the renewable generation profile, the same bargaining procedure can be utilized by the utility for general desirable power demand profiles; this opens the door to setups where the ride-hailing company acts as a virtual power plant (VPP) providing services to the grid at convenient financial conditions.

Our approach retains the microscopic feature of existing assignment problems in the context of MaaS platforms37,38,39; moreover, following the traditional workflow with limited information sharing, it can be integrated seamlessly into MaaS orchestration services (indeed, as shown in Fig. 1a, the utility company can be understood just as an additional “entity” into a vehicle assignment task). At the same time, it naturally models and enables an interaction between power systems operations and EV-dominated ride-service providers without resorting to macroscopic (or averaged) flow models, which would be difficult to integrate into existing fleet assignment frameworks. Another important feature of our approach is that it does not rely upon combinatorial problems (therefore, it does not require dedicated software), and can leverage simple optimization algorithms. We test the proposed mechanism and show that it is indeed possible to shift the EV charging during periods of high renewable generation and adapt to intermittent generation. Our approach does not cause a degradation of the QoS for the ride-service provider with respect to ad hoc EV charging strategy.

Results

The following results stem from the mathematical algorithms described in the "Methods" section. The experiments consider a fleet of 100 EVs and use the data recorded by the Taxi and Limousine Commission (TLC)40 on Tuesday, March 1, 2022, between 6:00 and 24:00. In terms of renewable generation, we consider the photovoltaic (PV) power generation profiles extracted from the renewable historical data of New York Independent System Operator41, as explained in the "Data sources" section. To clarify, we use the term ride-hailing below to indicate the case where each vehicle carries only one passenger, as in a taxi service. On the other hand, we use the term ride-sharing to refer to the case where several riders can be picked up along a route by the same vehicle. In line with this terminology, even shared/pooled ride-hailing services are included in this category. Note that both ride-sharing and ride-hailing platforms are more generically referred to as ride-service providers. The complete description of the simulation setup is provided in the "Methods" section. To present the results we define three study cases:

  • Business-as-usual: the ride-hailing platform assigns ride requests to an EV fleet. The EVs are exclusively charging when their batteries are empty. The EV charging does not exploit renewable energy resources.

  • Case 1: the ride-hailing platform receives and assigns both ride and charge requests, based on the outcome of the process described in Methods, in which the EV fleet and the power utility company engage in an incentive-assignment process.

  • Case 2: this extends case 1 enabling the ride-sharing option: here, EVs are allowed to pick up more passengers during the trip provided they are willing to ride-share and have a common destination. Each additional passenger can cause a delay of up to 4 minutes.

Figure 2
figure 2

Availability of fossil-fuel vehicles during the day (left) and total number of missed ride requests (right). With a fleet of only fossil-fuel vehicles, the QoS is 99.8%.

Case 1 and case 2 are evaluated under three different weather conditions, named sunny day, cloudy morning, and cloudy afternoon, that correspond to different PV generation profiles. To assess the performance of the proposed strategy in the cases defined above, we introduce two metrics. These are: the Quality of Service (QoS), defined as the percentage of attended ride requests out of the total number of received ride requests, and the Power Loss (PL), defined as the percentage of unexploited renewable power out of the total PV power generated. A summary of the results is presented in Table 1. Notice how the QoS always improves with the sharing acceptance, e.g., going from 94.8 to 99.9% on a sunny day, indicating that ride-sharing is critical to enforce high levels of QoS. On the other hand, the amount of unexploited renewable power increases as the willingness to ride-share improves. In this case, the EVs need to charge less often since their total driving time is overall reduced, given the same (or larger) number of accepted ride requests.

To provide some context, we start by considering a fleet consisting of regular fossil-fuel vehicles. Figure 2 shows the availability of vehicles over the simulation window, where if an EV is attending a ride request it is labeled as “riding”, otherwise, if it is unoccupied it is labeled as “idling”. In the Discussion, we will compare the performance of a fossil-fuel fleet against a 100% EV fleet, given the same amount of received ride requests.

Table 1 Quality of service (QoS), and power loss (PL) evaluated over the simulation window. In case 1, the ride-service provider assigns ride and charge requests, and the EV fleet and utility company implement the bargaining procedure described in the "Methods" section. Case 2 adds the ride-sharing option to case 1; here we assume that 100%, 75%, 50%, and 25% of the customers are willing to ride-share. As a benchmark metric, the QoS for the business-as-usual case is 94.5%.

Effects of business-as-usual EV charging on the power infrastructure

Initially, we consider a vehicle-request assignment where the ride-service provider has to handle ride requests only. This case, which disregards the presence of renewable energy resources, will serve as a benchmark for later comparison, and represent the business-as-usual case. The assignment is performed as described in, e.g.,13, for the available EVs. We assume that the EVs will start charging when their State Of Charge (SOC) is low (<10% of the battery capacity), regardless of their location and the time of the day. Figure 3 shows the availability of EVs, the SOC trend during the day, and the EV charging profile (i.e., the amount of power used to charge \(v_{\textrm{ch}}\) EVs, at a charging rate \(p_{\textrm{ch}}\)), with the number of missed ride requests. For convenience, we consider three levels of SOC: high (>60%), mid (between 10% and 60%), and low (<10%). We explore two different initial SOC conditions: random and fully charged. For random SOC, we present averaged results over 100 iterations. In this case, without charge requests, the EVs connect to the power grid whenever they are out of battery, generating a peak of power consumption. We show the availability of EVs over the day for both cases in Fig. 3, where if an EV is busy charging it is labeled as “charging”. In Fig. 3a, where the initial SOC of EVs are randomly generated, the peak of the EV charging profile occurs between 13:00 and 17:00, while in Fig. 3b, where all the EVs start fully charged at 6:00, the peak is shifted, starting at 20:00. In both cases, we observe that the majority of missed ride requests occurs in the time interval between 18:00 and 20:00.

Figure 3
figure 3

Availability of EVs during the day, SOC time-evolution, and charging profiles together with total number of missed ride requests given two different initial SOC conditions: random distribution between 10% and 100% of the battery capacity (a) and fully charged (b). Business-as-usual case. Dark blue line corresponds to the charging profile (i.e., total power used to charge \(v_{\textrm{ch}}\) EVs, each receiving \(p_{\textrm{ch}}\) kW).

Renewable-based charging and bargaining strategy

We focus now on case 1, where the ride-service provider handles both ride and charge requests. In this case, the ride-hailing company, the power utility company, and the EVs interact as described in the "Methods" section and as illustrated in Fig. 1a. We recall that charge requests are issued by the power utility company. EVs are assigned to feasible requests, depending on their distance to the customers’ pickup point or to the charging facilities. The shortest path is assumed to correspond to the lower cost and therefore preferred by the ride-hailing company. Moreover, a crucial aspect of our approach is to rely on a bargaining mechanism, in the form of financial incentives, that influences the preferences of the ride-hailing platform concerning the assignment of EVs to ride or charge requests. In the bargaining mechanism (a rigorous formulation of the problem can be found in the "Methods" section), we augment a linear assignment problem with additional constrained optimization problems, whose objective is to assign a financial incentive to the cost of the ride or charge requests based on the bids from the users and the losses affecting the power utility company. We present averaged results over 100 Monte Carlo simulations, where each EV is initially assigned a random SOC between 10% and 100% of the full battery capacity. In Fig. 4, the top row shows the availability of EVs through the simulation window; the second row displays how the SOC of the EV fleet varies during the day under different weather conditions; the third row shows the total PV generation profile in the lower Manhattan area, compared to the power distributed to charging EVs; and the fourth row presents the incentives for ride and charge requests. Notice how the EV charging schedule now follows the PV generation profile and it is impacted by the weather conditions. Figure 5 shows the individual PV generation profiles and the amount of power dispatched in each of the four areas equipped with charging facilities. Then, our method successfully can shift the charging profiles to periods of the day characterized by high renewable generation and avoid the negative impacts on the grid that the wider charging schedule showed in Fig. 3 can induce.

Regarding the effects of the variability of renewable energy resources on our formulation, we can see in Figs. 4e,f the impact on the SOC for two different PV profiles, both affected by significant cloud coverage. In the case of a cloudy morning, EVs cannot fully charge between 9:00 and 13:00, resulting in a larger amount of missed ride requests during the rest of the day (see Fig. 4h), and many more EVs with low SOC by midnight, as compared to the sunny day case. In contrast, the cloudy afternoon profile still allows many EVs to fully charge in the morning, substantially limiting the need for charging in the afternoon and therefore affecting less the final SOC of the EVs. Still, more ride requests are missed with respect to the sunny day, as shown in Fig. 4i. Note that Fig. 4k shows fewer charge request incentives from 8:00 to 12:00, due to a drop in the PV generation in the morning. In the cloudy afternoon scenario, however, during the same period, the charge request incentives are higher, and therefore, the EV charging is favored over attending ride requests as shown in Fig. 4l. The charge request financial incentives depend on the PV profile scenario considered, i.e., sunny days are characterized by a considerable amount of incentives during the day following the consistent PV-power generation, while cloudy days experience a drop in the amount of charge request incentives during the morning and afternoon, respectively (Fig. 5).

Figure 4
figure 4

Availability of EVs during the day (1st-row), SOC time-evolution (2nd-row), charging profiles together with the total number of missed ride requests (3rd-row) and incentives (4th-row) during the day, given three different weather scenarios: sunny (a)-(d)-(g)-(j), cloudy morning (b)-(e)-(h)-(k), and cloudy afternoon (c)-(f)-(i)-(l). The initial SOC of each EV is randomly set within 10% and 100% of the battery capacity. The PV-generation (\(P_{\textrm{ref}}\)) and charging profiles (\(v_{\textrm{ch}} p_{\textrm{ch}}\)) are obtained summing over all charging stations.

Figure 5
figure 5

Charging profile for each of the 4 regions hosting charging facilities, corresponding (left to right) to node 3, 5, 8 and 9 in Fig. 1b, given three different weather scenarios: sunny (a), cloudy morning (b), and cloudy afternoon (c). The curves in dark and light blue correspond to the PV-generation (\(P_{\textrm{ref}}\)) and the charging profiles (\(v_{\textrm{ch}} p_{\textrm{ch}}\)), respectively.

The benefits of ride-sharing

We explore the impact of ride-sharing in case 2, by allowing EVs to pick up more passengers provided that they share a common destination. Passengers can be picked up along the journey, i.e., they do not need to start from the same pick-up area. It is important to stress that we are still dealing with a one-to-one vehicle-request assignment, while we keep track of the number of passengers on board which can be at most 4. Passengers express their willingness to ride-share whenever they submit a request, in exchange for a discounted price and a greater chance to get a ride.

We introduce a new parameter, the customers’ willingness to ride-share, and analyze how it impacts the results in four different scenarios where 100%, 75%, 50% or 25% of the customers are willing to ride-share. Figure 6 is the counterpart of Fig. 4, this time taking also ride-sharing (75%) into account. Figure 7a shows how the number of missed ride requests is affected by the customers’ willingness to ride-share. For example, assuming that 50% of the passengers would be willing to share rides on a sunny day, the total number of missed ride requests reduces to 59 and to only 2 in the case where all passengers would agree to share rides. This is a substantial improvement, roughly sixty times less than the case that does not take ride-sharing into consideration. Figure 7b also reports how many EVs would have a low or high final SOC at the end of the day, depending on the customers’ willingness to ride-share. Here, we can see that when the willingness to ride-share increases also the number of EVs with high SOC at the end of the simulation is larger, confirming that an improved QoS can be achieved even if the need for charging is less, as shown in Table 1.

Figure 6
figure 6

Availability of EVs during the day (1st-row), SOC time-evolution (2nd-row), charging profiles together with the total number of missed ride requests (3rd-row) and incentives (4th-row) during the day, given three different weather scenarios: sunny (a)-(d)-(g)-(j), cloudy morning (b)-(e)-(h)-(k), and cloudy afternoon (c)-(f)-(i)-(l). The customers’ willingness to ride-share is set here to 75%. The initial SOC of each EV is randomly set within 10% and 100% of the battery capacity. The PV-generation (\(P_{\textrm{ref}}\)) and charging profiles (\(v_{\textrm{ch}} p_{\textrm{ch}}\)) are obtained summing over all charging stations.

Figure 7
figure 7

Total number of missed ride requests during the day (a) and number of EVs with low/high SOC by the end of the day (b), for given customers’ willingness to ride-share and for three different weather scenarios: sunny, cloudy morning, and cloudy afternoon. The initial SOC of each EV is randomly set within 10% and 100% of the battery capacity.

Figure 8
figure 8

Availability of EVs (1st-row), SOC time-evolution (2nd-row), charging profiles together with the total number of missed ride requests (3rd-row) and incentives (4th-row) during a 42 hour interval with (left) and without (right) additional charging at night. The initial SOC of each EV is randomly set within 10% and 100% of the battery capacity. The PV-generation (\(P_{\textrm{ref}}\)) and charging profiles (\(v_{\textrm{ch}} p_{\textrm{ch}}\)) are obtained summing over all charging stations.

Figure 9
figure 9

Availability of EVs (1st-row), SOC time-evolution (2nd-row), charging profiles together with the total number of missed ride requests (3rd-row) and incentives (4th-row) during a 42 hour interval with (left) and without (right) additional charging at night. The customers’ willingness to ride-share is set here to 75%. The initial SOC of each EV is randomly set within 10% and 100% of the battery capacity. The PV-generation (\(P_{\textrm{ref}}\)) and charging profiles (\(v_{\textrm{ch}} p_{\textrm{ch}}\)) are obtained summing over all charging stations.

Discussion

On-demand ride-sharing helps to reduce traffic congestion and emissions, and especially in densely populated areas it is paving the way for more sustainable mobility. However, it is still facing a significant amount of skepticism due to many heterogeneous factors, ranging from users’ preferences to seamless integration into the transportation system42. In particular, if EVs are adopted as the main way of transportation, the interaction between the ride-service providers and the distribution power system plays a crucial role in determining the successful operation of the EV fleet.

In this work, we investigate the interaction between a ride-service provider that manages a 100% EV fleet, and a power utility company that operates renewable energy resources at some charging locations. We show that through the proposed bargaining mechanism we achieved an EV charging schedule that maximizes the use of renewable generation and reduces the potential negative effects of the EV charging on the power infrastructure. Moreover, we are able to preserve the QoS of the businesses-as-usual case while improving the impact of the EV charging on the grid. The latter is achieved by scheduling EVs to charge via charge requests issued by the power utility company so that the peak of renewable generation is covered, reducing losses for the power utility company and improving the power grid load balance. The advantages of our method are multifold: exploit renewable energy resources when available, reduce the need for renewable generation storage at a grid level, and charge a large number of EVs before evening rush hours.

Assuming an increasingly widespread adoption of ride-sharing in the coming years, several implementation strategies have been proposed. To name a few examples representing different perspectives, the design of price mechanisms for ride-sharing42, a dynamic vehicle-request assignment strategy for autonomous ride-sharing services15, a linear vehicle-request assignment within a federated optimization architecture13. Other approaches design price mechanisms where the charging facilities set prices to control the resource utilization43, or where the EV charging schedules are influenced by varying energy prices22. Here, we propose a novel approach based on a game-theoretic framework that balances the objectives of a ride-service provider, an EV fleet, and a power utility company through a bargaining mechanism. The EV charging strategy influences the charging pattern by controlling a financial incentive sent to the ride-service provider, which in turn solves a linear assignment problem to determine how to best meet both ride and charge requests. The coordination of centralized and decentralized strategies for the EV charging is studied in the context of non-cooperative games in works such as34, where a large EV population is coupled through a common price signal. However, those approaches do not deal with a ride-service provider trying to serve ride requests and respond to utility needs simultaneously.

In this work, we show how to integrate the needs of a power utility company, in the form of maximizing the use of renewable generation, with the users’ need to complete trips from an origin to a destination point. The aim is to find an equilibrium between the objectives of different entities. The reason for establishing a charging schedule can be found in the business-as-usual case presented in Fig. 3, where no charge requests are submitted and the EVs connect to the power grid whenever their SOC is below a certain threshold. Note that in this case the charging profile is wider and shifted towards the evening hours with respect to Fig. 4, implying worsened grid loading during an already critical moment of the day, according to the data dashboard of New York ISO for the Manhattan area41. With our method, case 1 in the "Results" section, the charging profile follows the renewable generation profile instead; this contributes to alleviating the so-called “duck curve” by promoting charging during high renewable generation periods. We use 63.3% of the available renewable power to schedule the EV charging (see Fig. 4) while slightly improving the QoS with respect to the business-as-usual case. Additionally, when we introduce the ride-sharing option, as presented in case 2, we further improve the QoS while still relying on renewable resources for the EV charging, as presented in Fig. 6 and 7 and Table 1. Our findings indicate that ride-sharing is a must in order to fully benefit from an EV fleet powered by renewables. Improved QoS, a larger number of EVs with high SOC, and less traffic congestion are just some of the multiple advantages of ride-sharing.

Note that in this work the power utility company generates only positive incentives since a charge request can only be sent if renewable power is available. The negative incentives (disincentives) with respect to the ride requests seen in Figs. 4, 5 and 6 correspond to the scenario where the users did not submit a bid (tip) and/or some EVs sent a negative incentive to the ride-service provider to indicate that they were far away from the user’s drop-off point.

For completeness, we repeat the simulation for a fleet of regular fossil-fuel vehicles, as shown in Fig. 2. The number of missed ride requests, in this case that does not include the ride-sharing option, reduces to 4. In order to achieve the same result with EVs, a larger fleet with 35 additional EVs would be needed, or alternatively, the customers’ willingness to ride-share should be above 90%. On the other hand, our mobility model is significantly more sustainable since it is entirely powered by renewable energy resources. We emphasize that we can make the EV charging schedule match the renewable generation profile at each charging facility through our bargaining mechanism, as shown in Fig. 5. Moreover, we note that our results may further improve in a scenario where fast-charging is adopted. In this work, we take a conservative approach and consider level 2 chargers only, but if we consider level 3 EV chargers, also called DC fast chargers44, we could achieve a considerable improvement in the QoS. For example, if we assume a charging rate of 1.15 kWh per minute then the time needed to recharge a depleted battery would reduce to 45 minutes, and the performance metrics for case 1 on a sunny day would improve, resulting in a QoS of 99.8% and a PL of 37.4%.

To provide a more comprehensive set of results, we examine how our method performs over a longer simulation period. Figure 8 and 9 show the results over 42 hours for case 1 and case 2, respectively. Moreover, we consider an additional case in the right column, where we assume that the EVs are allowed to charge at night, during off-peak hours, by connecting to the grid regardless of where they are located. For comparison, the total number of ride requests is now 5156, out of which 2676 were received on the second day. As a benchmark metric, the total number of missed ride request for the business-as-usual case is 450. We notice a significant improvement in the QoS when allowing grid charging at night, in order to restore higher SOC levels while EVs are less busy driving.

We acknowledge that our formulation comes with limitations. First, we consider charge requests as an input that depends on the surplus of renewable generation in areas where the charging facilities are located. With coordinated efforts between the ride-service provider and the power utility company, it would be feasible to displace the EV charging peak to a time period with minimal arrival of ride requests, mitigating the adverse effects of charging on the QoS, as currently can be seen in Fig. 4. However, we note that the proposed approach can be extended to consider the case where the power utility company incentivizes the EVs to provide other services, such as ramping services and load balancing; this is performed by replacing the renewable generation with a different power profile in the proposed method. Second, the performance of our algorithm relies on the tuning of multiple parameters that affect the outcome for the ride-service provider, by improving the QoS, or for the power utility company, by increasing the consumption of renewable generation; then, the balance between the objectives of both companies is not a trivial task. Our algorithm setup depends on external variables such as the user bid, energy prices, initial SOC of EVs, and arrival time of ride and charge requests, thus, the results can differ considerably from one case to another. In particular, we recognize the importance of setting the value for the maximum bid allowed to users, denoted by \(h_{\max }\). If users can bid high enough to request a trip, ride requests will be prioritized over charge requests increasing the PL for the power utility company. Otherwise, if users do not offer bids at all, and the financial incentives associated with the charge requests are large enough, the QoS can deteriorate due to the preference of the ride-service provider to prioritize charging.

As a final remark, we note that the proposed assignment strategy does not plan rides and charging profiles ahead based on predictions of demand and power generation. In line with other existing works such as12,13,14,15, we seek an assignment problem that involves a computationally light solution and can be solved at the minute or sub-minute time scale. Extending the framework to a rolling horizon optimization setup (as in, for example, model predictive control frameworks) to include the planning of rides and charging profiles ahead would significantly increase the computational complexity of our method; this is mainly because the relaxation of the binary variables may not be exact. It is also important to note that, when planning ahead, one should consider errors in the predictions of demand and power generation. Exploring robust or stochastic problems for multi-period problem formulations along with computationally affordable solution approaches goes beyond the scope of the present paper and will be the subject of future research endeavors.

Methods

In this section, we outline the main mathematical framework utilized to develop the proposed bargaining mechanism, and we explain the main implementation. The proposed mechanism involves three entities: a ride-service provider, a fleet of EVs (either with a driver or autonomous), and a power utility company; they are shown in Fig. 1a. These three entities interact each time a new assignment has to be made.

In the proposed framework, the power utility company aims to maximize the use of renewable generation at specific portions of the grid, where charging facilities powered by renewable resources are located. The ride-service provider manages the EV fleet to serve ride requests from customers and respond to the power utility company requests while minimizing its overall operational costs. The goal of the EV drivers is to get ride requests assigned to their EVs.

The proposed mechanism is repeated at given intervals (e.g., 1, 5, 10, ... minutes, depending on specific settings) to assign available vehicles to new ride and charge requests. Accordingly, time is discretized as \(t \in \{0, 1, 2, \ldots \}\) (normalized to integer units). At each given time t, the scheme involves three main steps, illustrated in Fig. 1a:

Step 1. Customers send ride requests to the ride-service provider, accompanied by a possible additional tip they are willing to offer in order to compete against other customers that are also requesting rides; in parallel, the power utility company sends to the ride-service provider a number of charge requests.

Step 2. The EVs, the ride-service provider, and the power utility company start the bargaining procedure, mathematically explained in Algorithm 1 (outlined shortly). This step involves an iterative procedure where the ride-service provider computes potential EV-request assignments, and communicates them to the EVs and power utility company, which in turn provide new incentives to possibly influence the assignment; the interaction then repeats with the ride-service provider re-computing the potential EV-request assignments.

Step 3. Once Step 2 ends, the ride-service provider issues the final assignments.

In the following, we describe the mathematical problem formulation and pertinent algorithms associated with Steps 1–3.

A new vehicle assignment method based on renewable and ride incentives

We model the transportation network topology as exemplified in Fig. 1b. Movements of EVs between geographical areas are described by an undirected graph; the nodes \({\mathscr {N}}= \{1, 2, \ldots , n\}\) of the graph represent n geographical areas (neighborhoods, groups of city blocks, or towns depending on the geographical granularity); two areas are connected through an edge if they can be reached within a given traveling time. Assume that the ride-service provider receives p requests, as illustrated in Fig. 1a, and these are indexed in by set \({\mathscr {R}}= \{1, 2, \ldots , p\}\); each ride request includes an origin and destination. The set \({\mathscr {C}}= \{1,2, \ldots , q\}\) represents the charge requests issued by the utility company; each request is associated with a charging facility (located in one of the areas \({\mathscr {N}}\)). We define \({\mathscr {E}}= {\mathscr {R}}\cup {\mathscr {C}}\) to be the set of all requests (ride and charge), and we let the set of EVs be \({\mathscr {V}}= \{1, 2, \ldots , m\}\), where m is the numbers of EVs. At every time slot t, the sets \({\mathscr {V}}, {\mathscr {R}}, {\mathscr {C}}\) are updated based on the current availability of vehicles and the most updated ride and charge requests. For notational readability, in what follows we will drop the dependence of these sets on the variable t.

In the optimization problems described in the following, we have three sets of optimization variables: (i) the variables \(x_{ij} \in \{ 0,1 \}\) are used to describe whether the EV i is assigned or not to the ride or charge request j (with \(i \in {\mathscr {V}}\) and \(j \in {\mathscr {E}}\)); these are decision variables of the ride-service provider. (ii) The variables \(\{y_{ij}, i\in {\mathscr {V}}, j \in {\mathscr {C}}\}\) are decision variables of the power utility company, and represent financial incentives offered to the ride-service provider in order to incentivize the assignment of EVs to issued charge requests. (iii) The set of variables \(\{y_{ij}, j \in {\mathscr {R}}\}\) represents financial incentives computed by each EV i and sent to the ride-service provider in order to obtain the ride request j. In other words, any available EV i has the task to determine the size of the incentive \(\{y_{ij}, j \in {\mathscr {R}}\}\) based on the user’s bid for request j, and on the cost of the potential trip, from the current position of EV i to the users’ drop-off location. The complete list of parameters and variables is provided in Table 2.

With these three groups of variables, the optimization problems associated with the ride-service provider, the EVs, and the power utility company are explained next. We will first outline the three optimization problems, and then explain how these three problems are integral parts of the proposed bargaining mechanism in Step 2.

Linear assignment at the ride-service provider

We begin by formalizing the optimization problem that is solved at the ride-service provider to assign requests to available vehicles. We recall that we use binary variables \(x_{ij} \in \{0, 1\}\) to describe whether EV i is assigned or not to the request j; i.e., if \(x_{ij}=1\), then EV i is assigned to serve the ride/charge request j, otherwise, \(x_{ij}=0\). These are referred to as assignment variables. Let \(c_{ij}\), for \(i \in {\mathscr {V}}\) and \(j \in {\mathscr {R}}\), be the fixed cost (in USD, EUR, etc.) for the ride-service provider to attend the ride request j using the EV i. On the other hand, \(d_{ij}\) is the cost for the ride-service provider to attend the charge request j via EV i in a given charging facility s. The variables \(y_{ij}\) can be seen as a discount price (respectively, a price increase) to induce the EV i to be assigned to (respectively, not to be assigned to) the ride or charge request j.

When the incentives \({\textbf{y}}:=\{y_{ij}, i \in {\mathscr {V}}, j\in {\mathscr {E}}\}\) are given, the operational cost of the ride-service provider can be minimized through the following linear assignment problem:

$$\begin{aligned} \text {RSP}({\textbf{y}})~~~~\min _{\{x_{ij} \in \{0,1\}, i \in {\mathscr {V}}, j \in {\mathscr {E}}\}} ~~&\underbrace{\sum _{i \in {\mathscr {V}}} \left( \sum _{j \in {\mathscr {R}}} (c_{ij} - y_{ij}) x_{ij} + \sum _{j \in {\mathscr {C}}} (d_{ij} - y_{ij}) x_{ij} \right) }_{:= f({\textbf{x}}, {\textbf{y}})}, \end{aligned}$$
(1a)
$$\begin{aligned} \text {s.t.} ~~~~~&\sum _{i \in {\mathscr {V}}} x_{ij} = 1 \quad \forall j \in {\mathscr {E}}, \end{aligned}$$
(1b)
$$\begin{aligned}&\sum _{j \in {\mathscr {E}}} x_{ij} \le 1 \quad \forall i \in {\mathscr {V}}. \end{aligned}$$
(1c)

where the label “RSP(\({\textbf{y}}\))” emphasizes that this problem is solved by the ride-service provider once the incentives \(\{y_{ij}, i \in {\mathscr {V}}, j\in {\mathscr {E}}\}\) are given (they are inputs to the problem). Constraints (1b) guarantee that each ride/charge request is assigned to one EV, and constraints (1c) ensure that each EV can be assigned to at most one request at time t. The solution to the optimization problem (1) minimizes the operational costs of the fleet by optimally assigning the available EVs to ride and charge requests. As in existing linear assignment problems, for the ride requests we consider the cost \(c_{ij}\) as the cost of the shortest path between the position of EV i and the pick-up point corresponding to the ride request j; similar arguments apply to \(d_{ij}\) for the charge request j corresponding to a charging facility.

We note that (1) is a mixed-integer linear program (MILP), which may become computationally burdensome with the increasing of number of vehicles, ride requests, and charge requests. However, we will show later in the paper that one can take advantage of the totally unimodular constraint matrix property of the linear assignment problem (1), and show that a continuous relaxation (i.e., substitute \(x_{ij} \in \{0, 1\}\) with \(x_{ij} \in [0, 1]\)) is exact13. This, in turn, allows one to leverage standard solvers for linear programs to find an optimal assignment.

Charge incentives at the power utility company

We consider an optimization problem solved by the utility company to minimize the economic loss due to the unused renewable generation at specific charging facilities. To this end, let \({\mathscr {S}}\) be the set of charging facilities (located within the neighborhoods or areas \({\mathscr {N}}\)). We let \(\{y_{i{j}}\}_{i\in {\mathscr {V}}, j \in {\mathscr {C}}} \mapsto U_s(x_{i {j}}, y_{i{j}}, \theta _s)\) be a function modeling a financial or operational cost incurred by the power utility company at the charging facility \(s\in {\mathscr {S}}\) for not using power from renewable sources of energy; this function is parametrized by the assignments \(\{x_{ij}\}_{i\in {\mathscr {V}}, j \in {\mathscr {C}}}\) and by additional parameters \(\theta _s \in \mathbb {R}^\theta\) that are of interest to the utility company (examples are given shortly in the section "Experimental setup"). Moreover, we let \(\{y_{i{j}}\}_{i\in {\mathscr {V}}, j \in {\mathscr {C}}} \mapsto \rho _s (x_{i {j}}, y_{i{j}})\) be a function that keeps track of the total incentives assigned at a charging facility s. With this notation, and for a given (potential) vehicle-request assignment \({\textbf{x}}_{\mathscr {C}}:= \{x_{ij}, \,i\in {\mathscr {V}}, j \in {\mathscr {C}}\}\), the power utility company solves the following problem to compute the financial incentives associated with its charge requests:

$$\begin{aligned} \text {PUC}({\textbf{x}}_{\mathscr {C}})~~~~\min _{\{y_{ij} \in {\mathscr {Y}}_{\mathscr {C}}: \,i\in {\mathscr {V}}, j \in {\mathscr {C}}\}} ~~&\sum _{s \in {\mathscr {S}}} U_s (y_{i{j}}; {\textbf{x}}_{\mathscr {C}}, \theta _s ), \end{aligned}$$
(2a)
$$\begin{aligned} \text {s.t.} ~~~~~&b_{\min ,s} \le \rho _s(y_{ij};{\textbf{x}}_{\mathscr {C}}) \le b_{\max ,s}, \; \forall s \in {\mathscr {S}}. \end{aligned}$$
(2b)

where \({\mathscr {Y}}_{\mathscr {C}}\) is a convex set. The label “PUC(\({\textbf{x}}_{\mathscr {C}}\))” once again stresses that this is a problem solved by the power utility company, for a given assignment \({\textbf{x}}_{\mathscr {C}}\). Throughout this work, we assume that the function \(U_s\) is convex for any fixed \(x_{ij}\) and \(\theta _s\), while the function \(\rho _s\) is linear or affine; consequently, (2) is a convex problem.

Ride incentives at the EV fleet

We include in our framework an optimization problem associated with each EV, utilized by the EV owner to incentivize the ride-service provider to assign their preferred rides. To this end, let \({\textbf{x}}_{\mathscr {R}}:= \{x_{ij}, \,i\in {\mathscr {V}}, j \in {\mathscr {R}}\}\) denote the ride-requests assignment, and \(\{y_{ij}\}_{j \in {\mathscr {R}}} \mapsto D_{ij}(y_{i{j}}; {\textbf{x}}_{\mathscr {R}}, w_{ij})\) be a function modeling a financial cost incurred by the i-th EV when serving the ride assignment described by \({\textbf{x}}_{\mathscr {R}}\), where \(w_{ij} \in \mathbb {R}\) parametrizes the cost. Then, each EV i solves the following “best bid problem:”

$$\begin{aligned} \text {EV-}i({\textbf{x}}_{\mathscr {R}})~~~~\min _{\{y_{ij} \in {\mathscr {Y}}_{\mathscr {R}}: \, j \in {\mathscr {R}}\}} ~~ \sum _{j \in {\mathscr {R}}} D_{ij}(y_{ij}; {\textbf{x}}_{\mathscr {R}}, w_{ij}). \end{aligned}$$
(3)

Here, \({\mathscr {Y}}_{\mathscr {R}}\) describes a convex set of operational constraints, and \(D_{ij}\) is assumed to be a convex function for each fixed \(x_{ij}, w_{ij}\). More precisely, in this context, \(y_{ij}\) represents the (dis)incentive that the ride-service provider will receive from the EV owner if the EV i is assigned to the ride request j.

The cost in (3) can also be decoupled as \(D_{ij}(y_{ij}, w_{ij}) = D^\prime _{ij}(y_{ij}, w_{ij}) + D^{\prime \prime }_{ij}(y_{ij}, b_{ij})\), where \(D^\prime _{ij}(y_{ij}, w_{ij})\) is a term related to the potential financial gain of the driver when taking a ride, and \(D^{\prime \prime }_{ij}(y_{ij}, b_{ij})\) is related to the SOC level or the (un)willingness of the driver to take a ride request j. Of course, these costs can be engineered based on specific implementations of the algorithms, market setups, and models for the preferences of the drivers. As an example for the first term, the parameter \(w_{ij} \in \mathbb {R}\) may represent a fixed (dis)incentive defined as \(w_{ij} = h_{j} - \alpha _{ij} a_{ij}\), where \(h_{j}\) is the bid (or tip) offered by the customer that sent the ride request j (satisfying \(0 \le h_{j} \le h_{\textrm{max}}\)), \(a_{ij}\) is the cost of reaching the drop-off location of the ride request j starting from the current position of EV i, and \(\alpha _{ij} \in [0, 1]\) is a scaling factor decided by the EV owner; the cost can be set to, as an example, \(D^\prime _{ij}(y_{ij}, w_{ij}) = (y_{ij} - w_{ij})^2\). As an additional example, in the ride-sharing context, \(w_{ij}\) can be given by \(w_{ij} = h_{j} - \alpha _{ij} a_{ij} + \beta b_i\), where \(\beta \in [0,1]\), and \(b_i\) represents an additional incentive that depends on the number of currently available seats on EV i. As an example for the second term, one may consider the cost \(D^{\prime \prime }_{ij}(y_{ij}, b_{ij}) = y_{ij} b_{ij}\), where the parameter \(b_{ij}\) can be inversely proportional to the SOC; moreover, the term \(b_{ij}\) may take high values for rides that lead to a low SOC upon completion of the trip. We would like to point out that (3) is no longer necessary when considering a fleet of autonomous vehicles.

How do power utility company, ride-service provider, and EVs interact?

The optimization problems (1)–(3) are utilized to compute potential assignments (for given incentives) and incentives (for given potential assignments). We consider a game-theoretic approach where potential assignments and incentives are sequentially updated until they converge; we will comment later in the paper on the properties of the assignments and incentives at convergence (and their alignment with the concept of Nash equilibrium). Considering an iterative approach, where \(k \in \mathbb {N} \cup \{0\}\) is the iteration index, let \({\textbf{y}}^{(k)}\) and \({\textbf{x}}^{(k)}\) the assignments and incentives at iteration k; then, our mechanism involves updates of the form \(\text {RSP}({\textbf{y}}^{(0)}) \rightarrow {\textbf{x}}^{(1)} \rightarrow \text {PUC}({\textbf{x}}_{\mathscr {C}}^{(1)}),\text {EV-}i({\textbf{x}}_{\mathscr {R}}^{(1)}) \rightarrow {\textbf{y}}^{(1)} \rightarrow \text {RSP}({\textbf{y}}^{(1)}) \rightarrow {\textbf{x}}^{(2)} \rightarrow \text {PUC}({\textbf{x}}_{\mathscr {C}}^{(2)}),\text {EV-}i({\textbf{x}}_{\mathscr {R}}^{(2)}) \rightarrow {\textbf{y}}^{(2)} \rightarrow \ldots\) until convergence; the assignments at convergence are then dispatched to the EVs. The notation \(\text {RSP}({\textbf{y}}^{(k)})\) means that the problem (1) is solved by the ride-service provider to issue a new potential assignment \({\textbf{x}}^{(k+1)}\), based on the current incentives \({\textbf{y}}^{(k)}\) received from the power utility company and the EVs. Similarly, \(\text {PUC}({\textbf{x}}_{\mathscr {C}}^{(k)})\) means that the power utility company computes new incentives \({\textbf{y}}_{\mathscr {C}}^{(k+1)}\) by solving (2) based on the current potential assignment \({\textbf{x}}_{\mathscr {C}}^{(k)}\), and each EV updates its own incentives by solving (3). At each round, the ride-service provider sends to the power utility company and EVs new potential assignments and receives from them new incentives. This mechanism, which is in the form of a Gauss-Seidel method45 and is repeated at every time slot t, is tabulated as Algorithm 1.

Note that in step [S3-a] the binary variables \(x_{ij} \in \{0,1\}\) have been relaxed to \(x_{ij} \in [0,1]\); accordingly, the relaxed assignment problem in step [S3-a] is a continuous convex linear problem, which can be solved efficiently. Moreover, in the section "Theoretical foundations", we will show that the relaxation is exact. The steps of the Gauss-Seidel algorithm are repeated until convergence (i.e., when \({\textbf{x}}^{(k+1)} = {\textbf{x}}^{(k)}\) and \({\textbf{y}}^{(k+1)} = {\textbf{y}}^{(k)}\)) or a maximum number of iterations is reached.

Experimental setup

Data sources

Our case study is based on ride requests from the lower Manhattan area, in New York City, NY. We use real data recorded by the Taxi and Limousine Commission (TLC)40 on Tuesday, March 1, 2022, between 6:00 and 24:00. The total number of ride requests collected during this time window is 19935, from which we keep a random sample of 2480 to have a number of ride requests that can be handled by a fleet of 100 EVs. The ride requests have been categorized according to their submission time, and grouped into one-minute time slots. Note that the ride requests sub-sampling is due to the fact that we require to keep the simulation of several experiments manageable on a 2.4 GHz Quad-Core Intel Core i5 laptop with 8 GB RAM memory. The proposed algorithm on average converges in 2 iterations and takes 2.6 seconds per iteration. We obtain approximated power generation profiles for PV systems from the renewable historical data of New York Independent System Operator41. As a point of reference, we extracted the PV shape from the renewable energy generated within New York State on a sunny day, and modify it accordingly to represent also a cloudy day. To test our model, we consider three scenarios, corresponding to different weather conditions: sunny day (i.e., maximum PV generation), and cloudy day, which presents two alternatives: cloudy morning and cloudy afternoon. According to NYC OpenData46, we estimate that about 5 MW of PV peak power will be generated in the part of Manhattan that we are considering, distributed among a total of 39 charging stations. Assuming all PV systems have equal capacity, each station is estimated to produce about 125 kW during peak hours. Since most likely only a fraction of the generated power will be designated to EV charging, and given the smaller fleet size considered in this work, we assume that each charging station can produce 25 kW as peak power. The charging stations are grouped within the 4 regions they belong to by adding their PV capacity. In our graph, this translates to 4 nodes hosting charging facilities, as depicted in Fig. 1b. Since the number of charging stations at each of these facilities varies, the maximum PV generation will be different in each region, as one can see in Fig. 5.

figure a

Problem and algorithm setup

Next, we describe the parameters and functions used in the case study. We consider a fleet of 100 EVs, each with a 50 kWh battery capacity. We assume that each EV consumes 0.1 kWh per minute traveled, and recharges 0.2 kWh per minute spent at any charging station equipped with level 2 EV chargers, i.e., it takes approximately 4 hours to fully charge an empty EV battery. Based on our data sub-sample, it is reasonable to start our simulations with a fleet of idling EVs at 6:00, since there are very few ride requests and no renewable generation at night. However, the results do not change significantly even if we randomly set an initial state (idling, charging, driving) for each vehicle as long as the EVs become available in the next hour and a half. To make our model more realistic, we implement some constraints summarized in the following. EVs whose battery status is up to 2/3 of the full battery capacity cannot attend a charge request. EVs are expected to charge fully once they have accepted a charge request and will therefore not be considered for other assignments in the meanwhile. When they are available, EVs can only accept charge requests coming from the region where they are idling or from neighboring areas located at most one edge distance. EVs must have enough battery to complete the planned trip to be considered as candidates for a request. Ride requests can be attended by EVs located in the near neighborhood, i.e., no further than two edges distance. The travel time to move from one neighboring area to another is 10 minutes. The EV assignment is performed every 1 minute.

The functions for the optimization problems are defined as follows:

  • For the EV: \(D_{ij}(y_{ij}, w_{ij}) = (y_{ij}-w_{ij})^2\), \({\mathscr {Y}}_{\mathscr {R}}= [r_{\min }, r_{\max }], \, \forall i \in {\mathscr {V}}, \, j \in {\mathscr {R}}.\)

  • For the power utility company: \(U_s(x_{ij}, y_{ij}, \theta _s) = (L(P_{\textrm{ref,s}}) - \rho _s(x_{ij}, y_{ij}))^2, \, {\mathscr {Y}}_{\mathscr {C}}= [l_{\min }, l_{\max }], \, \forall s \in {\mathscr {S}}\), where \(L(P_{\textrm{ref,s}}) = c_{\textrm{RER}} \left( P_{\textrm{ref},s} - v_{\textrm{ch},s} p_{\textrm{ch} } \right)\), and \(\rho _s(x_{ij}, y_{ij}) = \sum _{i \in {\mathscr {V}}} \sum _{i \in {\mathscr {C}}_s} x_{ij} y_{ij}, \, \forall s \in {\mathscr {S}}\).

The function L accounts for the loss incurred due to excess of renewables, where \(P_{\textrm{ref},s}\) is the power generated at specific areas where the charging facility s is located, \(v_{\textrm{ch}}\) is the number of EVs currently charging at facility s, and \(p_{\textrm{ch}}\) is the power delivered to each charging EV. The time-varying price of the generated PV power is given by \(c_{\textrm{RER}}\).

Numerically, if the EV i cannot accommodate the ride request \(j \in {\mathscr {R}}\) or the charge request \(j \in {\mathscr {C}}\), we set \(c_{ij} = 10^6\) or \(d_{ij} = 10^6\), respectively; this means that the assignment is infeasible13. We remark that an alternative way to impose that the EV i cannot accommodate the ride request j is to set \(y_{ij} = -10^6\). In a practical implementation of the algorithm, this represents the case where the EV driver i cannot take the ride j because the SOC is not sufficient (in this case, the ride-service provider has no knowledge of the SOC level of the EV).

Table 2 Definition of sets, variables, and parameters for our vehicle assignment method based on renewable and ride incentives.

We remark that our numerical results consider the case where EVs charge until full once they accept a charging request. However, our mechanism can allow EVs to interrupt charging in order to accept a ride assignment; this is possible by including the EVs that are charging in our Algorithm 1 and, in particular, in the steps [S2]–[S3]. However, in a realistic implementation, the ability to interrupt charging will be regulated by contractual agreements associated with the charge request (for example, the power utility company may require a minimum charging time once the EV starts the charging session).

In terms of implementation of the Algorithm 1, it is important to remark that, although the assignment is performed in step [S3] by the ride-service provider, Algorithm 1 is specifically designed for the EV drivers and the power utility company to influence the assignment process. As explained in the section "Theoretical foundations", Algorithm 1 reaches a Nash equilibrium, where EV drivers have no incentive to deviate from the final assignment. For this reason, the numerical simulations considers a case where the EV drivers are fully compliant and serve the assigned ride or charge requests. Having said that, our algorithm is still applicable to a case where drivers are not fully compliant, and may decide to decline ride or charge requests that are assigned to them. These ride and charge requests are re-dispatched in the next step or just missed.

Theoretical foundations

In this section, we present two key concepts to analyze our vehicle assignment method based on renewable and ride incentives.

Symmetric linear assignment problem

The problem in (1) is an asymmetric linear assignment problem47,48. By taking advantage of the totally unimodular constraint matrix property of the linear assignment problems in (1), it is well known that their continuous relaxation (i.e., when one substitutes \(x_{ij} \in \{0, 1\}\) with \(x_{ij} \in [0, 1]\)) is exact13. Therefore, we can reformulate the problem (1) by following a similar procedure as13. First, we add virtual requests \({\mathscr {M}}_{E}\) or virtual EVs \({\mathscr {M}}_{V}\) such that \({\mathscr {E}}' = {\mathscr {E}}\cup {\mathscr {M}}_{E}\) and \({\mathscr {V}}' = {\mathscr {V}}\cup {\mathscr {M}}_{V}\) have the same cardinality, and define \(h~=~\max \{m, p+q\}\). Second, the assignment cost \(c_{ij}\) (or \(d_{ij}\)) of the virtual EVs in \({\mathscr {M}}_{V}\) for all requests in \({\mathscr {M}}_{E}\) is set to \(\infty\). The incentives for the virtual EVs are set to 0. Thus, the problem (1) is equivalent to the following symmetric linear assignment problem:

$$\begin{aligned} \min _{x_{ij}\in [0,1]} ~~&\sum _{i=1}^h \sum _{j=1}^h (c_{ij} - y_{ij}) x_{ij} + \sum _{i=1}^h \sum _{j=1}^h (d_{ij} - y_{ij}) x_{ij}, \end{aligned}$$
(4a)
$$\begin{aligned} \text {s.t.} ~~~~~&\sum _{i=1}^h x_{ij} = 1 \quad \forall j \in {\mathscr {E}}', \end{aligned}$$
(4b)
$$\sum _{j=1}^h x_{ij} = 1 \quad \forall i \in {\mathscr {V}}'.$$
(4c)

We then have the following result.

Lemma 1

Problem (4) is an exact continuous relaxation of the binary Problem (1).

The proof of the result follows from the totally unimodularity of the constraints, or equivalently from the fact that the solutions are vertices of the Birkhoff’s polytope. This is a standard result in linear programming. The interested reader is referred to13,49.

Existence of the Nash equilibrium

The proposed method is aligned with game-theoretic frameworks45,50,51,52; in particular, it can be modeled as a non-cooperative game, where three groups of agents (ride-service provider, power utility company, and EVs) interact to optimize their costs. To analyze our method, we first consider the case where no constraints are present for the power utility company. To streamline the exposition, we define as \(g_1({\textbf{x}}_{\mathscr {R}}; {\textbf{y}}_{\mathscr {R}})\) and \(g_2({\textbf{x}}_{\mathscr {C}}; {\textbf{y}}_{\mathscr {C}})\) the cost functions in (2) and (3), respectively, where the notation is provided in Table 2.

Definition 1

(from45) A Nash Equilibrium (NE) is a tuple \(({\textbf{x}}^*, {\textbf{y}}^*)\) such that

$$\begin{aligned} \begin{array}{lll} {\textbf{x}}^* \in \arg \min _{{\textbf{x}}} ~ f({\textbf{x}}, {\textbf{y}}^*), &{} &{} {\textbf{y}}^* \in \arg \min _{{\textbf{y}}} ~ g({\textbf{x}}^*, {\textbf{y}}) := g_1({\textbf{x}}_{\mathscr {R}}^*, {\textbf{y}}_{\mathscr {R}}) + g_2({\textbf{x}}_{\mathscr {C}}^*, {\textbf{y}}_{\mathscr {C}}), \\ \quad \text {s.t.} ~~~ {\textbf{x}}\in {\mathscr {X}}. &{}&{}\quad \text {s.t.} ~~~ {\textbf{y}}\in {\mathscr {Y}}= {\mathscr {Y}}_{\mathscr {R}}\times {\mathscr {Y}}_{\mathscr {C}}. \end{array} \end{aligned}$$

Definition 1 implies that when each agent chooses its strategy, \({\textbf{x}}^*\), \({\textbf{y}}^*_{\mathscr {R}}\) and \({\textbf{y}}^*_{\mathscr {C}}\), no one has any incentive to change its strategy unilaterally. Now, we reformulate the Nash Equilibrium problem (NEP) as a variational inequality (VI)45. First, we define the vector-valued function \(F: {\mathbb {R}}^{2m(p+q)} \rightarrow {\mathbb {R}}^{2m(p+q)}\) and the point-to-set mapping \(S: {\mathbb {R}}^{2m(p+q)} \rightrightarrows {\mathbb {R}}^{2m(p+q)}\) by

$$\begin{aligned} F({\textbf{x}}, {\textbf{y}})&= \begin{bmatrix} \nabla _{x} f({\textbf{x}}, {\textbf{y}}) \\ \nabla _{y} g({\textbf{x}}, {\textbf{y}}) \end{bmatrix} \quad \text { and } \quad S := {\mathscr {X}}\times {\mathscr {Y}}\end{aligned}$$

Therefore, we can define the VI problem as follows.

Definition 2

(from45) Given a closed and convex set \(S \subseteq {\mathbb {R}}^{2m(p+q)}\) and a mapping \(F: S \rightarrow {\mathbb {R}}^{2m(p+q)}\), the VI problem, denote by VI(SF), consists in finding a vector \({\textbf{z}}^* := [{\textbf{x}}^*, {\textbf{y}}^*]^\top\), such that: \(({\textbf{h}}- {\textbf{z}}^*)^\top F({\textbf{z}}^*) \ge 0, \forall ~{\textbf{h}}\in S\).

In45, the relation between NEP and VI is established. In particular, suppose that: 1) The set S is convex and closed. 2a) The cost functions \(f({\textbf{x}}, {\textbf{y}})\) is continuously differentiable in \(({\textbf{x}}, {\textbf{y}})\) and convex in \({\textbf{x}}\) for every fixed \({\textbf{y}}\), and 2b) The cost functions \(g({\textbf{x}}, {\textbf{y}})\) is continuously differentiable in \(({\textbf{x}},{\textbf{y}})\) and convex in \({\textbf{y}}\) for every fixed \({\textbf{x}}\). Then, the NEP is equivalent to the VI(SF). The conditions that guarantee the existence of a NE follow directly from the existence of a solution of the VI. To show the existence, in addition to conditions 1) and 2), we have that, in our case, the set S is compact; consequently, the NEP has a nonempty and compact solution set45.

When one considers the constraints in problem (2), we need to resort to the concept of Generalized Nash Equilibrium. Based on the problems (1)–(3), define \({\hat{S}}_x = {\mathscr {X}}, \; {\hat{S}}_y({\textbf{x}}) = \{ {\textbf{y}}\in {\mathscr {Y}}\, | \, {b}_{\min } \le \rho _s({\textbf{x}}, {\textbf{y}}) \le {b}_{\max }, \, \forall s \in {\mathscr {S}}\}\) and \({\hat{S}} = {\hat{S}}_x \times {\hat{S}}_y({\textbf{x}})\). Then, the NEP becomes a Generalized NEP (GNEP) where the set \({\hat{S}} \subseteq {\mathbb {R}}^{2m(p+q)}\) depends on the other agents’ strategies. Assume \({\textbf{H}}\) is a given symmetric positive definite matrix, and let \({\textbf{z}}\) be temporarily fixed. Consider the following problem50,51:

$$\begin{aligned} \min _{{\textbf{h}}\in {\hat{S}}} \left\{ \langle F({\textbf{z}}), \, {\textbf{h}}-{\textbf{z}} \rangle + \frac{1}{2} \langle {\textbf{h}}-{\textbf{z}}, \, {\textbf{H}}({\textbf{h}}-{\textbf{z}}) \rangle \right\} \quad \equiv \quad \min _{{\textbf{h}}\in {\hat{S}}} \Vert {\textbf{h}}- ({\textbf{z}}- {\textbf{H}}^{-1} F({\textbf{z}})) \Vert _{\textbf{H}}^2, \end{aligned}$$
(5)

and the solution of the problem (5) is given by \(h({\textbf{z}}) = \textrm{proj}_{{\hat{S}}, {\textbf{H}}} \{{\textbf{z}}- {\textbf{H}}^{-1} F({\textbf{z}})\}\), where the mapping \(h: {\mathbb {R}}^{2m(p+q)} \rightarrow {\mathbb {R}}^{2m(p+q)}\) yields a fixed point characterization of the solution of the quasi-variational inequality (QVI) problem, defined as \(({\textbf{h}}- {\textbf{z}}^*)^\top F({\textbf{z}}^*) \ge 0, \, \forall {\textbf{h}}\in {\hat{S}}\). We can define the merit function of the GNEP as the function \(u({\textbf{z}})\) defined as50 \(u({\textbf{z}}) = - \langle F({\textbf{z}}), \, h({\textbf{z}})-{\textbf{z}} \rangle + \frac{1}{2} \langle h({\textbf{z}})-{\textbf{z}}, \, {\textbf{H}}(h({\textbf{z}}) -{\textbf{z}}) \rangle\), and consider the problem \(\min _{{\textbf{z}}} \; u({\textbf{z}}), s.t.~{\textbf{z}}\in {\hat{S}}\).

From50, it follows that for each \({\textbf{z}}\in {\hat{S}}\), we have \(u({\textbf{z}}) \ge 0\); moreover, \({\textbf{z}}\) solves the QVI problem if and only if \(u({\textbf{z}}) = 0\) and \({\textbf{z}}\in {\hat{S}}\). This result gives a tool to corroborate numerically the performance of Algorithm 1. In particular, if the assignment and the incentives at convergence are such that the merit function is 0, then the proposed Gauss-Seidel method identified a GNE.