Skip to content

Issue with problem reading and solution suggestion  #6

@drissDean

Description

@drissDean

I'm using the framework in particular way. I have to determine pathways between cities of my own. Now each time I had a problem to solve, I'd override a tsp file I created. The thing is when I was trying to solve a new problem, the getRepresentationFromFile() method was returning me the previous problem. I bypassed it by using my own method which were rendering the problem representation from an arraylist (instead of a file).
Now the other issue I have is that whenever I passed to the algorithm only close cities or neighborhoods coordinates, the algorithm would fail. There should be at least one long distance between two points for the algorithm to work. It'd break otherwise.
I don't know what's the real issue and how to fix it. And I need to do more: instead of using the Euclidean methods to calculate distances, I want to use a geolocation service API to use the actual estimated travel time between 2 points plus the estimated time to spend on each point.
I think that having my own getDistance() method (which calls the API and do stuffs) would help me do that but I'm not sure it'll prevent the program from crashing if the two points are still close.

Any way you can help me? It's for my internship

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions