GraphHopper.com | Forum | GitHub | Maps | Blog

Hard Constraints Breaking each other?


#1

Hi, I’ve implemented MaxDrivingTime (HardActivity) constraint with few others (DisallowedVeh, MaxAct, MaxJobs), and tested them. They worked fine, by tweeking the input I saw the results changing to meet the constraints.
Then I added MaxDistance (HardActivity) constraint and it broke MaxDrivingTime, worse yet, result couldn’t meet even itself. Input had unreasonable limit - max_distance 10 meters, which always failed to fulfill the constraint, yet the vehicle was still deployed and even broke MaxDrivingTime.

Is there a possibility that constraints could break each other?
If so, can I avoid it?