Skip to content

quanghuy205/multi-Truck-PSO

Repository files navigation

truck uav run:

g++ -std=c++11 .\CoordMatrix.cpp .\Tour.cpp .\TSPalgorithm.cpp .\main.cpp -o main

./main.exe

Tour.cpp: construct tour , function: CreateRandomTour(), CreateNearestNeighbourTour(), TourDistance(),....

CoordMatrix.cpp: Read text/tsp file data, calculates distances and generates DistanceMatrix.

TSPalgorithm.cpp: main algorithm : Two-opt , swap, path-relink, sTSP, mTSP. ( all available)

main.cpp:

// Test single TSP

test.RunSingleTSP();

// Test mTSP

test.MultiTSP();

Chỉnh tham số trong file TSPalgorithm.h, set file input trong TSPalgorithm.cpp::MultiTSP

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published