Modal Shares and Vehicle Kilometres Travelled with Shared Automated Vehicles: MATLAB Codes
Supporting software for the paper 'Are Shared Automated Vehicles Good for Public- or Private-Transport-Oriented Cities (or Neither)?'

Authors: 
A. Fielbaum
School of Civil Engineering, University of Sydney
B. Pudane
Transport and Logistics Group, Department of Engineering Systems and Services, Faculty of Technology, Policy and Management, TU Delft
Email: b.pudane@tudelft.nl

This folder contains the MATLAB codes used to generate graphs in the paper, as well as the resulting graphs. 

The graphs illustrate how modal shares and total vehicle kilometres in a city change after the introduction of shared automated vehicles (SAVs) and how that change depends on the following parameters:
* The sharing preferences (or: the importance of private travel) in the population. These preferences determine the private- or public-transport orientation of a city (see paper for explanation);
* The SAV capacity;
* The extent to which on-board experience in a SAV resembles that of a private trip. This extent is contained in a parameter called 'relative private travel benefit' taking values between 0 (no private travel benefit in an SAV) and 1 (trip in an SAV is comparable to a trip in a private car).

Codes (.m files):
DIAGRAMS: this is the file used to generate the figures. It contains instructions for which portions of Solver.m should be run to generate each figure.
Solver: this file creates the modal share and vehicle kilometre vectors depending on parameter settings.
Gamma_A, Gamma_PT, Gamma_SAV, ModalShare1, ModalShare2, VKT_A, VKT_PT, VKT_SAV, VKT_1, VKT_2: these are function files necessary to run Solver.m.
CheckThreeConditions: this function (called by Solver.m) checks that the three conditions (see section 3.2 in the paper) are fulfilled. If that is not the case, then Solver.m returns a corresponding error message.

Figures (in .emf and .m formats)
figure_6_left: changes in the modal shares when SAVs are introduced, for public- and private-transport oriented cities. 
figure_6_right: changes in the vehicle kilometres travelled when SAVs are introduced, for public- and private-transport oriented cities. 
figure_8_left: changes in the modal shares when SAVs are introduced, as a function of their capacity.
figure_8_right: changes in the vehicle kilometres travelled when SAVs are introduced, as a function of their capacity.
figure_9_left: changes in the vehicle kilometres travelled when SAVs are introduced, given different functional forms of relative private travel benefit in an SAV 
figure_9_right: the three studied functional forms of the relative private travel benefit in an SAV.

Code was created in MATLAB R2023a. All variables and computation steps are explained in the commentary inside the code and/or in the paper.
