An end-to-end data-driven optimisation framework for constrained trajectories

Florent Dewez, Benjamin Guedj, Arthur Talpaert, Vincent VandewallearXiv 2020

Introduction

In robotics, aerospace, and autonomous systems, the challenge of trajectory optimization—finding the most efficient path from an initial state to a destination—is traditionally addressed through the lens of Optimal Control. This classical approach relies heavily on the existence of a precise mathematical model, typically a system of differential equations representing the physics of the vehicle and its environment. However, in many real-world scenarios, these dynamics are either too complex to model accurately, subject to significant noise, or entirely unknown, existing as a "black box."

This paper introduces a novel, data-driven framework that bypasses the need for explicit physical modeling. By leveraging historical trajectory data, the proposed method—implemented in the open-source Python library PyRotor—generates optimized paths that are both high-performing and physically feasible. The core innovation lies in using statistical properties of past data to implicitly enforce the underlying physical constraints of the system.

Methodology

The framework shifts the optimization problem from the domain of differential calculus to functional analysis and Bayesian statistics. The process is divided into three primary components: functional decomposition, a Bayesian Maximum A Posteriori (MAP) formulation, and the use of Mahalanobis distance as a proxy for physical constraints.

Functional Decomposition

To handle trajectories computationally, the authors treat them as functions within a Hilbert space. Rather than optimizing an infinite series of points, the trajectory is decomposed into a finite set of basis functions—specifically Legendre polynomials. This transformation reduces a complex, continuous path into a finite vector of coefficients, significantly lowering the dimensionality of the optimization problem.

The Bayesian MAP Approach

The optimization is framed as a Maximum A Posteriori (MAP) estimation. The objective function combines two primary terms:

  1. The Prior: A distribution that favors trajectories with lower operational costs (e.g., reduced fuel consumption).
  2. The Likelihood: A term that measures the proximity of the proposed trajectory to a set of historical "reference" trajectories.

Covariance as a Proxy for Physics

The "likelihood" term is calculated using the Mahalanobis distance relative to the historical data. By estimating the covariance matrix of past successful trajectories, the framework identifies which variations in the path are "normal" and which are "unrealistic." Because historical data is inherently constrained by the laws of physics (e.g., an aircraft's inability to make instantaneous 90-degree turns), the covariance matrix implicitly captures these physical laws. The optimizer is thus penalized for moving into regions of the state space that the data suggests are physically impossible or operationally unsafe.

Implementation: The PyRotor Library

The authors developed PyRotor, an open-source Python library designed to implement this end-to-end workflow. PyRotor handles the preprocessing of raw data, the functional decomposition into Legendre coefficients, and the final optimization using standard solvers such as SciPy and CVXOPT. This makes the framework accessible for practical industrial applications beyond theoretical research.

Experimental Evaluation

The framework was validated across two distinct datasets to test its robustness and efficiency:

1. Aeronautics Application

The primary test case involved a dataset of 2,162 recorded short and medium-haul flights provided by a commercial airline. The data included critical parameters such as altitude, Mach number, engine speed, and fuel flow. The goal was to optimize flight paths for fuel efficiency while respecting operational constraints like the Maximum Operational Mach (MMO).

2. Synthetic Force Field (Sailing Boat)

To test the framework's adaptability to work-maximization problems, the authors used a synthetic dataset of 122 trajectories simulating a point moving through a force field. This scenario is analogous to a sailing boat navigating wind currents to maximize energy extraction or minimize travel time.

Key Results

  • Significant Fuel Savings: In the aeronautics test case, the framework achieved a mean fuel saving of 16.54% compared to the reference flights. Crucially, these savings were achieved while the generated trajectories remained strictly within the operational bounds observed in the historical data.
  • Computational Efficiency: The entire pipeline—from data preprocessing to the final solution—took an average of 3.76 seconds on a standard laptop. This performance suggests the framework is suitable for rapid pre-flight planning or even near-real-time adjustments.
  • Trade-off Flexibility: The "Sailing Boat" experiment demonstrated that by adjusting a single hyperparameter ($\alpha$), users can easily navigate the trade-off between the shortest path and the path that most effectively exploits environmental forces.

Discussion and Limitations

While the framework offers a powerful alternative to traditional optimal control, the authors identify several areas for future development:

  • Constraint Complexity: The current implementation of PyRotor is optimized for quadratic cost functions. While the underlying theory is broader, non-quadratic costs may require more sophisticated non-convex solvers.
  • Gaussian Assumptions: The MAP approach assumes a Gaussian distribution of noise around the optimal path. This may be insufficient for multi-modal data where different, equally valid operational strategies exist (e.g., two different common routes for the same flight path).
  • Future Directions: Potential improvements include the use of Markov Chain Monte Carlo (MCMC) sampling for better posterior exploration and the incorporation of clustering techniques to handle multi-modal reference data.

Conclusion

This research demonstrates that a "dynamics-free" approach to trajectory optimization is not only possible but highly effective. By replacing explicit physical equations with statistical constraints derived from historical data, the framework provides a robust, efficient, and adaptable solution for complex real-world systems where traditional modeling falls short.

Summary updated

BibTeX
@misc{dewez2020end,
  author = {Florent Dewez and Benjamin Guedj and Arthur Talpaert and Vincent Vandewalle},
  title = {{An end-to-end data-driven optimisation framework for constrained trajectories}},
  year = {2020},
  eprint = {2011.11820},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.11820},
}
Figure