Click or drag to resize

Problem Class

The problem definition. It contains the Jobs to be assigned and the Resources available to assign them to.
Inheritance Hierarchy
SystemObject
  VRSolverProblem

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

The Problem type exposes the following members.

Constructors
  NameDescription
Public methodProblem
Initializes a new instance of the Problem class
Top
Properties
  NameDescription
Public propertyJobPartsCount
The total number of JobParts (not the number of Jobs).
Public propertyLeaveStartLocationAsLateAsPossible
If true then resources leave their starting locations so as to minimise any idle time at the first job i.e. leave later (start location windows permitting). If false then the resource leaves the starting location when the start location window opens. NB work time starts when the resource leaves the starting location.
Public propertyMaxDrivingTime
The maximum driving time for each resource. (Set to less than zero to ignore this constraint). This is a global setting and applies to all resources. To set a value for an individual resource use MaxDrivingTime in the Resource class. This is a hard constraint that will always be satisfied.
Public propertyMaxWorkTime
The maximum work time for each resource. The work time is the time from when the resource leaves the start location until it returns to its end location. (To ignore this constraint set it to a value less than zero). This is a global setting and applies to all resources. To set a value for an individual resource use MaxWorkTime in the Resource class. This is a hard constraint that will always be satisfied.
Public propertyTotalDistanceWeight
The weight for minimising total distance traveled by all resources. The weight is per the unit of distance that is set in the TravelTime matrix.
Public propertyTotalLatenessWeight
The weight for minimising Lateness for jobs that have soft windows. The weight is per minute.
Public propertyTotalWorkTimeWeight
The weight for minimising the total working time for all resources. The working time for a resource is the time from when the resource leaves the start location until it returns to its end location. This is a global setting which applies to all resources. To set a weight for an individual resource use MaxWorkTimeSoftConstraintWeight in the Resource class. The weight is per minute of work time.
Top
Methods
  NameDescription
Public methodAddJob
Adds a Job to the problem.
Public methodAddResource
Adds a Resource to the problem.
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 methodGetJob
Gets a Job using a Job ID.
Public methodGetJobPart
Gets a JobPart using a JobPart ID.
Public methodGetResource
Gets a Resource using a Resource ID.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLoad
Load a problem from a file.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSave(String)
Save the Problem to a file.
Public methodSave(String, Boolean)
Save the Problem to a file.
Public methodSaveAsByteArray
Save the Problem to a byte array. The Problem is converted to a JSON format and then the JSON format is converted to a byte array.
Public methodSaveAsByteArray(Boolean)
Save the Problem to a byte array. The Problem is converted to a JSON format and then the JSON format is converted to a byte array.
Public methodSetAllowAssign(String, String)
Allows the Job to be assigned to the selected Resource if it was previously not allowed by calling SetNotAssign.
Public methodSetAllowAssign(Job, Resource)
Allows the Job to be assigned to the selected Resource if it was previously not allowed by calling SetNotAssign.
Public methodSetFixAssign(String, String)
Fix a job assignment to the selected resource i.e. the solver will ensure this assignment is made and the job is not assigned to a different resource.
Public methodSetFixAssign(Job, Resource)
Fix a Job assignment to the selected Resource i.e. the solver will ensure this assignment is made and the Job is not assigned to a different resource.
Public methodSetNotAssign(String, String)
Ensures the solver will not assign the job to the selected resource.
Public methodSetNotAssign(Job, Resource)
Ensures the solver will not assign the Job to the selected resource.
Public methodSetTravelTimes
Sets the TravelTime matrix.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldJobs
The Jobs that have been added to the problem. To add new Jobs use the AddJob(Job) method.
Public fieldResources
The Resources that have been added to the problem. To add new Resources use the AddResource(Resource) method.
Top
See Also

www.routingautomation.com | support