Click or drag to resize

Solution Methods

The Solution type exposes the following members.

Methods
  NameDescription
Public methodAddJobToRoute
Adds the Job's JobParts to the end of the Resource's current route. This will add the JobParts even if it results in an infeasible solution. To insert the Job's JobParts at the best feasible position in the Resource's current route, use FindBestInsertion(Resource, Job) instead.
Public methodClone
Creates a new solution that is a copy of the current instance.
Public methodCreateNewRoute
Create a new initial route. This can be used for when passing an initial solution to the solver.
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 methodFindBestInsertion
Finds the best insertion positions for a Job's JobParts within an existing or empty route. It does not do the insertions but returns a JobInsertion result which indicates if a feasible insertion is possible and the solution's change in objective function value if the insertion is done. The insertion can then be done using the DoInsert method.
Public methodGetDetailedRoute(String)
Returns the ordered list of JobParts for the Resource specified.
Public methodGetDetailedRoute(Resource)
Returns the ordered list of JobParts for the Resource specified.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRouteLength
Returns the number of nodes in the route for this Resource. This includes the start and end nodes. Therefore if no Jobs have been assigned to the Resource then the route length is two.
Public methodGetRouteMetrics(String)
Returns RouteMetrics for the resource specified.
Public methodGetRouteMetrics(Resource)
Returns RouteMetrics for the resource specified.
Public methodGetSolutionMetrics
Returns metrics and feasibility summary for this solution.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsertJobPart
Inserts a JobPart into a Resource's route directly after the node indicated by the position parameter. The position parameter starts at zero. This means the first node in the route (the Resource's starting location) is position zero. This will insert the JobParts even if it results in an infeasible solution.
Public methodIsJobAssigned
Looks up whether a Job is assigned to a Resource or not.
Public methodStatic memberLoad(String, String)
Load a Solution from a text file.
Public methodStatic memberLoad(Problem, String)
Load a Solution from a text file.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSave(String)
Writes the solution to a simple text file format.
Public methodSave(String, String)
Writes the Solution to a simple text file format.
Public methodSaveAsByteArray
Save the Solution to a byte array. The Solution is converted to a text format and then the text format is converted to a byte array.
Public methodSaveAsByteArray(String)
Save the Solution to a byte array. The Solution is converted to a text format and then the text format is converted to a byte array.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnassignAll
Un-assigns all jobs (including fixed jobs) from all resources in the solution.
Public methodUnassignJobPart(Resource, Int32)
Un-assigns a JobPart from a Resource's route. The JobPart is the part at the indicated position in the route. The position parameter starts at zero. This means the first node in the route (the Resource's starting location) is position zero.
Public methodUnassignJobPart(Resource, JobPart)
Un-assigns a JobPart from a Resource's route.
Top
See Also

www.routingautomation.com | support