Following problem:
An engine (for instance a car) starts its journey on a straight road. Its consumption is directly proportional to the distance (for instance 480 km uses one unit of fuel and thus 48km uses a tenth unit of fuel). This engine can transport at most one unit of fuel.
At the start point is a supply of n0 fuel units. At different points on the route, are fuel depots (for instance n1 @ d1, n2 @ d2 etc.) and the driver can unload fuel anywhere on the route. For instance, with the values 480 km for one unit, the driver could drive for 160km create a depot with 1/3 units of fuel and drive back to the starting point to refuel his engine.
I'm looking for an algorithm (or some ideas to find one) to find the maximum distance that can be achieved depending on the starting fuel and the depots on the route.