Optimization: Task-Based Loading Incompatibilities

We’ve introduced a new feature to the Route Optimization OptiFlow API: Task Loading Incompatibility Constraints. This enhancement builds on the existing Order Loading Incompatibility Constraints, allowing restrictions to be applied specifically to either pickup or delivery tasks — rather than the entire order.

What’s New?

Previously, if an order was incompatible with certain labels, the system would prevent both its pickup and delivery while those labels were present in the vehicle. Now, you can apply this logic more precisely:

  • Restrict only pickup tasks

  • Restrict only delivery tasks

This enables more detailed control over how constraints affect the optimization process, allowing better alignment with real-world requirements.

Example: Cross-Border Transport

Imagine your depot is in Germany, and your vehicles serve customers in both Germany and Belgium. Some goods picked up in Germany are not allowed to be present in the vehicle when crossing into Belgium. However, you do want to allow their pickup in the morning — even when Belgian deliveries are also scheduled.

With task-based loading incompatibility constraints, you can define that Belgian deliveries must not be executed while German goods (labeled as illegal in Belgium) are still on board. The optimizer will then ensure that:

  • All pickups (German and Belgian) can happen at the depot

  • Deliveries in Belgium are only scheduled after the incompatible German goods have been unloaded

Benefits

  • More precise modeling of regulatory and compliance scenarios

  • Supports international and multi-region logistics

  • Improves safety and feasibility of optimized transport plans

The new constraint type is available in the API and ready to be configured.

For technical details, visit developer.myptv.com.

By Stephan Ruppert

Principal Product Manager for Developer Components at PTV Logistics.