You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the settings for the problem didn't seems to get translated to the LKH3 program.
It didn't start and end at the depot specified.
We specified 5 salesmen and each should have at least 1 node in its tour due to the mtsp_min_size variable (mtsp_min_size specifies the minimum number of cities each salesman must visit in an MTSP or CVRP instance.), but the resultant tour only shows 3 tour instead of 5.
Are these variables supported? And what are the best way of passing them: overriding the problem attribute or in the solve function.
Hey so you're right that the settings aren't getting passed to the solver properly. The issue is that LKHProblem doesn't have the DEPOT, MTSP_MIN_SIZE, MTSP_MAX_SIZE, MTSP_OBJECTIVE, etc. fields so it leaves them out.
I don't have time to work on this right now, but it's an easy fix. You just need to add the missing fields here with the appropriate type of field (IntegerField, StringField, etc.)
I have tried to run the downloaded data from LKH3 website
mTSP/INSTANCES/ATSP/br17.atsp
with multiple salesman.Code
Results:
Some of the settings for the problem didn't seems to get translated to the LKH3 program.
mtsp_min_size
variable (mtsp_min_size
specifies the minimum number of cities each salesman must visit in an MTSP or CVRP instance.), but the resultant tour only shows 3 tour instead of 5.Are these variables supported? And what are the best way of passing them: overriding the problem attribute or in the
solve
function.Thanks in advance!
The text was updated successfully, but these errors were encountered: