cost
Distance from where the vehicle stands to the task's pickup, along the guide path, or Double.POSITIVE_INFINITY when it cannot get there.
Infinity rather than null, so that a policy comparing costs naturally never prefers an unreachable pairing; and isFeasible is defined in terms of it, so the two cannot disagree about what is available.