Click or drag to resize

Resource Class

A person or vehicle to be scheduled.
Inheritance Hierarchy
SystemObject
  VRSolverResource

Namespace:  VRSolver
Assembly:  VRSolver (in VRSolver.dll) Version: 1.13.0.0
Syntax
public class Resource

The Resource type exposes the following members.

Constructors
  NameDescription
Public methodResource
Initializes a new instance of the Resource class
Top
Properties
  NameDescription
Public propertyEarliestStart
The earliest time that the Resource can leave its starting location.
Public propertyEndLocation
The end location for the Resource.
Public propertyExternalID
An ID to be used when visualising the solution or exporting it to a report. If this property is not used then ID is used instead.
Public propertyID
An ID for the Resource.
Public propertyLatestReturn
The latest time that the Resource must return to its end location by.
Public propertyLatestStart
The latest time that the Resource can leave its starting location.
Public propertyMaxDrivingTime
The maximum driving time for this Resource. This value (if set) overrides the global MaxDrivingTime set in the Problem class. This is a hard constraint that must be satisfied.
Public propertyMaxJobTimeSoftConstraint
A soft constraint, maximum total Job time for the Resource. The total Job time is the sum of the JobTime for all the Jobs assigned to the Resource. The default value is zero. To instead constrain the total working time for the Resource, use MaxWorkTimeSoftConstraint
Public propertyMaxJobTimeSoftConstraintWeight
The weight for the MaxJobTimeSoftConstraint for this Resource. The weight is per minute of total Job time under the minimum. The default value is zero.
Public propertyMaxLoad
Constraints on values which the Resource gains (or loses for negative values) as Jobs are completed. The Resource cannot be assigned a schedule which would break the Resource's maximum load constraints. The MaxLoad is set using an ID (the dictionary's key) and a number value (the dictionary's value). The ID corresponds to an ID set in the LoadChange dictionary for each JobPart. When a JobPart is completed by a Resource, the Resource's running total for each ID is increased or decreased by the value for the IDs in the JobPart.
Public propertyMaxWorkTime
The maximum work time for this Resource. This value (if set) overrides the global MaxWorkTime set in the Problem class. The work time is the time from when the Resource leaves the start location until it returns to its end location. This is a hard constraint that must be satisfied.
Public propertyMaxWorkTimeSoftConstraint
A soft constraint, maximum work time for the Resource. The work time is the time from when the Resource leaves the start location until it returns to its end location. The default value is zero. To instead constrain the total amount of time that the Resource spends on Jobs, use MaxJobTimeSoftConstraint.
Public propertyMaxWorkTimeSoftConstraintWeight
The weight for the MaxWorkTimeSoftConstraint for this Resource. This value (if set) overrides the global TotalWorkTimeWeight set in the Problem class. The weight is per minute of work time over the maximum.
Public propertyMinJobTimeSoftConstraint
A soft constraint, minimum total Job time for the Resource. The total Job time is the sum of the JobTime for all the Jobs assigned to the Resource. The default value is zero. To instead constrain the total working time for the Resource, use MinWorkTimeSoftConstraint.
Public propertyMinJobTimeSoftConstraintWeight
The weight for the MinJobTimeSoftConstraint for this Resource. The weight is per minute of total Job time under the minimum. The default value is zero.
Public propertyMinWorkTimeSoftConstraint
A soft constraint, minimum work time for the Resource. The work time is the time from when the Resource leaves the start location until it returns to its end location. The default value is zero. To instead constrain the total amount of time that the Resource spends on Jobs, use MinJobTimeSoftConstraint.
Public propertyMinWorkTimeSoftConstraintWeight
The weight for the MinWorkTimeSoftConstraint for this Resource. The weight is per minute of work time under the minimum. The default value is zero.
Public propertyServiceTimeMultiplier
The JobTime for jobs assigned to this Resource are multiplied by this value. The value is 1.0 by default.
Public propertyStartLocation
The starting location for the Resource.
Public propertyTimeMatrixIndex
The index for this Resource in the TravelTimes lookup matrix.
Public propertyUseCost
The weight for using this Resource.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a description of this Resource.
(Overrides ObjectToString.)
Top
See Also

www.routingautomation.com | support