Get the latest tech news

Cracking the Scheduling Code in Hay Day


Learn how to solve the scheduling problem in the Hay Day game using Mixed-integer linear programming and Google OR-Tools.

It is a farming simulator where you can plant crops and trees, raise animals, sell products, compete in derbies, and so much more. Here,`horizon` represents the maximum possible time required to complete all tasks, assuming they are executed sequentially. For tasks that can run on multiple machines, we create optional intervals and presence variables to handle the flexibility.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of scheduling code

scheduling code

Photo of hay day

hay day