IntersectionManagementAI
The AI model was built to optimize traffic at any 4-road intersection (6 lanes each)
Install / Use
/learn @mushfiqur11/IntersectionManagementAIREADME
Automated Intersection Management - Heuristic Approach (with MiniZinc)
- Md. Mushfiqur Rahman
- Nahian Muhtasim Zahin
- Kazi Raiyan Mahmud
- Md. Azmaeen Bin Ansar
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
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
