Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Modeling Connected and Automated Vehicles (CAVs)

This notebook demonstrates how FASTSim can model longitudinal CAV behaviors by modifying the drive-cycle trace before running energy simulation.

In FASTSim, CAV behavior in this context is represented through maneuver logic that adjusts vehicle speed trajectories, including:

  • eco-cruise with IDM-style speed regulation,

  • predictive coasting with configurable braking and look-ahead settings,

  • combined cruise + coast operation.

This demo evaluates four scenarios on the same starting cycle and vehicle:

  1. Baseline (no CAV maneuvering).

  2. Eco-cruise (IDM).

  3. Advanced coasting.

  4. Eco-cruise + coasting together.

The goal is to compare how these controls reshape speed and fuel use, and to inspect which cycle segments drive the differences.

Modeling Approach

All scenarios start from the same vehicle and base cycle. The only differences are maneuver controls applied through Maneuver settings.

FASTSim provides these longitudinal-control levers for this demo:

  • IDM parameters (idm_*) to regulate target-following behavior and smooth speed response,

  • coasting parameters (coast_*) to trigger earlier/predictive deceleration behavior,

  • combined use of IDM and coasting in a single maneuver pipeline.

After maneuvers are applied, each modified cycle is simulated with SimDrive and compared on fuel and speed outcomes.

Scenario Setup

Load one vehicle and one base cycle, then create an extended cycle so maneuver effects are easier to observe over longer segments.

Run Four CAV Scenarios

The helper below applies maneuver settings and runs FASTSim for each scenario: baseline, eco-cruise only, coasting only, and combined eco-cruise + coasting.

Fuel Economy Comparison

This table compares each scenario’s distance-normalized fuel use. Baseline is included to make relative gains easy to read.

Loading...

Segment-Level Comparison

The figure below combines fuel power and speed traces in one shared-time layout so you can inspect where each strategy diverges.

How to read it:

  • Top panel: fuel power for all four scenarios.

  • Bottom panel: target speed and achieved speeds.

  • Green shaded windows: segments where the combined Cruise + Coast maneuver reports coasting active.

Use the range slider to zoom into any event and compare strategy behavior at that segment.

Loading...