https://github.com/tomcools/santa-java-advent
This repository contains the example code for my blog post at Java Advent about Timefold Solver.
https://github.com/tomcools/santa-java-advent
optimization santa timefold
Last synced: about 1 month ago
JSON representation
This repository contains the example code for my blog post at Java Advent about Timefold Solver.
- Host: GitHub
- URL: https://github.com/tomcools/santa-java-advent
- Owner: TomCools
- Created: 2024-11-23T12:44:42.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-12-19T10:50:12.000Z (5 months ago)
- Last Synced: 2025-03-24T11:14:15.509Z (about 2 months ago)
- Topics: optimization, santa, timefold
- Language: Java
- Homepage:
- Size: 51.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Optimizing Santa's Travels (Java Advent) 🎅
This repository contains the example code for my blog post at [Java Advent](https://www.javaadvent.com/) and for the related Christmas video.
It is purposefully kept simplistic to show how to use *Timefold Solver* in a minimal example.For more advanced examples, check out the [Timefold Quickstarts Repository](https://github.com/TimefoldAI/timefold-quickstarts).
This project was heavily inspired by the [Vehicle Routing Quickstart](https://github.com/TimefoldAI/timefold-quickstarts/tree/stable/java/vehicle-routing).## Technologies Used 🎄
- [Timefold Solver](https://docs.timefold.ai/timefold-solver/latest/introduction), an Open Source AI Solver.
- [Quarkus](https://quarkus.io/), the Supersonic Subatomic Java Framework.
- [LeafletJS](https://leafletjs.com/), Javascript library for interactive maps.## Running the application 🛷
You can run your application in dev mode that enables live coding using:```shell script
./mvnw compile quarkus:dev
```After visiting localhost:8080, you will be presented with a simple UI.
Click the map a couple of times to add some visits for Santa, then click the _solve_ button.https://github.com/user-attachments/assets/0e0909e6-cc89-4ea4-82c8-262cbd4c06e7