Giter Site home page Giter Site logo

multiple_cluster_coverage's Introduction

Multiple Cluster Coverage

This repository contains the code for the Multiple Cluster Coverage algorithm developed as a part of my Bachelor's thesis at RBCCPS, IISc, Bangalore.

Installation Instructions

  1. Clone the repository to your local machine.
  2. Use pip to install the repository
cd mcc/
python -m pip install -e .

This installs all the required modules required for the repository.

Benchmark

  1. Run tests/benchmark.py to run the benchmark script. The script compares the performance of our algorithm with the TSP solver from Google OR Tools.
cd mcc
python tests/benchmark.py /path/to/config.yaml
  1. The script requires the path to be a configuration file. A sample configuration file can be found here. The output of the benchmark script ran using this configuration file can be found in the results directory.

Results

+---------------------------------------------------------------+
|                          MCC Results                          |
+-------------+------------+-----------+------------+-----------+
|    Config   | T_mean (s) | T_std (s) | C_mean (m) | C_std (m) |
+-------------+------------+-----------+------------+-----------+
| Grid (1, 2) |   0.0042   |   0.0002  |  36.2886   |   0.189   |
| Grid (2, 2) |   0.0136   |   0.0003  |  94.6935   |   2.445   |
| Grid (3, 5) |   0.1857   |   0.005   |  335.3863  |   1.744   |
+-------------+------------+-----------+------------+-----------+
+---------------------------------------------------------------+
|                          TSP Results                          |
+-------------+------------+-----------+------------+-----------+
|    Config   | T_mean (s) | T_std (s) | C_mean (m) | C_std (m) |
+-------------+------------+-----------+------------+-----------+
| Grid (1, 2) |   0.0239   |   0.0013  |  35.9227   |   0.0345  |
| Grid (2, 2) |   0.1326   |   0.0202  |   82.171   |   0.0634  |
| Grid (3, 5) |   3.022    |   0.573   |  297.5467  |   3.893   |
+-------------+------------+-----------+------------+-----------+
+----------------------------------+
| Relative Performance Statistics  |
+-------------+----------+---------+
|    Config   |  T (%)   |  C (%)  |
+-------------+----------+---------+
| Grid (1, 2) | -82.4804 |  1.0187 |
| Grid (2, 2) | -89.7276 | 15.2395 |
| Grid (3, 5) | -93.8561 | 12.7172 | 
+-------------+----------+---------+

Note: Here (-) sign indicates the better performance of the algorithm compared to the benchmark

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.