Loading...
Loading...
Compare original and translation side by side
carto-create-workflowcarto-create-workflowSource Data (points) -> Spatial Indexing -> Aggregate per Cell -> Territory Balancing -> SaveSource Data (points) -> Spatial Indexing -> Aggregate per Cell -> Territory Balancing -> Savenative.gettablebynamenative.gettablebynamenative.h3frompointnative.quadbinfromgeopointh3native.h3frompointnative.quadbinfromgeopointh3native.groupbyh3geom,count,revenue,sum,population,avgnative.groupbyh3geom,count,revenue,sum,population,avgnative.territorybalancing| Input | Description | Example |
|---|---|---|
| Table input (from previous step) | |
| H3 or Quadbin column | |
| Numeric column to balance across territories | |
| Optional numeric columns for within-territory similarity | |
| Number of territories to create | |
| Include all input columns in output | |
native.territorybalancing| 输入 | 描述 | 示例 |
|---|---|---|
| 输入表格(来自上一步) | |
| H3或Quadbin列 | |
| 用于在各片区间均衡的数值列 | |
| 片区内相似性的可选数值列 | |
| 要创建的片区数量 | |
| 在输出中包含所有输入列 | |
native.saveastablecarto workflows createnative.saveastablecarto workflows createDemand Data (grid/points) -> Candidate Locations -> Location Allocation -> SaveDemand Data (grid/points) -> Candidate Locations -> Location Allocation -> Savenative.gettablebynamenative.gettablebynamenative.gettablebynamenative.wheresimplifiednative.limitnative.gettablebynamenative.wheresimplifiednative.limitnative.locallocallocation_maximizecoverage| Input | Description | Example |
|---|---|---|
| Table with demand values | |
| Spatial index column in demand table | |
| Numeric demand variable | |
| Table with candidate locations | |
| Spatial index column in candidates table | |
| Number of facilities to open | |
| Maximum service distance (meters for geography) | |
native.locallocallocation_maximizecoverage| 输入 | 描述 | 示例 |
|---|---|---|
| 包含需求值的表格 | |
| 需求表格中的空间索引列 | |
| 数值需求变量 | |
| 包含候选位置的表格 | |
| 候选表格中的空间索引列 | |
| 要开设的设施数量 | |
| 最大服务距离(地理类型单位为米) | |
native.locallocallocation_minimizetotalcost| Input | Description | Example |
|---|---|---|
| Table with demand values | |
| Spatial index column in demand table | |
| Numeric demand variable | |
| Table with candidate locations | |
| Spatial index column in candidates table | |
| Number of facilities to open | |
native.locallocallocation_minimizetotalcost| 输入 | 描述 | 示例 |
|---|---|---|
| 包含需求值的表格 | |
| 需求表格中的空间索引列 | |
| 数值需求变量 | |
| 包含候选位置的表格 | |
| 候选表格中的空间索引列 | |
| 要开设的设施数量 | |
native.saveastablecarto workflows createnative.saveastablecarto workflows createh3geom_countpopulationsentiment_avgH3GEOM_COUNTPOPULATIONSENTIMENT_AVGcarto-create-workflow/references/providers/<provider>.mdnative.territorybalancingnative.locallocallocation_maximizecoveragenative.locallocallocation_minimizetotalcosth3geom_countpopulationsentiment_avgH3GEOM_COUNTPOPULATIONSENTIMENT_AVGcarto-create-workflow/references/providers/<provider>.mdnative.territorybalancingnative.locallocallocation_maximizecoveragenative.locallocallocation_minimizetotalcost| Variant | How |
|---|---|
| Sales territory balancing | Points -> H3 -> aggregate revenue per cell -> territory balancing with revenue as demand |
| Service zone design | Grid with population -> territory balancing to create equal-population zones |
| Warehouse/depot placement | Population grid as demand + existing warehouses as candidates -> minimize total cost |
| Emergency response hubs | Population grid as demand + candidate sites -> maximize coverage with a response-time radius |
| Retail network expansion | Customer density grid as demand + potential store locations -> maximize coverage |
| Combined territory + allocation | First run location allocation to pick hub locations, then run territory balancing to assign areas to each hub |
| 变体 | 实现方式 |
|---|---|
| 销售区域平衡 | 点数据 -> H3 -> 按单元聚合收入 -> 以收入为需求运行区域平衡 |
| 服务区域设计 | 带人口数据的网格 -> 运行区域平衡创建人口均衡的区域 |
| 仓库/配送中心选址 | 人口网格作为需求 + 现有仓库作为候选 -> 最小化总成本 |
| 应急响应枢纽 | 人口网格作为需求 + 候选站点 -> 按响应时间半径最大化覆盖范围 |
| 零售网络扩张 | 客户密度网格作为需求 + 潜在门店位置 -> 最大化覆盖范围 |
| 区域平衡+位置分配结合 | 先运行位置分配选择枢纽位置,再运行区域平衡将区域分配给每个枢纽 |