Introduction

Autonomous vehicles (AVs) are vehicles that can cover all aspects of driving in any environmental condition. According to Litman's research, the use of AVs started before 2020, and the expansion of their use will probably be realized in 20401. AVs promise a fundamental change in transportation. Travel is expected to be safer, cheaper, easier, and more sustainable through the use of AVs, and as a result, travel costs will also decrease2,3. According to estimations, AVs will have a special place in urban and intercity transportation in the next ten years. It is clear that with the application of these vehicles and their positioning, the planning horizons for the coming years will change. Modeling tools give researchers the possibility of impact measurement in transportation networks and make it possible to understand the future better. Among the effects of AVs, increasing safety, reducing fuel consumption, and creating a happier and more active life for people can be mentioned. The development of AVs can also be imagined under the influence of the desire of large companies to invest and take over the market share.

AVs can identify their surroundings and move safely alone or with little assistance4,5. Different autonomy levels are envisioned for such vehicles6,7. AVs make it possible for those who are unable or unwilling to drive to move by themselves without needing a driver. These people include the disabled and elderly, or young people without a certificate. As a result of this capability, more destinations are available to these groups and the number of trips they can make will increase8. On the one hand, cheap trips and the competition created between shared and private vehicles provide the opportunity to access more distant destinations, including the suburbans, for this group of users9. Studies in the field of people’s desire to use AVs in different categories indicate that the degree of desire depends on factors such as gender, income, age, etc.10. On the other hand, shared AVs provide the possibility of multiple trips at a low cost and without worrying about the costs of owning a vehicle (such as depreciation, insurance and taxes, and repairs)11. In addition, it is possible for the passengers of such vehicles to do other activities unrelated to driving. Such an approach will certainly cause more users to favor such vehicles, and as a result, it will lead a wave of people to use such vehicles12.

Each vehicle can benefit from information obtained from other vehicles in its vicinity, especially information about traffic congestion and safety hazards. Vehicular communication systems use vehicles and roadside units as communication nodes in a peer-to-peer network and provide information to each other13. In a cooperative approach, vehicular communication systems can cooperate with all vehicles to be more effective. According to a study conducted by the National Highway Traffic Safety Administration, vehicular communication systems can prevent up to 79% of traffic accidents14.

Significant research has supported both the potential benefits of AVs in enhancing travel efficiency and the possibility of increased travel demand resulting from their adoption. AVs are equipped with communication systems that allow them to communicate with other AVs and roadside units to provide them with information about the road or traffic congestion. In addition, scientists believe that the future will be accompanied by computer programs that will manage each private vehicle as it passes through the intersection. This type of connection can replace traffic lights and stop signs. These types of features also create and develop the ability of AVs to cooperate with other services (such as intersection computer systems) in the AV market. This issue can lead to creation of a network of AVs that all use the same network and the information in that network. Finally, the application of this problem can lead to more use of AVs in the network because the information is verified by the use of other AVs. Such movements strengthen the value of the network, and these movements are called external factors of the network15.

In transportation planning, accessibility refers to a measure of ease of approaching and interacting with a destination16 or activities performed in a space, for example, around a city or country17,18. The transportation system must provide access to all administrative, medical, and service destinations, and this is not only done by approaching the destinations in the network but also requires increasing the efficiency of the transportation system19. Hansen first proposed the term accessibility as a concept in the field of transport quality in a region20. Also, according to the definition of Bertolini et al., accessibility is usually defined as the number of places that can be accessed in a certain travel time or cost21.

The concept of accessibility plays an important role in several scientific fields, for example, transportation planning, environmental protection, economic development, etc., and changes in accessibility can have a direct impact on a person’s quality of life. Transportation accessibility is a function of connectivity between an origin (e.g. a home) and a destination (e.g. a workplace). In order to evaluate accessibility, criteria have been proposed by Geurs et al., which include theoretical foundations, interpretability, operationality, and usability22. On the other hand, accessibility is associated with land use. Increasing accessibility in a certain location increases land development's desirability23. This relationship is often used in transportation and land use forecasting models. Geurs et al. identified four components from different definitions of accessibility in theory and practice. These components include land use, transportation, time, and person22. Therefore, accessibility should be related to travel opportunities and land use changes. This should also be considered in connection with personal accessibility. In addition, the accessibility paradigm considers both mobility and proximity factors as part of itself, in close connection with each other24. In fact, adding more density to areas can lead to less congestion, but developments in AVs industry can reduce accessibility over a long period of time by creating more AV trips that increase dependence on vehicles25.

Fully AVs are expected to change accessibility fundamentally. From the point of view of transportation, such vehicles are expected to minimize human errors and make travel much more reliable26. Moreover, such vehicles completely reduce travel costs27, make it safer28, provide more comfort29, and make trips better from an environmental point of view. These vehicles also make vehicular travel possible for children, the elderly, and the disabled30. Based on the different scenarios expressed in studies, the presence of AVs can reduce the total number of transport fleets2,31,32. If these assumptions are implemented, AVs will not only revolutionize transportation but also change the shape of the city, and by reducing the overall costs of travel, they will also increase the total demand for travel and cause a new wave of urban marginalization and urban expansion33. AVs are expected to offer greater convenience at lower prices while increasing road capacity. This is the same pattern that reminds the increase of private vehicles and, later, the construction of highways. Based on the operational definitions, the demand-to-cost factor is introduced as an accessibility index. Therefore, in this research, related and influencing factors on the demand and cost, as well as accessibility, were investigated in order to measure the effectiveness of accessibility due to the use of AVs.

