simworld.traffic.ad_algorithm package

Submodules

simworld.traffic.ad_algorithm.pid_controller module

PID controller implementation for traffic simulation.

This module provides a PID controller class that implements proportional, integral, and derivative control to adjust vehicle behavior based on error signals.

class simworld.traffic.ad_algorithm.pid_controller.PIDController(k_p: float, k_i: float, k_d: float)

Bases: object

PID controller implementation for traffic simulation.

This class implements a PID controller that adjusts vehicle behavior based on error signals. It provides methods to update the controller state and compute the control output.

reset()

Reset the PID controller state.

This method resets the proportional, integral, and derivative errors to zero.

update(error: float, dt: float)

Update the PID controller state.

This method updates the proportional, integral, and derivative errors based on the current error and time step.

Args:

error: The current error signal. dt: The time step for the update.

Returns:

The computed control output.

Module contents

Advanced traffic algorithm package.

This package provides advanced algorithms for traffic simulation and management. It includes sophisticated traffic flow models, optimization techniques, and decision-making algorithms for traffic control.