← Open Source

Get started with Timefold quickstarts here. Optimize the vehicle routing problem, employee rostering, task assignment, maintenance scheduling and other planning problems.

TutorialsTool-specific tutorialsJava
Momentum
+0stars in 24 hours0.0%
612
Stars
179
Forks
+3
This week
26
Contributors
Created 2023-04-21 · Updated 2026-12-04 · #20620 today
Top developers
README

This repository contains quickstarts for Timefold Solver, an AI constraint solver for Java and Kotlin. It shows different use cases and basic implementations to get you started on your optimization journey.

Overview

Use Case Notable Solver Concepts
🚚 Vehicle Routing Map Integration, Planning List Variable, Shadow Variables
🧑 Employee Scheduling Load Balancing
🛠️ Maintenance Scheduling TimeGrain, Shadow Variable, Variable Listener
📦 Food Packaging Mixed Model, Shadow Variables, Pinning
🛒 Order Picking Planning List Variable, Shadow Variables
🏫 School Timetabling Timeslot
🏭 Facility Location Problem Shadow Variable
🎤 Conference Scheduling ValueRange on Entity, Timeslot, Justifications
🛏️ Bed Allocation Scheduling Allows Unassigned, Pinning
🛫 Flight Crew Scheduling Justifications, Overlapping Joiner
👥 Meeting Scheduling TimeGrain, Justifications
✅ Task Assigning Chained Through Time, Allows Unassigned
📆 Project Job Scheduling Shadow Variables, Strength Comparator, Pinning
🏆 Sports League Scheduling Consecutive Sequences, Justifications
🏅 Tournament Scheduling Pinning, Load Balancing

Note

The implementations in this repository serve as a starting point and/or inspiration when creating your own application. Timefold Solver is a library and does not include a UI. To illustrate these use cases a rudimentary UI is included in these quickstarts.

Getting started implementations

Our website contains several getting started guides. All of them build the School Timetabling use case. You can find the resulting projects for each of the guides in the getting started folder.

Use cases

🚚 Vehicle Routing

Find the most efficient routes for vehicles to reach visits, considering vehicle capacity and time windows when visits are available. Sometimes also called "CVRPTW".

Tip

Check out our off-the-shelf model for Field Service Routing. This model goes beyond basic Vehicle Routing and supports additional constraints such as priorities, skills, fairness and more.


🧑 Employee Scheduling

Schedule shifts to employees, accounting for employee availability and shift skill requirements.

Tip

Check out our off-the-shelf model for Employee Shift Scheduling. This model supports many additional constraints such as skills, pairing employees, fairness and more.


🛠 Maintenance Scheduling

Schedule maintenance jobs to crews over time to reduce both premature and overdue maintenance.


📦 Food Packaging

Schedule food packaging orders to manufacturing lines to minimize downtime and fulfill all orders on time.


🛒 Order Picking

Generate an optimal picking plan for completing a set of orders.


🏫 School Timetabling

Assign lessons to timeslots and rooms to produce a better schedule for teachers and students.

Without a UI:


🏭 Facility Location Problem

Pick the best geographical locations for new stores, distribution centers, COVID test centers, or telecom masts.


🎤 Conference Scheduling

Assign conference talks to timeslots and rooms to produce a better schedule for speakers.


🛏️ Bed Allocation Scheduling

Assign beds to patient stays to produce a better schedule for hospitals.


🛫 Flight Crew Scheduling

Assign crew to flights to produce a better schedule for flight assignments.


👥 Meeting Scheduling

Assign timeslots and rooms for meetings to produce a better schedule.


✅ Task Assigning

Assign employees to tasks to produce a better plan for task assignments.


📆 Project Job Scheduling

Assign jobs for execution to produce a better schedule for project job allocations.


🏆 Sports League Scheduling

Assign rounds to matches to produce a better schedule for league matches.


🏅 Tournament Scheduling

Tournament Scheduling service assigning teams to tournament matches.


Development

Want to contribute? See CONTRIBUTING.adoc.

Legal notice

Timefold Quickstarts was forked on 20 April 2023 from OptaPlanner Quickstarts, which was entirely Apache-2.0 licensed (a permissive license).

Timefold Quickstarts is a derivative work of OptaPlanner Quickstarts, which includes copyrights of the original creator, Red Hat Inc., affiliates, and contributors, that were all entirely licensed under the Apache-2.0 license. Every source file has been modified.

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store