Meyer et al. (2017) simulated the effect of AVs on accessibility by the use of national transport models of Swiss municipalities. It was revealed that AVs could lead to another quantum leap in accessibility. Also, spatial distributions of accessibility effects indicated that AVs favor urban sprawl and can make public transportation redundant except for dense urban regions34. Luo et al. evaluated the effect of AVs on accessibility by the use of agent-based disaggregate simulations (MATSim). This study was conducted on Japanese regional cities using a spatial dataset of persons’ trip surveys. Shared and private AVs and human-driven private cars were applied in the simulation as two autonomous transport modes. A remarkable market share of AVs was indicated in the scenarios, and when private AVs were presented in the scenario, the overall accessibility was increased. Further accessibility gains were represented in suburban areas that may lead to more urban sprawl in the future35. Zhong et al. evaluated the long-term impacts of congestion pricing, as well as shared AVs, on job accessibility, transportation, and land, use. They revealed that introducing shared AVs reduced the negative effects of road congestion pricings and contributed to population development as well as job in charging zones36. Dianin et al. conducted a study to represent a framework for important and developing aspects regarding AV implication of accessibility as well as transport equities. They discussed four accessibility effects of AV based on the literature, including social accessibility inequity mitigation, social accessibility inequity exacerbation, accessibility sprawls, and accessibility polarizations37. Eppenberger and Richter examined the opportunity of shared AVs for improving spatial equities of accessibility as well as socioeconomic developments of four European urban cities using a linear regression model. Results indicated the positive effect of educational attainments on accessibility in all areas. Also, for London as well as Paris, the positive effect of yearly incomes on accessibility was represented, and conversely, in Vienna and Paris, the increased unemployment rate had a negative effect. Moreover, the potential of shared AVs was evident in all areas by comparing car and public transportation accessibilities38. Petrović et al. investigated differences in AV acceptances in physically disabled people using the Bayesian linear regression model. It was indicated that the main aspects of AV successful introductions were trust, accessibility, and attitudes. Also, AVs represented the great potential for improving accessibility to transportation and ensuring transportation equities39.

Due to the fact that today the discussion of using AVs has been widely favored by manufacturers and consumers, it is expected that the development of such vehicles will become more popular in the future. Therefore, investigating the characteristics and the effect of such devices on the intra-city transportation network can greatly affect future urban planning, especially in the field of accessibility as one of the important indicators of transportation. Therefore, the impact of AVs on accessibility is analyzed and investigated in this research.

Many believe that the presence of AVs will have a great impact on the urban lifestyle. The increase in the presence of people in cities causes an increase in the share of traffic in cities and, as a result, a decrease in accessibility. From this point of view, it becomes necessary to facilitate people's accessibility in cities. Therefore, it is required to study the impact of such vehicles on the future of transportation and especially accessibility. On the other hand, accessibility is one of the most important transportation issues nowadays. Due to the many restrictions on accessibility, such as travel time, etc., the need to use AVs, which reduce the restrictions, is felt more. To date, a limited number of studies have been conducted around the impact of AVs on accessibility, and considering the above-mentioned, more research is needed in the field of AVs. Therefore, the main goal of this study is to model the impact of AVs on the accessibility index in the transportation network. Also, the simultaneous solution of the assignment problem of AVs and non-AVs using a hybrid heuristic assignment method and improvement in the assignment of transportation network traffic as the innovation of this research was investigated.

Methodology

In this research, the required data were selected using Hearn and Sioux Falls networks. Also, a hybrid heuristic assignment algorithm was implemented, which simultaneously assigned and analyzed different percentages of the presence of AVs along with the remaining percentage of non-AVs in the network in the form of three scenarios. Then the network accessibility was studied through two different calculation methods of gravity and accessibility index with the information obtained at the end of each assignment stage. These scenarios include different modes of capacity calculation in the network. In order to analyze this information, Anaconda software was used, in which all steps are coded with the Python programming language. The geographical area used in this research was adapted from the Sioux Falls transportation network (located in South Dakota, USA). Figure 1 shows the steps of the research method.

Figure 1
figure 1

Steps used in this study.

Data collection

In this section, the required data was obtained from the Hearn and Sioux Falls networks, and in order to code and facilitate the network assignment, the Python programming language was used.

Traffic assignment

Traffic assignment refers to the selection of routes between the origin and destination in transportation networks; A process to estimate the flow in the transportation network for a given demand. In fact, its purpose is to assign the origin–destination matrix to the network. Traffic assignment is the fourth step of the conventional transportation forecasting model, which is done after trip generation, trip distribution, and modal split. To determine the needs of facilities and the associated costs and benefits, the number of passengers per route and network link must be known (a route is simply a chain of links between an origin and a destination). As a result, traffic assignment in the network is very important40.

Due to the existence of two types of AV and non-AV traffic flows, two traffic assignment methods were used, the system optimum (SO) assignment method for AVs and the user equilibrium (UE) method for non-AVs. It is important to mention that the SO assignment method can be applied in the case that AVs are in the optimum state and in communication with each other. Also, the written assignment codes perform two types of SO and UE assignments simultaneously.

UE

What gives rise to the concept of equilibrium in transportation networks is that the travel time of network links is not a constant value but is a function of the flow in that link, and the travel time increases with the increase of the flow in a link. This issue causes an interaction between the number of users of different routes and their travel time, which creates the equilibrium problem and obtaining an equilibrium flow. When the flow passing through the links of a network is known, it can be used to evaluate the network, determine the service level of the links, design issues, control, policy making, tolls, etc.41.

The equilibrium flow in the network results from the accumulative or simultaneous decisions of all users. It would be reasonable to assume that each driver tries to minimize the travel time between the origin–destination pair. Of course, this does not mean all passengers of the same origin–destination will use a specific route. A stable flow will occur when no travelers can unilaterally improve their travel time by changing their routes. This statement is commonly referred to as UE condition or Wardrop’s principle. In other words, in equilibrium, for each origin–destination pair, the travel time for all used routes is equal and less than or equal to the travel time of unused routes. Therefore, according to this principle, in UE condition, some of the available routes between each origin–destination may be used and some may not be used, and if there are several used routes, the travel time of all of them will be equal, and all the routes that the passengers of that origin–destination do not use must have a travel time of at least as much as the used routes42. The equilibrium flow pattern in links can be obtained by solving Eq. (1):

$${\text{min}}z\left(x\right)= {\sum }_{a}{\int }_{0}^{{x}_{a}}{t}_{a}\left(\omega \right)d\omega ,$$
(1)
$${\sum }_{k}{f}_{k}^{rs}= {q}_{rs} \forall rs$$
$${x}_{a}= {\sum }_{rs}{\sum }_{k}{f}_{k}^{rs}{\delta }_{a.k}^{rs} \forall a$$
$${f}_{k}^{rs} \ge 0 \forall k. rs$$

where the objective function (\(z\left(x\right)\)) is the sum of the definite integrals of the performance functions of the network links, \({t}_{a}\left(\omega \right)\) is the travel time of link \(a\), \({f}_{k}^{rs}\) is the flow on path \(k\) connecting origin \(r\) and destination \(s\), \({q}_{rs}\) is the demand for travel from \(r\) to \(s\), \({x}_{a}\) is traffic volume of link \(a\), and \({\delta }_{a.k}^{rs}\) is an indicator variable taking a value 1 if link \(a\) is included in path \(k\) between \(r\) and \(s\), and 0 otherwise43,44.

The restrictions \({\sum }_{k}{f}_{k}^{rs}= {q}_{rs}\) are so-called traffic flow conservation restrictions. This set of constraints states that the total flow in all paths between a given origin–destination must equal the demand of that origin–destination. At each stage of the assignment, the network link's capacity changes with different percentages of the presence of AVs, which is calculated through Eq. (1)45.

SO

This problem differs from UE problem only in the objective function, and at the same time, its objective function has a special change, unlike the previous problem. But the limitations are still the same as the previous problem. If the flow in each of the network links is multiplied by its travel time and the values on all the links of the network are added, the resulting expression will be the total travel time spent in the network according to Eq. (2)46.

$$\widetilde{Z}\left(X\right)= \sum_{a}{x}_{a}\cdot {t}_{a}\left({x}_{a}\right),$$
(2)

where \({t}_{a}\left({x}_{a}\right)\) is the average travel time for a vehicle in link \(a\). This quantity, i.e. the total time spent in the system, can be important from the point of view of the operators of the transportation network system. While it is assumed that each person chooses a route in such a way as to improve the travel time. For network operators, the total travel time spent in the network will be more important than the interests of individual users, and this quantity can be a measure to evaluate the improvement or deterioration of the network condition from the point of view of its suppliers. The minimization problem of Eq. (3) is called SO problem47:

$${\text{min}}\widetilde{Z}\left(X\right)= {\sum }_{a}{x}_{a}\cdot {t}_{a}\left({x}_{a}\right),$$
(3)
$${\sum }_{k}{f}_{k}^{rs}= {q}_{rs} \forall rs$$
$${x}_{a}= {\sum }_{rs}{\sum }_{k}{f}_{k}^{rs}{\delta }_{a.k}^{rs} \forall a$$
$${f}_{k}^{rs} \ge 0 \forall k. rs$$

The flow pattern resulting from this problem is called SO flow pattern. This flow pattern may not necessarily match UE flow pattern because the normal flow pattern is defined so that each individual minimizes his own travel time, not that all travelers cumulatively decide to minimize the network travel time. Obviously, the system operator would like to observe SO flow patterns in the network, but normally such a wish will not be realized because this flow pattern may not necessarily match the normal flow pattern resulting from individual users' decisions. In fact, it can be said that in the normal case, obtaining SO flow pattern will require that several network passengers increase their personal travel time from the minimum state in favor of the total travel time of the network. It is clear that this will not happen normally. For this reason, an issue called the imposition of tolls, or road taxes, can be raised in transportation networks. That is, the operator of the system and certain routes or links places taxes or tolls that move the flow in the network towards the desired pattern, which is SO flow pattern48.

Travel time function

Suppose, in the study of a highway network, there is a function for each link that expresses the relationship between safety and traffic volume. The Bureau of Public Roads (BPR) developed the link congestion function (delay-volume, or link performance, travel time, or cost), which is shown in Eq. (4)43:

