Schedule shifts to employees, accounting for employee availability and shift skill requirements.
-
Install JDK 11 or later with the environment variable
JAVA_HOMEconfigured to the JDK installation directory.
-
Git clone the optapy-quickstarts repo and navigate to this directory:
$ git clone https://github.com/optapy/optapy-quickstarts.git $ cd optapy-quickstarts/employee-scheduling -
Activate a virtual environment
$ python -m venv venv $ . venv/bin/activate -
Install the quickstart requirements to the virtual environment
$ pip install -r requirements.txt
-
Run the application
$ python main.py
-
Visit http://localhost:5000/static/index.html in your browser.
-
Click on the Solve button.
-
Git clone the optapy-quickstarts repo and navigate to this directory:
$ git clone https://github.com/optapy/optapy-quickstarts.git $ cd optapy-quickstarts/employee-scheduling -
Activate a virtual environment
$ python -m venv venv $ . venv/bin/activate -
Install the quickstart requirements and a testing framework to the virtual environment
$ pip install -r requirements.txt pytest
-
Run the tests
$ python -m pytest tests.py
Visit www.optapy.org.
