An open API service indexing awesome lists of open source software.

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.

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