Git Product home page Git Product logo

crimeroutex's Introduction

INFO6205_Traveling_Salesman

INFO6205 Project: The Traveling Salesman Problem

User Interface

web app snippet

To run the Java program:

  1. Clone the app with the command: git clone [email protected]:shivamt24/INFO6205_Traveling_Salesman.git
    git clone [email protected]:shivamt24/INFO6205_Traveling_Salesman.git
    
  2. Open the app by moving to the project folder
  3. Run the script buildAndRun.sh to run all the algorithms
    bash buildAndRun.sh
    Note: This script installs all the dependencies, builds the jars and generates the output
    
  4. The output file is generated at the location
    src/main/resources/outputs/
    

Note: The input csv should be at the location "src/main/resources/inputs/"

Running the webpage:

Steps:

  1. Clone the app with the command: git clone [email protected]:shivamt24/INFO6205_Traveling_Salesman.git
    git clone [email protected]:shivamt24/INFO6205_Traveling_Salesman.git
    
  2. Open the app on the terminal
  3. Move to the folder visualize/tsp-vis “command : cd visualize/tsp-vis”
    cd visualize/tsp-vis
    
  4. Install the react dependencies “command: npm i”
    npm i
    
  5. Run the app “command: npm start”
    npm start
    
  6. The app will be hosted on http://localhost:3000/

Additional Steps to generate custom output and visualize:

  1. Run the Java algorithm as per the java documentation.
  2. The output csv files will be generated, copy these files to the location “visualize/tsp-vis/src/csv”
  3. Note: The copied files must be renamed to either “christofides.csv” or “annealing.csv”
  4. Run the command: “npm start” after moving inside the react project

Visualization:

User Interface Flow chart

flowchart

To use the travelling salesman Java algorithm with the provided dataset, follow these steps:

Steps:

  1. Click on the "Select Algorithm" drop down and select the desired algorithm to display.
  2. Once the algorithm is selected, the locations will be plotted on a map based on the input CSV data.
  3. Click on the "Generate" button to display the paths connecting the locations according to the output generated by the selected algorithm.

crimeroutex's People

Contributors

kaushikgnanasekar avatar akshayparab95 avatar shivamt24 avatar thabes avatar

Stargazers

Kaushik Gnanasekar avatar

Watchers

Robin Hillyard avatar  avatar

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.