GithubHelp home page GithubHelp logo

cs3201-final's Introduction

CS3201-Final

  1. Accessing the code
    1.1) Navigate to https://github.com/ERElli/CS3201-Final
    1.2) Click on “# branches”
    1.3) Click on “locations”
    1.4) Click on “Clone or Download”
    1.5) Download as a zip file of clone the repository

  2. Running the Code 2.1) Dependencies
    2.1.1) Navigate to https://matplotlib.org/users/installing.html and follow the build instructions that apply to your system
    2.2) In your terminal, navigate to the code directory in the project
    2.3) Type the following command: python3 main.py CountryName Where CountryName is WesternSahara, Uruguay or Canada (please see section 3 if you wish to run using Canada)
    2.4) Both the minimum path length and average path length for each generation is printed to the terminal
    2.5) Once the code has finished executing, all the individuals who have the best fitness are displayed and one of these paths are plotted

  3. Generating Distance Files
    Because the Canada.pickle file was so large, we were not able to upload it to github. Please follow instruction 3.3 below to generate the Canada.pickle file.

    The main code requires a serialized array of the distances of each city to all other cities If you wish to incorporate more countries you can follow the following instructions
    3.1) Given a text file with lines of the form:
    CityNumber X-Coordinate Y-Coordinate
    3.2) Make sure the text file is in the same directory as the code
    3.3) In the terminal, navigate to the directory containing the code
    3.3) Type the following command:
    python3 TSPTextFilename CountryName.pickle
    3.4) In main.py, in the getTSPfilename function you will have to add the following lines:
    elif countryName == "CountryName":
    filename = "pathToTSPTextfile"

cs3201-final's People

Contributors

christianlanoe avatar erelli avatar nmacneil avatar victormutandwa2 avatar

Watchers

 avatar  avatar  avatar

Forkers

christianlanoe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.