An AI constraint solver for Python to optimize the Vehicle Routing Problem

OptaPy is an AI constraint solver for Python to optimize the Vehicle Routing Problem, Employee Rostering, Maintenance Scheduling, Task Assignment, School Timetabling, Cloud Optimization, Conference Scheduling, Job Shop Scheduling, Bin Packing and many more planning problems.

OptaPy wraps the OptaPlanner engine internally, but using OptaPy in Python is significantly slower than using OptaPlanner in Java or Kotlin.

Get started

Prerequisites

  1. Install Python 3.9 or later
  2. Install JDK 11 or later with JAVA_HOME configured appropriately.

Build

Install the python build module (if not already installed):

pip install build

In the optapy-core directory, use the command below to build the optapy python wheel into the dist directory:

cd optapy-core
python -m build

Install it into a virtual environment using pip:

# Activate a virtual environment first
source my_project/venv/bin/activate
pip install dist/optapy-0.0.0-py3-none-any.whl

Run

Running run.sh runs

 

 

 

To finish reading, please visit source site