Racing lines are constrained optimization problems

A racing line is not the shortest path around a track.

It is a constrained optimization problem involving curvature, speed, tire grip, braking, acceleration, vehicle dynamics, and driver control. A line that looks geometrically efficient can be slower if it violates the vehicle’s usable envelope.

The path must be drivable, not merely elegant.

Related: