This project includes
- a tsp solver based on Branch and Bound algorithm
- a random matrix generator to build symmetric matrix of any size (>= 3)
- a timing function to keep track of algorithm execution time
- a unit test module (Mocha & Chai) that welcomes any test case contributions
Install dependencies
cd TSP-BB-es6
npm install
Include tsp_bb module in yours
const solveTsp = require('./tsp_bb');
Solve TSP
const solution = solveTsp(matrix);
Read solution
const { path, lb } = solution;
Experimental data output
const util = require('../src/util');
util.report(5, 50);
Run test cases
npm test