A Common Mathematical Model of TSP Problems
The TSP problem usually requires finding a path with the minimum weight (or cost) that starts from the starting point, passes through all other nodes in sequence without repetition, and finally returns to the starting point
Parameter Description
Parameter | Description |
---|---|
The collection of all nodes | |
Number of nodes | |
Node Number, | |
The weight (or cost) of edge | |
0-1 decision variable, where 1 means visiting edge (i, j) and 0 means not visiting edge (i, j) |
Mathematical Model
Objective Function
Minimize the total weight (or cost):
Constraints
(1) Each node can only be accessed once:
(2) Each node can only be left once:
(3) Subtour elimination constraint:
represents the node sets of the sub-loop.
(4) 0-1 decision variable:
There are other forms of constraints for eliminating subtours. Here is the Miller-Tucker-Zemlin Subtour Elimination Constraint:
represents the visit order of node . When , it means that node is accessed earlier than node . The constant term provides sufficient slack when , and it does the same thing as the Big M.
Be the first person to leave a comment!