Skip to content
/ tsp Public

Metaheuristic Algorithms for Solving Symmetric Traveling Salesperson Problem (TSP)

License

Notifications You must be signed in to change notification settings

amughrabi/tsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TSP

Metaheuristic Algorithms for Solving Symmetric Traveling Salesperson Problem (TSP). This project is an evaluation project for several metaheuristic algorithms on swarm intelligence. The selected algorithims are:

  • Hydrological Cycle Algorithm (HCA).
  • Water Flow-Like Algorithm.
  • Intelligent Water Drops Algorithm (IWD).
  • Rain Water Algorithm.
  • River Formation Dynamics.

How to use?

The following code demonstrates an example of using the HCA algorithm on RL1304 dataset. To know more about the Graph and the dataset details, you should read this page first.

package jo.ju.edu.tsp;  
  
import jo.ju.edu.tsp.algorithms.HCA;  
import jo.ju.edu.tsp.algorithms.TSP;  
import jo.ju.edu.tsp.set.SetInstance;  
import org.xml.sax.SAXException;  
  
import javax.xml.parsers.ParserConfigurationException;  
import java.io.IOException;  
  
public class Main {  
    public static void main(String[] args) {  
        TSP tsp = new HCA();  
        try {  
            tsp.solve(SetInstance.RL1304);  
        } catch (ParserConfigurationException e) {  
            e.printStackTrace();  
        } catch (SAXException e) {  
            e.printStackTrace();  
        } catch (IOException e) {  
            e.printStackTrace();  
        }  
    }  
}

Systems Prerequisites

  • JDK 1.8+
  • Maven
  • Git - Optional in case of download the project

Run the project

  • Download or clone the project
  • Open the source code in an IDE; for example, IntelliJ
  • Go to any algorithm; for example, to run the HCA, you want /tsp/src/main/java/jo/ju/edu/tsp/algorithms/HCA.java
  • Right click in the HCA class -> Click on "Run'HCA.main()'" (Same thing for IWD and WFA java files)

The Team

  • Ahmad Al Mughrabi.
  • Raneem abuzayed.
  • Ali Al Sarhan
  • Nancy

About

Metaheuristic Algorithms for Solving Symmetric Traveling Salesperson Problem (TSP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •