How to allow segment violations during routing?
Posted: Wed Apr 27, 2016 2:54 pm
Hello outer world,
these days a customer asked me whether the routing is able to reflect the following constraints:
Well, the answer is: take a look at the following RoutingOptions:
But they will be used if there is no other alternative to reach waypoints.
Best regards,
Bernd
these days a customer asked me whether the routing is able to reflect the following constraints:
- Basically we need to consider additional TruckAttributes during the routings, e.g. MAX_WEIGHT, MAX_HEIGHT, ...
- Some of our waypoints are located in areas where we are normally not allowed to enter due to these attributes. Applying the TruckAttributes causes errors.
- Due to some special documents we are allowed to enter those areas.
- Disabling TruckAttributes in general isn't an option because we only want to "disable" hem near the start / destinations
Well, the answer is: take a look at the following RoutingOptions:
- ALLOW_SEGMENT_VIOLATIONS: This parameter controls if routing through blocking segments is possible. If the value is "true", for every violated blocked segment violation a cost is added to the base cost value. The cost value is defined by the RoutingParameter COST_OF_SEGMENT_VIOLATIONS.
Legal values are "true" and "false". Default value is "false". RouteInfo will return a new attribute hasViolations if this parameter is true. - COST_OF_SEGMENT_VIOLATIONS: The cost for a segment blocking violation. This value is for all types of violations. Only relevant if the RoutingParameter ALLOW_SEGMENT_VIOLATIONS is set to "true".
Legal values are between 0 and 1000000. The default value is 50000.
But they will be used if there is no other alternative to reach waypoints.
Best regards,
Bernd