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 should 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.

Синтаксис

arcpy.td.SetBalanceVariables(in_territory_solution, level, variables)
ParameterОбъяснениеТип данных
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],...]

Specifies 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

Производные выходные данные

NameОбъяснениеТип данных
out_territory_solution

The updated territory solution.

Group Layer

Пример кода

SetBalanceVariables example (Python window)

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

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

Environments

Этот инструмент не использует параметры среды геообработки

Информация о лицензиях

  • Basic: Требуется Business Analyst
  • Standard: Требуется Business Analyst
  • Advanced: Требуется Business Analyst

Связанные разделы