> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nozlerouting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Optimization algorithm and cost-vs-time tradeoff

> How the Nozle optimizer searches for the cost-optimal fueling sequence using dynamic programming, tank constraints, and a tunable time-value knob.

A dynamic-programming search for the stop
sequence that minimizes `(fuel_cost + λ * detour_time)` while
respecting tank capacity and a destination fuel reserve. The
knob `time_value_dollars_per_minute` controls λ — higher values
make the optimizer more time-sensitive (skip cheap-but-distant
stations), lower values prioritize cost.