$${t}_{a}\left({x}_{a}\right)= {t}_{a}^{f}\left(1+0.15{\left(\frac{{x}_{a}}{{c}_{a}}\right)}^{4}\right),$$
(4)

where \({t}_{a}^{f}\) is the free-flow travel time on link \(a\), \({c}_{a}\) is the capacity of link \(a\). The travel time function at low volumes usually has a very small slope, and its sensitivity to flow is small. Therefore, in such volumes, the travel time of network links is almost independent of the volume, so the normal flow pattern (UE) will almost match the optimal flow pattern. Therefore, at lower densities, the users and system operator benefit is almost compatible with each other, and with the increase in traffic volume and the growth of congestion, these two conflict with each other. Now, since in this research, both SO and UE assignments are done simultaneously, it can be used as a cost function to solve SO problem by deriving the time function. If the travel time functions in network links are given as Eq. (5), solving UE problem with these travel times will yield the same SO of the system.

$${\widetilde{t}}_{a}\left({x}_{a}\right)={t}_{a}\left({x}_{a}\right)+{x}_{a}\frac{d{t}_{a}({x}_{a})}{d{x}_{a}}.$$
(5)

Also, if SO problem is solved with travel time functions as Eq. (6), the resulting solution will be the same as the solution of UE problem49.

$${\widehat{t}}_{a}\left({x}_{a}\right)=\frac{1}{{x}_{a}}{\int }_{0}^{{x}_{a}}{t}_{a}\left(\omega \right)d\omega .$$
(6)

Frank-Wolfe algorithm

The Frank-Wolfe algorithm is a first-order iteration algorithm for constrained convex optimization. In each iteration, the Frank-Wolfe algorithm considers a linear approximation of the objective function and moves towards the minimization of this linear function. This method was originally proposed by Marguerite Frank and Philip Wolfe in 1956. Solving the Frank-Wolfe convex combination algorithm problem is shown step by step as follows50,51,52:

Step 0: Finding a feasible solution \({X}_{0}\)

Step 1: Finding \({Y}^{n}\) by solving the problem in Eq. (7):

$$Min\overrightarrow{ \nabla Z\left({X}^{n }\right)\cdot } \overrightarrow{{Y}^{n}},$$
(7)
$$s\cdot t\cdot \sum_{i}{h}_{ij}{Y}_{i}^{n}\ge {b}_{j} \forall j\in {j}^{n}$$

where \(\nabla Z\left({X}^{n}\right)\) denotes the gradient of \(Z\) evaluated at \({X}^{n}\), \({X}^{n}\) is link flows at iteration \(n\), \({Y}^{n}\) is an auxiliary flow pattern, i and j are indices of origin and destination locations, respectively, \({h}_{ij}\) is the coefficient matrix in link \(i-j\), and \({b}_{j}\) is the right hand side vector.

Step 2: Finding step length \({a}_{n}\) by solving the problem in Eq. (8):

$$Min Z\left(\left(1-{a}_{n}\right){X}^{n}+{a}_{n}{Y}^{n} \right),$$
(8)
$$s\cdot t\cdot 0\le {a}_{n}\le 1$$

Step 3: Finding the new point (as indicated in Eq. (9)):

$${X}^{n+1}=\left(1-{a}_{n}\right){X}^{n}+{a}_{n}{Y}^{n}.$$
(9)

Step 4: If the termination rule is valid, end. Otherwise, 1 + n → n and go to step 1 and repeat the problem again.

Frank Wolfe's algorithm tries to choose \(n\) more intelligently: in each iteration, \(n\) is chosen so that along the connecting line, the link flow \(X\) to the optimal solution \({X}^{*}\) is as close to equilibrium as possible44.

Method of successive averages (MSA)

In choosing the value of \(n\), there may be two wrong situations. If \(n\) is "too large", overcorrection occurs (and may oscillate continuously). If it is "too small", it will take too long to complete (if there is one). MSA tries to avoid both errors by starting with large values of \(n\) and moving towards smaller values. If \({n}_{i}\) is the size of each step for the ith iteration (as Eq. 10):

$${n}_{i}=\frac{1}{k} k=2. 3.$$
(10)

According to the above explanations, it should be noted that this method differs from the Frank Wolfe algorithm only in step 2.

Accessibility measurement

The final goal of this research is to measure the impact of the presence of AVs on the accessibility of the transportation network. Therefore, in this regard, in the continuation of the written codes after the end of each assignment, the amount of accessibility is measured and recorded by two relations of gravity and accessibility index.

Gravity

A road network is represented by a directed graph \(g=(N.E)\), where \(N\) is the set of nodes and \(E\) represents the set of links. Each link \(e\) in the set \(E\) \((e\in E)\) has a travel time depending on the flow \({t}_{e}={t}_{{(y}_{e})}\), where \({(y}_{e})\) is the flow of the link, and \(t(\cdot )\) is the travel time function of the link. If \({p}_{k}^{rs}\) is a path between the pair of origin and destination (O-D), the travel time of the path \({t}_{k}^{rs}\) is calculated as the result of all the travel times of the links along the path in the form of Eq. (11)53:

$${t}_{k}^{rs}= \sum_{e}{t}_{e}{\delta }_{k.e}^{rs} .$$
(11)

In which, \({\delta }_{k.e}^{rs}\) is the random index of the link path; If the path \({p}_{k}^{rs}\) passes through link \(e\), \({\delta }_{k.e}^{rs}=1\), and otherwise, it is equal to zero. This means that \({P}_{rs}\) is the shortest route among all routes with the shortest travel time \({t}_{rs}\) between two points of origin and destination.

If \((\dots . {f}_{j}^{s}.\dots )\) is a set of urban opportunities or facilities (such as businesses, shops, etc.) at destination \(s\), based on the concept of gravity-based accessibility, the accessibility \({A}_{rs}\) of people living in a place \(r\) for their participation in activities from destination \(s\) is formulated in the form of Eq. (12):

$${A}_{rs}= \sum_{\forall f{i}^{s}}{w}_{f{i}^{s}}{\text{exp}}\left(-\alpha {t}_{rs}\right)= exp\left(-\alpha {t}_{rs}\right)\sum_{\forall {f}_{i}^{s}}{w}_{{f}_{i}^{s}}.$$
(12)

In which, \({w}_{f{i}^{s}}\) is the attractiveness of \({f}_{i}^{s}\) facility and reflects the service quality of this facility (such as size, service price, etc.) in destination \(s\). The negative exponential function \({\text{exp}}\left(-\alpha {t}_{rs}\right)\) is assumed as the continuity function, and \(\alpha \) is also used as the calibration parameter. Various experimental studies have indicated that the negative exponential function is superior to other functions, such as the inverse power function, in estimating transport flows. The considered calibration parameter is 0.38554,55.

If \({w}_{s}= {\sum }_{\forall f{i}^{s}}{w}_{f{i}^{s}}\) is equivalent to the attractiveness of all facilities in the destination, and considering \({w}_{s}\) in Eq. (12), accessibility \({A}_{rs}\) is described in the form of Eq. (13):

$${A}_{rs}= {w}_{s}exp\left(-\alpha {t}_{rs}\right) .$$
(13)

The sum of \({A}_{rs}\) for all destinations results in the accessibility of region \(r\), denoted by \({A}_{r}\) as Eq. (14):

$${A}_{r}=\sum_{\forall s}{A}_{rs}= \sum_{\forall s}{w}_{s}exp\left(-\alpha {t}_{rs}\right).$$
(14)

Accessibility \({A}_{r}\) refers to the ease (or ability) of people living in location \(r\) to access their desired activities at a specific destination through the road network. It can be an effective measure to evaluate the level of social services provided to people in the area.

If \({O}_{r}\) represents the population of region r, the total system accessibility, denoted by \(SA\), is as Eq. (15):

$$SA= \sum_{\forall r}{O}_{r}{A}_{r}.$$
(15)

This index represents the accessibility provided to the entire population in the gravity area56.

Accessibility index

The amount of accessibility defined in this section is based on the total cost, which includes the travel time and the imposed cost resulting from applying the selective demand management policy, which is obtained to bring the network into equilibrium57. The accessibility index (\({IA}_{ij}\)) for each area like \(j\) is defined in the form of Eq. (16):

$${IA}_{ij}=\frac{\sum_{a}^{n}{\delta }_{aj}{x}_{a}/[{t}_{a}({x}_{a})+{\tau }_{a}]}{n} {\forall }_{ij {\prime}}a\in A{A}_{j {\prime}} ij\in rs$$
(16)

where \(A{A}_{j}\) indicates all the links that end in area \(j\), \({\tau }_{a}\) is the link-based cost on link \(a\), and \({\delta }_{aj}=\left\{\genfrac{}{}{0pt}{}{1}{0}\right\}\). If the path to access area \(j\) includes link \(a\), \({\delta }_{aj}=1\), and otherwise, \({\delta }_{aj}=0\).

In Eq. (16), the accessibility index is practically defined for each area. From this point of view, the accessibility index for the whole network (\({IA}_{T}\)) is defined according to Eq. (17):

$${IA}_{T}=\sum_{J}^{n}{A}_{j},$$
(17)

where \({A}_{j}\) stands for the accessibility of the jth zone.

Based on Eq. (17), it is possible to define Eq. (18) to maximize the amount of accessibility in the network. This objective function is practically at the highest level of the model and maximizes the accessibility index for the entire network:

$${\forall }_{ij}, a\in A, i j \in rs MAX {Z}_{3}= \sum_{j}{A}_{j }.$$
(18)

Applying the created data of the networks in the database to the codes

After writing the appropriate codes, the data prepared based on Hearn and Sioux Falls network is called from the relevant library in the system. The library is the database that is stored in the name of each transportation network in the system, and the necessary data is collected in it.

Implementation of transport network assignment codes in Anaconda software

The coding platform in this research is Anaconda software. In this section, a brief explanation is presented about this software. Anaconda is a widely used data science platform that comes with many tools. To put it more simply, Anaconda is a package full of useful and widely used tools for programming languages, Python, etc., which are mostly used in data science. In fact, Anaconda includes the main Python language, 100 + Python packages (libraries), compilers or editors (such as Pycharm), and Jupiter and Conda, which manages Anaconda's own packages. The purpose of code execution is to implement these codes written in the software and get the appropriate output from these codes.

Changing the constant demand distribution of the network between UE and SO

In order to achieve the optimum state in the assignment, the amount of constant demand is divided between two modes of AVs and non-AVs in different proportions. For this purpose, for AVs, the assignment is performed in SO method, and for non-AVs, this assignment is conducted in the form of UE. Assignment of this amount of demand continues until the optimum state of both types of assignment is realized.

Capacity assignment scenarios

In this study, three scenarios for calculating different capacity modes in the network have been investigated.

First scenario

In this scenario, the network capacity is assumed to be constant, and the assignment is done without changing the assumed network capacity.

Second scenario

In this scenario, the capacity is also changed after changing the percentage of AVs, and then the assignment is conducted.

Third scenario

In this scenario, after changing the percentage of AVs in the entire network at each stage, the percentage assignment of these vehicles in all network links is calculated separately, and the capacity of each link is obtained, and then the assignment is repeated until convergence is achieved.

Process of advancing the issue

Figure 2 shows the study’s progress from a mathematical point of view.

Figure 2
figure 2

Flowchart of work progress.

Step 1: Receiving the input, i.e. network specifications and origin–destination matrix, which determines the percentage of AVs and non-AVs in the network.

Step 2: Calculation of new network capacity (\({C}_{m}\)) using Eq. (19):

$${C}_{m}: \frac{v}{{\eta }^{2}v{T}_{aa}+\eta \left(1-\eta \right)v{T}_{ah}+\left(1-\eta \right)v{T}_{hx}+L},$$
(19)

where \(v\) is the average speed, \(L\) is the length of a vehicle, \(\eta \) is the share of AVs in the total volume, \({T}_{aa}\), \({T}_{ah}\) and \({T}_{hx}\), respectively, are time gaps between AVs, AV and preceding vehicle, and other vehicles. As realistic values for the headways, \({T}_{aa}\) = 0.5 s, \({T}_{ah}\) = 0.9 s, and \({T}_{hx}\) = 1.15 s can be used49.

Step 3: In this step, the first stage of the assignment is done.

Step 4: Finding the shortest path and solving the Dijkstra problem.

Step 5: This step is obtained by dividing 1 by the iteration number. In fact, this step is the only difference between MSA and Frank Wolfe methods.

Step 6: This step is the third stage of the assignment, where \(x\) is updated.

Step 7: In this step, the travel time is updated. The travel time of AVs and non-AVs is calculated separately through UE and SO relations.

Step 8: Convergence check: In this step, if convergence occurs, the final result has been achieved, and the solution to the problem ends. Otherwise, if the third scenario is followed, it is referred to the ninth step, and if the second scenario is used, it is referred to the fourth step.

Step 9: Calculating the new percentage of AVs and non-AVs in each link according to the allocation in Eq. (20) and calculating the new capacity, and returning to the fourth step. This cycle continues until convergence takes place. The first scenario will be obtained if steps two and nine are removed from the cycle.

$${\eta }_{i-j}^{AV}=\frac{{x}_{i-j}^{AV}}{{x}_{i-j}^{AV}+ {x}_{i-j}^{HV}},$$
(20)

where \({\eta }_{i-j}^{AV}\) is the share of AVs in the total volume in link \(i-j\), \({x}_{i-j}^{AV}\) is the flow of AVs in link \(i-j\), \({x}_{i-j}^{HV}\) is the flow of non-AVs in link \(i-j\).

Simultaneous assignment of AVs and regular vehicles

In order to assign AVs, different solutions can be considered. But as it is assumed in this study, AVs will determine their chosen route by the system. In this way, the chosen path of AVs must be in line with SO, while regular vehicles follow UE. Of course, this assumption will be implemented when the system operators consider the benefits for the users of AVs. These benefits, which are awarded in exchange for the mandatory route determination by the system operators for AVs, can be considered when purchasing a vehicle, annual tax, exclusive lanes, or road tolls for this type of vehicle users. In fact, considering these benefits, the fairness between the users of AVs and regular vehicles can be considered. Otherwise, the possibility of choosing AVs will be greatly reduced.

According to the mentioned assumption, a solution is provided for assignment with these features so that these two groups of vehicles can be assigned simultaneously with two separate travel time functions. It should be noted that travel time functions can be more than two states. However, in this study, two states of the travel time function in UE and SO states have been considered, which are actually the derivative of the travel time function in UE state.

The proposed solution is the same as a simple assignment, with the difference that some parts of the assignment algorithm are separated. In the code represented in Eq. (21), this solution is displayed:

(21)

where \({\widehat{x}}_{av}\) and \({\widehat{x}}_{pv}\) are the flow value of autonomous and passenger vehicles (\({x}_{av}\) and \({x}_{pv}\)), respectively, in the network resulting from the all-or-none assignment, G and p are Dijkstra origin and destination, respectively, \({d}_{rs}^{av}\) and \({d}_{rs}^{pv}\) are travel demands for autonomous and passenger vehicles, respectively, \(SPTT\) is the shortest path travel time, \({SPTT}^{av}\) and \({SPTT}^{pv}\) are SPTT for autonomous and passenger vehicles, respectively, \(TSTT\) is total system travel time, and \({TSTT}^{av}\) and \({TSTT}^{pv}\) are TSTT for autonomous and passenger vehicles, respectively.

