Hourly cost (workPenalty)

This constraint allows you to indicate the cost of an hour of work undertaken by the resource. The Hourly cost AND the Cost per km must not be null simultaneously.

Format: number

Example:

For a resource for whom the constraints are the following:

Hourly cost = 20
Work time = 08:00 et 18:00
Number = 01:00
Overcost = 5

The route TourSolver issues stipulates that the resource finishes at 04:00pm, so there are 8 working hours (4pm to 8pm), the total cost of the work amounts to 160 (20*8).