GitPedia

Timefold quickstarts

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

From TimefoldAIยทUpdated June 16, 2026ยทView on GitHubยท

This repository contains quickstarts for [Timefold Solver](https://github.com/TimefoldAI/timefold-solver), an AI constraint solver for Java and Kotlin. It shows different use cases and basic implementations to get you started on your PlanningAI journey. The project is written primarily in Java, distributed under the Apache License 2.0 license, first published in 2023. Key topics include: artificial-intelligence, constraint-programming, cvrp, employee-scheduling, gradle.

<p align="center"> <a href="https://solver.timefold.ai"> <img src="/timefold-solver-logo.png" width="400px" alt="Timefold Solver" /> </a> </p>

GitHub Discussions

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 PlanningAI journey.

Overview

Use CaseNotable Solver Concepts
๐Ÿšš <a href="#-vehicle-routing">Vehicle Routing</a>Chained Through Time, Shadow Variables
๐Ÿง‘โ€๐Ÿ’ผ <a href="#-employee-scheduling">Employee Scheduling</a>Load Balancing
๐Ÿ› ๏ธ <a href="#-maintenance-scheduling">Maintenance Scheduling</a>TimeGrain, Shadow Variable, Variable Listener
๐Ÿ“ฆ <a href="#-food-packaging">Food Packaging</a>Mixed Model, Shadow Variables, Pinning
๐Ÿ›’ <a href="#-order-picking">Order Picking</a>Chained Planning Variable, Shadow Variables
๐Ÿซ <a href="#-school-timetabling">School Timetabling</a>Timeslot
๐Ÿญ <a href="#-facility-location-problem">Facility Location Problem</a>Shadow Variable
๐ŸŽค <a href="#-conference-scheduling">Conference Scheduling</a>Timeslot, Justifications
๐Ÿ›๏ธ <a href="#-bed-allocation-scheduling">Bed Allocation Scheduling</a>Allows Unassigned
๐Ÿ›ซ <a href="#-flight-crew-scheduling">Flight Crew Scheduling</a>
๐Ÿ‘ฅ <a href="#-meeting-scheduling">Meeting Scheduling</a>TimeGrain
โœ… <a href="#-task-assigning">Task Assigning</a>Bendable Score, Chained Through Time, Allows Unassigned
๐Ÿ“† <a href="#-project-job-scheduling">Project Job Scheduling</a>Shadow Variables, Variable Listener, Strenght Comparator
๐Ÿ† <a href="#-sports-league-scheduling">Sports League Scheduling</a>Consecutive Sequences
๐Ÿ… <a href="#-tournament-scheduling">Tournament Scheduling</a>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.

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".

Vehicle Routing Screenshot

[!TIP]
<img src="https://docs.timefold.ai/_/img/models/field-service-routing.svg" align="right" width="50px" /> 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.

Employee Scheduling Screenshot

[!TIP]
<img src="https://docs.timefold.ai/_/img/models/employee-shift-scheduling.svg" align="right" width="50px" /> 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.

Maintenance Scheduling Screenshot


๐Ÿ“ฆ Food Packaging

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

Food Packaging Screenshot


๐Ÿ›’ Order Picking

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

Order Picking Screenshot


๐Ÿซ School Timetabling

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

School Timetabling Screenshot

Without a UI:


๐Ÿญ Facility Location Problem

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

Facility Location Screenshot


๐ŸŽค Conference Scheduling

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

Conference Scheduling Screenshot


๐Ÿ›๏ธ Bed Allocation Scheduling

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

Bed Scheduling Screenshot


๐Ÿ›ซ Flight Crew Scheduling

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

Flight Crew Scheduling Screenshot


๐Ÿ‘ฅ Meeting Scheduling

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

Meeting Scheduling Screenshot


โœ… Task Assigning

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

Task Assigning Screenshot


๐Ÿ“† Project Job Scheduling

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

Project Job Scheduling Screenshot


๐Ÿ† Sports League Scheduling

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

Sports League Scheduling Screenshot


๐Ÿ… Tournament Scheduling

Tournament Scheduling service assigning teams to tournament matches.

Tournament Scheduling Screenshot


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.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from TimefoldAI/timefold-quickstarts via the GitHub API.Last fetched: 6/17/2026