Freight.ftt_fr_main module#
ftt_fr_main.py#
Freight transport FTT module.
This is the main file for FTT: Freight, which models technological diffusion of freight vehicle types due to simulated consumer decision making. Consumers compare the levelised cost of freight, which leads to changes in the market shares of different technologies.
The outputs of this module include market shares, fuel use, and emissions.
Local library imports:
FTT: Freight functions: - get_lcof
Levelised cost calculation
- Functions included:
- solve
Main solution function for the module
- get_lcof
Calculate levelised cost of freight
- Freight.ftt_fr_main.solve(data, time_lag, titles, histend, year, domain)#
Main solution function for the module.
This function simulates investor decision making in the freight sector. Levelised costs (from the get_lcof function) are taken and market shares for each vehicle type are simulated to ensure demand is met.
- Parameters:
data (dictionary of NumPy arrays) – Model variables for given year of solution
time_lag (type) – Model variables from the previous year
titles (dictionary of lists) – Dictionary containing all title classification
histend (dict of integers) – Final year of histrorical data by variable
year (int) – Current year
- Returns:
data – Model variables for the given year of solution
- Return type:
dictionary of NumPy arrays