Convergence value has no unit and no intuitive meaning. According to MSA method to calculate the convergence value, at the beginning of each iteration, the total system travel time can be calculated through Eq. (22):

$$TSTT={\sum }_{(i.j)\in A}{X}_{ij }{t}_{ij({x}_{ij})},$$
(22)

where \({t}_{ij({x}_{ij})}\) is the travel time for link \(i-j\). Also, the shortest path travel time is calculated through Eq. (23):

$$SPTT={\sum }_{(i.j)\in A}{\widehat{X}}_{ij }{t}_{ij\left({x}_{ij}\right).}$$
(23)

It is worth mentioning:

$$SPTT<TSTT.$$
(24)

Results

In this section, the software results and outputs are presented. In this regard, two examples with manual calculations were examined to measure accessibility in Hearn and Sioux Falls networks. It should be noted that these calculations were done for verification purposes. Also, the data of both investigated networks are expressed in the form of tables.

Hearn network

In this section, the nine-node Hearn network was used to solve the example, which was applied in many types of research as a test sample with data similar to the large-scale traffic assignment problem. The topology of the considered network is shown in Fig. 358,59.

Figure 3
figure 3

Hearn network.

As shown in Fig. 3, the network has nine nodes, eighteen links with the same functional structure, and four origin–destination pairs: [1, 1–3, 3, 4], and [2, 4]. As shown at the bottom of the figure, the demand from node 1 to node 3, node 1 to node 4, node 2 to node 3, and node 2 to node 4 is 10, 20, 30, and 40 units, respectively. The general data of Hearn network is presented in Table 1.

Table 1 Hearn network data.

Numerical example on Hearn network

In this section, the numerical solution of the accessibility index in two destinations 3 and 4 of the Hearn network are presented in the two cases of the absence of AVs and 100% presence of AVs according to the accessibility index relations (Eqs. 16 and 17). The calculation of accessibility in the absence and presence of AVs is presented in Supplementary Eqs. (25) and (26), respectively.

Results of the scenarios in Hearn network

In this section, the results of all three scenarios of Hearn network were presented and compared. As can be seen in Figs. 4, 5 and 6, in all three scenarios, the accessibility index increases, but in the second and third scenarios, this increase in the accessibility index is more significant due to the change in the capacity of the entire network.

Figure 4
figure 4

The amount of accessibility index in destination 3 in all three scenarios with a change in the presence percentage of AVs.

Figure 5
figure 5

The amount of accessibility index in destination 4 in all three scenarios with a change in the presence percentage of AVs.

Figure 6
figure 6

The amount of accessibility index of the entire Hearn network in all three scenarios with a change in the presence percentage of AVs.

In all scenarios, according to the fact that there are two destinations 3 and 4 of the Hearn network, it can be seen in Figs. 4 and 5 that the network accessibility index increases with the increase in the presence of AVs in each destination separately. As a result, this accessibility has increased in the total network. As shown in Fig. 6, this increase is steep in the first 20 percent of the presence of AVs and then gradually increases. Also, in the first scenario, the capacity is constant and does not differ from the constant capacity of the network. That is, with the increase in the presence of AVs, there has been no change in the network capacity. It is worth noting that in this network, due to the lack of data, including the population, as well as the small size of the network, only the accessibility index has been investigated, and the gravity-based accessibility has not been examined. On the other hand, in the second scenario, the network capacity changes with different percentages of the presence of AVs. Moreover, in the third scenario, after an assignment stage, the percentage of presence of AVs in all links is calculated, and then the capacity is changed again.

Sioux Falls network

Sioux Falls transportation network is a network located in the state of South Dakota, the United States of America, which includes 24 nodes and 76 links, as indicated in Fig. 7. For the simulation of potential impacts of autonomous vehicles (AVs), we selected the Sioux Falls transportation network. This decision was motivated by several factors. Primarily, we aimed to apply our model to real-world examples to comprehensively understand the implications of AV adoption in actual urban environments. Sioux Falls, a small mid-western US city, offers a unique opportunity to explore AV impacts in settings differing from the typical large metropolitan areas often studied in the literature. Additionally, examining AV effects in smaller cities and rural areas, where transportation options may be limited, is crucial. By selecting Sioux Falls, we aimed to elucidate the potential benefits and challenges of AV deployment in such regions, where transit and alternative transportation modes might be less available.

Figure 7
figure 7

Sioux Falls transportation network.

Moreover, the Sioux Falls transportation network provides several advantages for research purposes. Its small-scale and relatively simple structure, with only 24 nodes and 76 links, facilitate analysis and modeling compared to larger, more complex networks. Furthermore, the extensive utilization of the Sioux Falls network in transportation literature offers abundant data and research for comparison and benchmarking purposes. The network has served various research objectives, including evacuation planning, traffic congestion management, and network design, making it a versatile test case for our study.

In summary, the Sioux Falls transportation network serves as a valuable resource for transportation researchers, enabling the testing and refinement of new models and algorithms in a controlled and well-understood setting.

Tables 2 and 3 present the details of the Sioux Falls network. Due to the lack of data and characteristics of the population in Sioux Falls network, the data has been used from the study of Yan et al., who calculated values for the population and other characteristics based on the demand60. Also, the speed values and the number of lanes are assumed in this research. The general characteristics of Sioux Falls network and the amount of origin–destination demand in this network are presented in Tables 2 and 3, respectively.

