plan_traction
Assign fleet locomotives to route runs to minimize changes, flagging runs as uncovered when no compatible locomotive exists.
Instructions
Assign locomotives from a fleet to a route's runs, greedily minimising changes.
Call find_route first and pass its route as `route`, or pass `section_ids`, same as
check_train_compatibility. Give at least one locomotive via `fleet_ids` (ids from
data/locomotives.yaml) or `custom_locomotives`. A run with no locomotive able to cover
it (unknown/non-electrified energy system, or unmatched signalling) is uncovered, not
an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uncovered | Yes | ||
| assignments | Yes | ||
| attribution | No | Data: European Union Agency for Railways, Register of Infrastructure (RINF), CC BY 4.0 | |
| change_points | Yes |