Traveling Salesman Problem: A Case Study: Dr. Leena Jain Mr. Amit Bhanot
Traveling Salesman Problem: A Case Study: Dr. Leena Jain Mr. Amit Bhanot
167 | P a g e www.cirworld.com
Council for Innovative Research International Journal of Computers & Technology
www.ijctonline.com ISSN: 2277-3061 Volume 3, No. 1, AUG, 2012
2 3 - 5 2 3
3 6 5 - 6 4
4 2 2 6 - 6
5 3 3 4 6 -
Mathematical Formulation
MIN Cost=
3*x12+6*x13+2*x14+3*x15+3*x21+5*x23+2*x24+3*x25+6*x31+
6*x32+6*x34+4*x35+2*x41+2*x42+6*x43+6*x45+3*x51+3*x52+
4*x53+6*x54;
Solution: This inequality ensures that at least one leg of the tour
connects cities 1, 2, and 4 with cities 3 and 5. In general, if a
x12=x24=x41=x35=x53=1 constraint of this form is included for each way in which the
x13=x14=x15=x21=x23=x25=x31=x32=x34=x42=x43= cities can be divided into two groups, then subtours will be
x45=x51=x52=x54=0 eliminated. Now again above ILPP solved with additional
constraint (1) using Software LINGO Version 11 that produce
It is clear from the produced result assignment solution to 1 tour cycle (fig 4).
route the salesman through disjoint subtours of the cities(1-2-
4-1 and 3-5-3) instead of on a single trip or tour (figure 3) Solution:
Minimum Cost z=16
x14=x23=x35=x42=x51=1
x12=x13=x15=x21=x24=x25=x31=x32=x34=x41=
x43=x45=x52=x53=x54=0
Above result produce 1 tour cycle 1-4-2-3-5-1.
168 | P a g e www.cirworld.com
Council for Innovative Research International Journal of Computers & Technology
www.ijctonline.com ISSN: 2277-3061 Volume 3, No. 1, AUG, 2012
169 | P a g e www.cirworld.com