Table 2 General characteristics of Sioux Falls network.
Table 3 The amount of origin–destination demand in Sioux Falls network.

Numerical example on Sioux Falls network

The following example has been solved using the data obtained in the absence of AVs in the first scenario in Sioux Falls network. In this regard, the gravity-based accessibility amount of node 1 to all 24 nodes of this network according to Eqs. (13) and (14) is calculated as Supplementary Eq. (27):

Results of the scenarios in Sioux Falls network

In this section, the results of all three scenarios have been presented and compared in Sioux Falls network. In Figs. 8 and 9, the results of accessibility changes have been compared according to the changes in the percentage of presence of AVs in the network, based on three separate scenarios and in two states of gravity accessibility and accessibility index calculations. As can be seen, in the second and third scenarios, more significant increases in accessibility are evident compared to the first scenario.

Figure 8
figure 8

Comparing the results of the accessibility amount of all three scenarios with changes in the presence percentage of AVs using the gravity accessibility relation in Sioux Falls network.

Figure 9
figure 9

Comparing the results of the accessibility index of all three scenarios with changes in the presence percentage of AVs in Sioux Falls network.

As shown in Fig. 8 in the first scenario, the accessibility amount has increased with the increase in the presence of AVs after a slight recession in the range below 20% of the presence of AVs with a relatively constant slope. Also, in Fig. 9, for the first scenario, the same results can be seen by calculating the accessibility index. However, the difference is that there is no noticeable recession in the range below 20%. Moreover, in the second and third scenarios, the results indicating the increase in accessibility are visible in both figures.

In Fig. 10, the comparison of the results of changes in the user equilibrium relation based on the changes in the percentage of presence of AVs in Sioux Falls network in the three scenarios proposed has been performed in the current research. Based on these results, it is evident that the user equilibrium increases in the first scenario, and in the next two scenarios, it decreases. This reduction in the user equilibrium is due to the increase in network capacity and its improvement. Also, in Fig. 11, the results of changes in the system optimum relation are compared based on the changes in the percentage of the presence of AVs in Sioux Falls network in the three proposed scenarios. Based on these results, in all three scenarios, the decrease in the results of system optimum function is evident because, with the presence of AVs, management by the system operators in the network increases, and the network system optimum tends to decrease. In the second and third scenarios, this reduction is more significant.

Figure 10
figure 10

Comparing the results of UE objective functions in the assignment of all three scenarios with changes in the presence percentage of AVs in Sioux Falls network.

Figure 11
figure 11

Comparing the results of SO objective functions in terms of vehicles per minute in all three scenarios with changes in the presence percentage of AVs in Sioux Falls network.

Also, as can be seen in Figs. 10 and 11 for the first scenario, as expected, the user equilibrium is facing an increase, and the system optimum graph has moved towards improvement (decrease). Because with the presence of a higher percentage of AVs, there is more management in the network and, accordingly, more vehicle control and route determination. On the other hand, in the second and third scenarios, due to the increase in network capacity at every stage of the assignment, with the increase in the percentage of the presence of AVs, there is a significant reduction in the results of the user equilibrium relation, in addition to the system optimum.

Conclusion

In this study, an attempt has been made to analyze and investigate the impact of the presence of AVs on the accessibility of transportation networks by modeling in Hearn and Sioux Falls transportation networks as test networks. At first, a constant demand amount was assigned with different percentages of the presence of AVs in the network at the same time as non-AVs in the network. This assignment is coded with Python programming language. After examining the software inputs, it was observed that the results of the two equations of user equilibrium and system optimum had converged at each stage of the assignment, and then the assignment was finished, and from the obtained data, travel time was used to calculate accessibility based on a certain percentage of the presence of AVs. The results of this study showed that:

  • With both states of accessibility calculation and in all scenarios, the accessibility trend is upward with the increase in the number of AVs.

  • In both Hearn and Sioux Falls networks, the increase in accessibility in the second and third scenarios is higher than in the first scenario. This increase is due to the increase in the number of AVs and, as a result, the increase in capacity in the mentioned scenarios (second and third).

  • As can be seen in the results of the first scenario of Sioux Falls network, with the presence of AVs in the network and the consequent increase in the management of the system operators in the network (determining the mandatory route for AVs), improvement in the system optimum function and increasing the user equilibrium is inevitable and evident in the results.

  • Unlike the first scenario, in the second and third scenarios of Sioux Falls network, along with decreasing the system optimum objective function, the reduction of user equilibrium objective function is also observed. This decrease occurs due to the increase in capacity, which is because of the increase in the number of AVs in the network. Both reductions in the mentioned results have improved traffic flow assignment in the entire transportation network.

Moreover, it is suggested that future researchers in this field should also consider the following.

  • Considering that, in reality, the total cost of travel changes with the collection of tolls in the network, it is necessary to examine the variability of demand in future studies.

  • In the current research, the gravity and access index models were used to examine accessibility, so it is suggested to use the space–time method, which is another method of evaluating accessibility.

  • Since various other data can be analyzed in different transportation networks, it is suggested that future research can be conducted based on those networks.

  • The current research is based on the hybrid assignment algorithm. Since other hybrid assignment algorithms can also give different results, it is suggested to use the effects of other algorithms on accessibility and compare the results with the present research.