Skip to content

Commit f2b8cdb

Browse files
authored
Merge pull request #6 from fleetbase/feature/orchestrator-vehicle-packing-reference
Document orchestrator vehicle packing options
2 parents 78f533c + 75265f3 commit f2b8cdb

4 files changed

Lines changed: 16 additions & 6 deletions

File tree

‎postman/collections/Fleetbase API/Orchestrator/.resources/Run Orchestrator.resources/examples/VROOM Capacity Only Allocation.example.yaml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ request:
1616
"options": {
1717
"engine": "vroom",
1818
"allocation_strategy": "capacity_only",
19+
"vehicle_packing": "minimize_vehicles",
20+
"vehicle_fixed_cost": 100000,
1921
"respect_capacity": true,
2022
"respect_skills": true,
21-
"balance_workload": true
23+
"balance_workload": false
2224
}
2325
}
2426
response:
@@ -42,9 +44,9 @@ response:
4244
},
4345
{
4446
"order_id": "order_cold_02",
45-
"vehicle_id": "vehicle_cold_van_01",
47+
"vehicle_id": "vehicle_capacity_truck_01",
4648
"driver_id": null,
47-
"sequence": 1,
49+
"sequence": 2,
4850
"arrival": 0,
4951
"duration": 0,
5052
"distance": 0
@@ -54,7 +56,9 @@ response:
5456
"summary": {
5557
"engine": "vroom",
5658
"allocation_strategy": "capacity_only",
57-
"routes": 2,
59+
"vehicle_packing": "minimize_vehicles",
60+
"vehicle_fixed_cost": 100000,
61+
"routes": 1,
5862
"unassigned": 1
5963
}
6064
}

‎postman/collections/Fleetbase API/Orchestrator/.resources/definition.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ description: |-
44
55
`POST /orchestrator/run` supports route-aware VROOM allocation, VROOM capacity-only allocation, native Fleetbase capacity-only allocation, driver assignment, route optimization, and multi-phase prior-assignment flows.
66
7-
Capacity-only allocation is for clients who need to answer which vehicles can carry selected orders by weight, volume, pallet count, parcel count, skills, and task limits without relying on vehicle GPS positions.
7+
Capacity-only allocation is for clients who need to answer which vehicles can carry selected orders by weight, volume, pallet count, parcel count, skills, and task limits without relying on vehicle GPS positions. VROOM capacity-only allocation supports `vehicle_packing` to prefer fewer, fuller vehicles.
88
order: 8500

‎postman/collections/Fleetbase API/Orchestrator/Run Orchestrator.params.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ fields:
3838
- name: allocation_strategy
3939
type: string
4040
description: Allocation strategy for engines that support multiple modes. Use `route_aware` for normal route-aware VROOM allocation, or `capacity_only` with `engine: vroom` to run VROOM with a synthetic matrix and no vehicle locations.
41+
- name: vehicle_packing
42+
type: string
43+
description: VROOM capacity-only packing policy. Use `minimize_vehicles` to prefer filling feasible vehicles before opening another vehicle. Use `balanced` or `none` to omit the vehicle fixed-cost packing bias. Defaults to `minimize_vehicles` when `engine` is `vroom` and `allocation_strategy` is `capacity_only`.
44+
- name: vehicle_fixed_cost
45+
type: integer
46+
description: Optional VROOM fixed cost per vehicle used when `vehicle_packing` is `minimize_vehicles`. Defaults to `100000`.
4147
- name: geometry
4248
type: boolean
4349
description: Whether supported engines should request route geometry.

‎postman/collections/Fleetbase API/Orchestrator/Run Orchestrator.request.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: |-
44
55
For normal route-aware VROOM allocation, send `options.engine: "vroom"` and omit `allocation_strategy` or set it to `route_aware`. Vehicles must have usable positions because VROOM will solve against route coordinates.
66
7-
For capacity-only VROOM allocation, send `options.engine: "vroom"` and `options.allocation_strategy: "capacity_only"`. This mode answers which vehicles can carry the selected orders by weight, volume, pallets, parcels, skills, and task limits without requiring vehicle locations.
7+
For capacity-only VROOM allocation, send `options.engine: "vroom"` and `options.allocation_strategy: "capacity_only"`. This mode answers which vehicles can carry the selected orders by weight, volume, pallets, parcels, skills, and task limits without requiring vehicle locations. Use `options.vehicle_packing: "minimize_vehicles"` to bias VROOM toward filling feasible vehicles before opening another vehicle; use `balanced` or `none` to disable that packing bias.
88
99
For Fleetbase's deterministic built-in capacity allocation, send `options.engine: "capacity"`. This native engine is useful as a fallback and debugging baseline for capacity-only allocation without VROOM.
1010

0 commit comments

Comments
 (0)