Code Monkey home page Code Monkey logo

hybridcvrp-web's Introduction

HybridCVRP-web

Website with a demo of the HybridCVRP solver, running at: https://martsime.github.io/hybridcvrp

HybridCVRP

Introduction

Unless you are familiar with the Vehicle Routing Problem (VRP), the demo may not make much sense.

VRP is a combinatorial optimization problem where you have a set of customers expecting a delivery, and the goal is to find the best set of delivery routes for these customers. In general, a VRP can have many different constraints and requirements. However, the solver used in this demo is specialized for the Capacitated Vehicle Routing Problem (CVRP). It considers a single depot (red node in the visualization), and there is an unlimited number of vehicles, all with the same capacity. The solver tries to find the set of routes such that the total distance driven by the vehicles is minimized, while taking into account their capacity.

In the GIF above, the total distance driven is represented as "Cost", while the "% from BKS" represents how much worse the current solution is compared to the "Best Known Solution". The problem instances used in the demo are from a standard benchmark dataset, and the website CVRPLIB constains information about the best solutions obtained for the different problem instances.

Usage

  1. In order to test the solver, you must first choose a problem instance to be solved from the dropdown. It contains information about the customers to serve, like their demands and positions, in addition to the capacity of the vehicles.
  2. Once the problem instance is loaded, you can start the solver by pressing the "play" button.
  3. When running, you can either pause the solver by pressing the "pause" button, or reset it by pressing the "x" button

Configuration

You can configure the solver parameters by clicking the "wheel" button. For an explanation of the different parameters, it is recommended to read the config.yml file provided in the repository of the solver, or to read the paper proposing the algorithm implemented in the solver.

Installation

Running the website locally requires Node.js (v14.17.5) and npm to be installed.

Start by installing the dependencies:

npm install

and run the dev server with:

npm run dev

hybridcvrp-web's People

Contributors

martsime avatar

Watchers

 avatar

Forkers

mrdo19111911

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.