Answer
The CompactnessLevel is a parameter used in the planClusters method of the PTV xCluster API. It determines how geographically compact the generated clusters should be.
Parameter Details:
-
Type:
Integer -
Range:
0(less compact) to100(most compact) -
Default:
100
How it works:
- A high value (e.g.,
100) leads to tighter, more geographically concentrated clusters. - A low value (e.g.,
0) creates more spatially flexible clusters, allowing the algorithm to prioritize other constraints (like balancing the number of activities per cluster).
Use this parameter to tailor the clustering behavior according to your business needs.
Additions hints
Adjust to your use case: If geographic proximity is essential (e.g., for delivery or service zones), use a higher compactness level.
Experiment with values: Try different levels (e.g., 25, 50, 75, 100) to find the right balance for your data and goals.
Combine with other settings: Results are also affected by constraints such as the number of clusters, maximum activities, or capacity limits.
Community examples: See the PTV xServer Developer Forum for discussions and shared scenarios from other developers.
Related articles
PTV xCluster API Documentation
Use Case – Planning a Cluster with PTV xCluster
PTV xServer Blog – Optimizing Cluster Planning
xServer Developer Forum – Cluster Settings Discussion
- ...