ruspy.model_code.demand_function.get_demand

ruspy.model_code.demand_function.get_demand(init_dict, demand_dict, demand_params, max_num_iterations=2000)[source]

Calculates the implied demand for a range of replacement costs for a certain number of buses over a certain time period.

Parameters
init_dictpython:dict

see Estimation initialization dictionary.

demand_dictpython:dict

see Demand Dictionary.

demand_paramsnumpy.ndarray

see Demand Parameters

Returns
demand_resultspd.DataFrame

see Demand Results