Forum Discussion
FICO
6 years agoCommunity Manager
How to combine the largest subtours together
Hi, I worked on an assignment where i need to make a tour to visit various retail shops. Where the distance needs to be minimized. I obtained a solution with various sub-tours. I found out how to el...
FICO
6 years agoCommunity Manager
Thank you very much! This is really helpful!
Then I just have 1 more question because now it gives me the following output (see below). And if i understand the code correctly it selects a tour (in the first case 1,4,3,9) and breaks this tour but I would like it to be combined with the second largest tour. So in the first case that it combines the longest tour(1,4,3,9) and the second longest tour (0,18) Is there any way this can still be implemented in the code?
Total distance: 20.8
0 - 18 - 0
1 - 4 - 3 - 9 - 1
20 - 22 - 20
Selected tour:{1,4,3,9}
Total distance: 20.9
0 - 9 - 0
1 - 3 - 4 - 1
18 - 22 - 20 - 18
Selected tour:{1,3,4}
Total distance: 20.9
0 - 9 - 3 - 4 - 1 - 0
18 - 22 - 20 - 18
Selected tour:{0,9,3,4,1}
Total distance: 21.2
0 - 18 - 9 - 3 - 1 - 4 - 0
20 - 22 - 20
Selected tour:{0,18,9,3,1,4}
Total distance: 21.5
0 - 18 - 22 - 20 - 9 - 3 - 4 - 1 - 0
Related Content
Related Content
Combining sum and overall statement
Hi, I am trying to build a perishable supply chain model. To include perishability, I want to include a constraint in which for every period in time (T is the set of periods, indexed by t) the model...5 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread0Views0likes2CommentsTSP Subtour-Elimination Callback Class
I am new to Xpress and trying to implement a simple TSP instance using BCL Java to get myself up to speed. I have done this in Cplex before using the cut callbacks, which work fine for adding the sub...9 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum3 unread comments3 unread0Views0likes3Commentscombining mmxprs and/or nlsolv with mmquad or mmnl
I have two questions about combining mmxprs and/or nlsolv with mmquad or mmnl in Mosel: If I use the Xpress solver (mmxprs), can I trust that it will always detect that a constraint or objective is ...3 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum5 unread comments5 unread0Views0likes5Comments