School Timetable with Google OR-Tools

To Run

Clone or Download project:

  • clone project with git using:
git clone https://github.com/khalilrached/timetable-ortools
  • or download it on zip format from this link.

Setup virtual environment (venv):

  • after downloading the project we need to setup the virtual environment with venv (usually comes by default with python.)

  • go to the project folder:

cd your/path/to/timetable-ortools
  • init new venv in your/path/to/timetable-ortools:
python -m venv env
  • activate venv:
source env/bin/activate
  • install dependencies requirement:
python -m pip install -r requirements.txt

# or

pip install -r requirements.txt 

Edit the csv file

  • first Row is for teachers.
  • second row for courses.
  • third and last row for rooms.

Start the project:

python generate-timetable.py