Coder Social home page Coder Social logo

intersectionmanagementai's Introduction

Automated Intersection Management - Heuristic Approach (with MiniZinc)

[paper] [code]

Dependencies

  • MiniZinc
  • Python Notebook
  • iminizinc library (for integrating minizinc with python)
  • drawSVG (for visualizing data)

Description

The IntersectionManagement.mzn file contains the model of the AI. The file takes in an array of old paths named "oldPaths" and an array with the old queue conditions named "WaitingQueue". As output, the model creates a new "paths" array and a "NewWaitingQueue" array. These two arrays are used for the next iteration. The python notebook doesn't work yet. To run the system, the model needs to be manually called repeatedly.

Instruction

Install MiniZinc

For linux-based OS please use the following code on terminal

sudo apt-get update
sudo apt-get install minizinc

For Mac

  • Launch Terminal by pressing command+space, type terminal and hit Enter key.
  • Run
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  • Run
brew install minizinc

For Windows The python and minizinc integration is still at an early stage. And windows support is still not properly available yet.

Install Python Notebook

Use any python notebook. Jupyter notebook can be installed through anaconda[https://www.anaconda.com/].

Install iminizinc library

Run the following code to install iminizinc[https://github.com/MiniZinc/iminizinc] extension

pip install -U iminizinc

Make sure that the mzn2fzn binary and the solvers are at the PATH when running iminizinc on python notebook.

Install drawSVG

Run the following code in terminal to install drawSVG[https://pypi.org/project/drawSvg/]

pip install drawSVG

intersectionmanagementai's People

Contributors

mushfiqur11 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kazzi58

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.