Set Balance Variables (Territory Design)

获得 Business Analyst 许可后可用。

摘要

Configures variables to be used in the balancing process.

使用情况

  • The variables will be used according to relative weight, which is calculated based on a specified preference for each variable.

  • Preference refers to the relative weight of each variable.

  • Preferences from all of the variables must total 100 percent.

  • Use the Add Level Variable tool to add variables to be balanced.

  • Set the preference to zero if you do not want to disable the variable to be used for balancing.

参数

标注说明数据类型
Input Territory Solution

The name of the input territory solution.

Group Layer; Feature Dataset; String
Level

The name of the level to which the calculated field will be added.

String
Balance Variables

The variables that will be used in the balance process.

  • Variable—The defined input.
  • Weight—The amount of influence a given variable has in the analysis.

Value Table

派生输出

标注说明数据类型
Updated Territory Solution

The updated territory solution.

Group Layer

arcpy.td.SetBalanceVariables(in_territory_solution, level, variables)
名称说明数据类型
in_territory_solution

The name of the input territory solution.

Group Layer; Feature Dataset; String
level

The name of the level to which the calculated field will be added.

String
variables
[[variable, weight],...]

The variables that will be used in the balance process.

  • variable—The defined input.
  • weight—The amount of influence a given variable has in the analysis.

Value Table

派生输出

名称说明数据类型
out_territory_solution

The updated territory solution.

Group Layer

代码示例

SetBalanceVariables example (Python window)

The following Python window script demonstrates how to use the SetBalanceVariables function.

import arcpy
arcpy.td.SetBalanceVariables("TerritorySolution", "Territories[1]", "HouseHold 50;TotalPop 50")

环境

此工具不使用任何地理处理环境。

许可信息

  • Basic: 需要 Business Analyst
  • Standard: 需要 Business Analyst
  • Advanced: 需要 Business Analyst

相关主题