Git Product home page Git Product logo

ambulance-routing-aco's Introduction

Ambulance-routing-ACO

Problem Statement

  • The hospital routing problem is a contextual variation of the traveling salesman problem
  • "What is the optimal set of routes for a fleet of vehicles to traverse to deliver to a given set of customers?".

Solution Model

  • I have adopted a multi ant colony system - vehicle routing problem with time windows(MACS-VRPTW) for this problem which is based on the Ant Colony Optimization(ACO), the multiple ants, are organized in a manner to solve a multi-objective problem which is - i) the minimization of the number of tours(or vehicles) and ii) minimization of total travel time. image

ACO Pseudo-Code

Best Tour := NIL

repeat 

	Randomly place M ants on N cities 
	each ant constructs a tour in a greedy stochastic manner 
	update best_tour
	Each ant deposits pheromone on tour edges*
Until a termination criteria is met
return best_tour

*In the real world, ant keeps on depositing pheromone 

ACS-VEI Procedure

/* cycle */
/* compute number of times a patient has visited*/
/* initialize pheromone and data structure and initialize solution with N hospitals using nearest neighbour heuristic*/
for each ant k:
     construct a solution ๐œ™k  
     insert(INj)
     new_ant()
     /*update for best solution if it is improved*/
if visited_patients(๐œ™k) > visited_patients(๐œ™ACS-VEI)
    ๐œ™ACS-VEI := ๐œ™k
     /* if feasible, send for VRPTW */
/* perform update on both ๐œ™k and ๐œ™ACS-VEI   */
ฯ„ij = (1-ฯ)ฯ„ij  +ฯ/Jk
ฯ„ij = (1-ฯ)ฯ„ij  +ฯ/JACS-VEI
until a stopping condition is met 

ambulance-routing-aco's People

Contributors

shreyas-bhat avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

fenco-han

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.