A Two-Stage Optimization-Based Motion Planner for Safe Urban Driving

Francisco Eiras, Majd Hawasly, Stefano V. Albrecht, Subramanian Ramamoorthy · DOI

Introduction

Motion planning for autonomous vehicles (AVs) in dense urban environments requires navigating complex, non-convex constraints while ensuring safety and passenger comfort. Traditional Nonlinear Programming (NLP) approaches often struggle with local optima—getting "stuck" in unsafe solutions—and inconsistent convergence times, which can lead to dangerous emergency braking. This paper proposes a novel two-stage optimization framework that leverages Mixed-Integer Linear Programming (MILP) to provide a robust initialization for a high-fidelity NLP solver.

The Two-Stage Optimization Pipeline

The core of the proposed framework is a sequential process that transforms the complex planning problem into a manageable two-step task.

The two-stage motion planning pipeline: (a) initial state, (b) MILP-based safe skeleton, (c) NLP refinement, and (d) final trajectory.

Stage 1: Receding Horizon MILP

The first stage solves a simplified, linearized version of the motion planning problem. By utilizing a linear vehicle model and "Big-M" formulations for discrete logic (e.g., deciding whether to pass an obstacle on the left or right), the MILP solver identifies a globally optimal "safe skeleton." This stage ensures the vehicle is positioned within the correct safe subspace, effectively bypassing the local optima issues that plague standalone NLP solvers. To maintain computational efficiency, this stage is solved in a receding horizon fashion.

Stage 2: Initialized NLP

The "rough draft" from the MILP stage is fed into a full, non-convex NLP solver (IPOPT). This stage employs a high-fidelity kinematic bicycle model to ensure the resulting trajectory is physically drivable. The NLP refines the path for maximum smoothness and passenger comfort by minimizing jerk and other comfort-related metrics. The entire process is conducted in a reference-path-based coordinate frame to simplify road boundary calculations.

Experimental Evaluation

The framework was rigorously tested using a procedurally generated dataset of 4,000 urban driving scenarios, ranging from static overtaking to complex negotiations with oncoming traffic.

Visualization of a complex urban driving scenario involving multiple vehicles and lane changes in the simulation environment.

Key Results

The two-stage approach significantly outperformed a state-of-the-art Nonlinear Model Predictive Control (NMPC) baseline across several key metrics:

  • Reliability: The proposed method achieved a 97.76% success rate, a nearly 10% improvement over the NMPC baseline (87.79%).
  • Efficiency: Vehicles using the two-stage planner covered more distance (53.18m vs. 46.24m over 8 seconds), indicating higher confidence in executing maneuvers.
  • Comfort: The average jerk was reduced from 0.47 $m/s^3$ to 0.43 $m/s^3$, resulting in a smoother ride.

Discussion and Future Work

The primary insight of this research is that NLP failures in motion planning are often due to poor initialization rather than the solver's inherent limitations. By using MILP as a safety-aware guide, the system consistently finds high-quality solutions in complex topologies.

However, the MILP stage introduces computational overhead, resulting in a total runtime of approximately 0.93s compared to 0.56s for the baseline. While acceptable for high-fidelity simulation, future research will focus on accelerating the MILP solver through techniques like "learning to branch" and addressing the minor model mismatch between the linear MILP and the kinematic NLP stages to further enhance real-time performance.

Summary updated

BibTeX
@article{eiras2022two,
  author = {Francisco Eiras and Majd Hawasly and Stefano V. Albrecht and Subramanian Ramamoorthy},
  title = {{A Two-Stage Optimization-Based Motion Planner for Safe Urban Driving}},
  journal = {IEEE Trans. Robotics},
  year = {2022},
  doi = {10.1109/tro.2021.3088009},
}
Figure