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
hello dear friend
when i changed the vrp dataset in your code, error occured for "heappush(self.chromosomes, (x.cost, x))" in cvrp_advancedga.py file that is "unorderable types: Solution() < Solution()"
i have to say that vrp file that i used, have same syntax with your file, and i download them from "http://neo.lcc.uma.es/vrp/vrp-instances/capacitated-vrp-instances/" and use "Set A" or "A-VRP".
also one time i created vrp file manually and again the same error occured.
how can i use other dataset in this code??
my python version is 3.4.0.
thank you.
The text was updated successfully, but these errors were encountered:
Yes the problem you have been experiencing is a result of my lazy construction of the code to load in the VRP instance. It is hardcoded for a certain subset of VRP and does not allow all the parameters.
I can't say when I will be able to add this in correctly, however a quick search led me to this piece of code which seems to detail the correct steps required to load in the VRP file generally.
I will keep this in mind and try to get round to it, however, if you manage to fix it before, please make a PR and I'll update the repo with your changes!
hello again dear friend
i check your CVRPInfo class step by step and almost i am certain that your code haven't any error
can you tell me the "heappush(self.chromosomes, (x.cost, x))" what exactly does?
x is some route and cost is some cost, so how they are pushed in chromosomes heap??
and if you have any more information, i will be thankful to you if tell me that.
hello dear friend
when i changed the vrp dataset in your code, error occured for "heappush(self.chromosomes, (x.cost, x))" in cvrp_advancedga.py file that is "unorderable types: Solution() < Solution()"
i have to say that vrp file that i used, have same syntax with your file, and i download them from "http://neo.lcc.uma.es/vrp/vrp-instances/capacitated-vrp-instances/" and use "Set A" or "A-VRP".
also one time i created vrp file manually and again the same error occured.
how can i use other dataset in this code??
my python version is 3.4.0.
thank you.
The text was updated successfully, but these errors were encountered: