assign_load_types
Assign categories and profiles to every load in a pandapower grid via mapping, grid metadata, distribution, or defaults; returns an assignment ID and per-category summary.
Instructions
Assign a category (residential, commercial, industrial, agricultural, residential_pv, residential_pv_battery, mixed) and profile to every load. Precedence: mapping > grid metadata > distribution > default_category. Returns assignment_id and a per-category summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| basis | No | Shares refer to number of loads or to power | count |
| grid_id | Yes | ||
| mapping | No | Category per key, e.g. {'5': 'commercial'}; keys per mapping_key | |
| strategy | No | size: largest loads -> industrial, mixed, commercial, agricultural, residential; random: seeded | size |
| mapping_key | No | load_index | |
| distribution | No | Percent per category for the remaining loads, e.g. {'residential': 60, 'commercial': 40} | |
| include_loads | No | Also return the per-load table (large) | |
| load_profiles | No | Profile per load/bus (keys per mapping_key), e.g. {'7': 'G5'} | |
| default_category | No | Category for loads still unassigned | |
| category_profiles | No | Profile per category: BDEW id, custom name or mix, e.g. {'mixed': '0.6*H25+0.4*G25'} | |
| use_grid_metadata | No | Use the grid's own load types (CIGRE) | |
| profile_generation | No | 2025 |