Page 1 of 1

Maximum Size of a Single Order on a Vehicle

Posted: Tue Jan 19, 2021 3:57 pm
by ivo.hedtke
We are using xTour v1 and we have a new requirement from our planners. We are not sure whether this is supported and if so: how?

We have multiple orders and multiple vehicles. All of them use 6 quantities (ADR, volume, tax weight, gross weight, ...). Here is an example for one order:

Code: Select all

	"transportOrders": [
		{
			"$type": "TransportDepot",
			"pickupQuantities": {
				"quantities": [
					0,
					7596,
					474,
					0,
					0,
					2530
				]
			},
			...
		}, ...
All orders (pickups and deliveries) look like that and the vehicles use those 6 dimensions to give their capacities.

Question: We would like to set per vehicle for some dimensions a limit. How do we do that?

For example: the truck can have up to 1000 ADR points, 34 pallets, 20t gross weight, .... but we would like to have only "small orders" on it, this means although the sum of all orders can be up to 20t, each individual order should have at most 500kg. Orders with more than 500kg should go on a truck without that limit (or with a higher limit)

We had equipment flags in mind, but we have 30+ trucks and each has 6 dimensions. It would be quite a combination of "trucks and allowed maximum value of dimension X".

Example:
truck 1: max gross weight 500kg (per order)
truck 2: max gross weight 600kg, max pallets 3 (per order)
truck 3: no limits (per order)
truck 4: max tax weight 1t (per order)
...

Is such a detailed limit "per order on a truck" possible, or do we have to solve that in the preprocessing before calling xTour (for example via equipment flags)?

Thank you!

Re: Maximum Size of a Single Order on a Vehicle

Posted: Wed Jan 20, 2021 9:06 am
by Joost
For height, length, width and weight you can make use of the LoadingArea feature. ON each order you can define the size via the TransportOrder.LoadingArea and each vehicle you can set limits that apply on a per order basis via the Vehicle.maxLoadingArea .

If that does not suffice you need to resort back to a flag base system like equipments. I personally would not use equipment's but categories. You can give vehcile a category via based on it's type via the Vehcile.category and then on orders set which categories can execute the order via the TransportOrder.vehicleCategories . I find that system much simpler then a equipement based system.