Resource type

Top  Previous  Next

This is the main element describing a resource, the part that carries out a job:

 

A resource type is defined by an ID.

 

These variables identifies the cost associated with using the resource type:

 

Cost: This is cost if the resource is allocated to any job. This needs to be >0, if you want to reduce the number of resources as much as possible. Larger vehicles will typically have a higher cost than smaller vehicles.

In a typical case where costdrivetime=1, use a value that reflects the length of a workday such as 500.

 

CostKM: Cost per km

CostDriveTime: Cost per minute (driving)

 

If costKM = 0, then fastest route is used for route calculations when Matrix = StreetNetwork.

If costDriveTime = 0, then shortest route is used for route calculations when Matrix = StreetNetwork.

Otherwise a weighted cost is used in route calculations.

They can not both be 0.

 

CostWaitTime: Cost per minute (waiting). This is normally a lower value than CostDriveTime.

 

CostServiceTime: Cost per minute (during job pickup and job delivery). This should only be set if multiple resource types are in use and they have different CostWaitTime. In that case, use the same value as CostWaitTime.

 

CostPerGroupChange: Cost per group change

CostPerSubRoute: Cost per sub route.

 

CostLoadKm: Cost per load*km - defined for each load index. This is for situations where the cost depends upon the load - higher load leading to higher driving costs.

 

See Service Time for description of ServiceTimePerJob and ServiceTimePerDemand.

 

By setting Capacity it is possible to define the maximum load at any time during a resource period. Capacity can refer to number of seats, maximum weight, volume or similar physical restriction. This is the counterpart to demand for jobs. The sum of demands for jobs assigned to a resource period, must not exceed capacity.

 

By setting AccumulatedCapacity it is possible to define the maximum sum of demands for all pickups within a resource period.

 

The difference is load (capacity) increases or decreases as items are being picked up or delivered, while AccumulatedLoad (AccumulatedCapacity) only increases when something is being picked up. It is only in the case of mixed pickup and delivery there is a difference between the two.

 

Competences of the resource type can also be defined.

 

You may want to define MaxTime if there is a maximum time allowed for a resource type, even if a resource period is longer. Similarly MaxDist and MaxCost can be defined. Default is 0, meaning not in use.

 

UTurnTime can be defined to prevent too many u-turns. A typical value could be 0.5 (minute).

 

 

Additional options when Matrix = "StreetNetwork":

 

Network refers to the network to be used. Networks are defined in the configuration file.

 

If you are using multiple networks for the same task, make sure the coordinate system is the same for all networks and all jobs & depots are covered by the networks.

 

Limits refers to up to 3 limits.

 

A limit could be the weight of a vehicle, to prevent it from going anywhere where the network do not allow it. Limit is a number from 0 to 255. Default is 0 = no limit.