|
Autopysta
|
Martinez and Jin (2020) car-following model with constrained timestep. More...
#include <martinez_jin_2020.h>
Public Member Functions | |
| martinez_jin_2020 () | |
| Default constructor for the martinez_jin_2020 model. | |
| martinez_jin_2020 (p_martinez_jin_2020 *p) | |
| Constructor with custom parameter values for the Martinez-Jin model. | |
Public Member Functions inherited from newell_constrained_timestep | |
| newell_constrained_timestep () | |
| Default constructor for the newell_constrained_timestep model. | |
| newell_constrained_timestep (p_newell *p) | |
| Constructor with custom parameters for Newell's model. | |
| void | validate_parameters (params *p=nullptr) override |
| Validates the model parameters, ensuring the timestep is constrained to 1. | |
| point * | new_point (generalized_trajectory *leader, trajectory *follower, params *p=nullptr) override |
| Computes the next point in the follower's trajectory. | |
Public Member Functions inherited from newell | |
| newell () | |
| Default constructor for Newell's model. | |
| newell (p_newell *p) | |
| Constructor for Newell's model with custom parameters. | |
| double | equil_spcg (double vl, double vf, params *p=nullptr) override |
| Computes the equilibrium spacing between the leader and follower vehicles. | |
| double | wave_speed (point *leader, point *follower, params *p) override |
| Returns the wave speed for Newell's model. | |
| double | free_flow_speed (params *p=nullptr) override |
| Returns the free-flow speed for Newell's model. | |
Public Member Functions inherited from model | |
Additional Inherited Members | |
Public Attributes inherited from model | |
| params * | pars |
| Parameters for the car-following model. | |
Protected Member Functions inherited from newell | |
| void | initialize_parameters (p_newell *p) |
| Initializes the model parameters for Newell's model. | |
| double | accel (point *leader, point *follower, params *p) override |
| Computes the follower vehicle's acceleration based on the leader's position. | |
| point * | new_point (point *leader, point *follower, params *p=nullptr) override |
| Computes the next point in the follower's trajectory. | |
Protected Member Functions inherited from model | |
Protected Attributes inherited from newell | |
| float | tau |
| Time gap (τ) between the trajectories of the follower and the leader. | |
| float | sj |
| Jam spacing (δ), the minimum distance between vehicles in a jam. | |
Martinez and Jin (2020) car-following model with constrained timestep.
This class implements a stochastic car-following model based on the work of Martinez and Jin (2020), which extends Newell’s model by incorporating a wave travel time parameter (tau) and a stochastic jam density (kj). The model accounts for driver heterogeneity, allowing for the inclusion of both autonomous and human-driven vehicles with different dynamic behaviors.
| martinez_jin_2020::martinez_jin_2020 | ( | ) |
Default constructor for the martinez_jin_2020 model.
Initializes the model using default parameters from the p_martinez_jin_2020 class.
| martinez_jin_2020::martinez_jin_2020 | ( | p_martinez_jin_2020 * | p | ) |
Constructor with custom parameter values for the Martinez-Jin model.
This constructor allows initializing the model with custom values for the wave travel time (tau) and stochastic jam density (kj).
| p | Pointer to the p_martinez_jin_2020 parameter class containing the model parameters. |