Questions tagged [timefold]

Questions about Timefold Solver and Timefold Quickstarts.

Timefold is the open source AI solver to optimize operations and scheduling in Java, Python or Kotlin code. It makes planning optimization easy.

Use cases include the vehicle routing problem, maintenance scheduling, employee shift scheduling, job shop scheduling and other planning problems.

45 questions
0
votes
1 answer

optaplanner,timefold solver start failed

I encountered an error while using timefold, and it seems to be related to registering the Collector. Below is my code and the error message. @Test public void testOptaPlanner() { List shifts = Mock.generateShift(); …
0
votes
1 answer

Get a Timefold Solver Jobs Current Phase

As far as I can tell, the answer to this is no but I'll ask anyways. I'm aiming towards providing as much transparency as possible for our "scheduling users". I have domain specific life-cycle events and would like to include the current state of a…
Pezetter
  • 2,783
  • 2
  • 22
  • 40
0
votes
2 answers

Timefold: 'Construction' of a solution, when initial solution is already feasable

I have a @PlanningEntity called a Participation, where the @PlanningVariable enrolled indicates whether Student is attending the Appointment in question: @PlanningEntity public class Participation { private Student student; private…
Radical
  • 1,003
  • 1
  • 9
  • 25
0
votes
0 answers

Configuration issues when generating schedule of flexible routines without overlapping other events, when optimizing on specific constraints

First of all, sorry for this long ass question, but I am trying to include all relevant facts for getting accurate help with my configuration. If yet I am missing something, I'm happy to clarify! I’m trying to use Timefold to schedule user-created…
Luca K
  • 11
  • 1
0
votes
1 answer

I think My Constraint didn't work as I intended

I'm newbie here and my English isn't that good, so I hope what I want to explain can reach all of you. Now I am using Python library called Optapy, and I tried to try it to auto scheduling production in my factory. I set Schedule Class as a planning…
0
votes
1 answer

which time format is used in optaplanner for the vehicle routing problem time windowed with JSON file

I use JSON file exists in example in optaplanner for the vehicle routing problem time windowed, but I have a problem with time window format. What is the best format recognized by this file? thank you. I tried hours format, the window time is well…
0
votes
1 answer

Unplan a variable that does not satisfy a constraint

Is it possible with Timefold to unschedule one or more variables. For example for vehicle routing I want to set up a start date and an end date and if an intervention is scheduled after the end date then it will be unscheduled in my solution, i.e.…
BrayanMa
  • 5
  • 2
0
votes
1 answer

how to make the entity in a solution in a specific order?

here i hava a @planningEntity Entity and a @planningEntity Request, this two classes are connected by: public class Request { @PlanningListVariable private List EntityList; and public class Entity{ …
romee
  • 1
  • 1
0
votes
1 answer

OptaPlanner starts violating hard constraints if I introduce a new problem fact (and says the hard score is 0)

I'm very confused about this. Even ChatGPT is unsure of what's wrong. So I need to turn to the real experts. My project can be found here: https://github.com/matthewjd24/OptaPlanner-Scheduler This code has been adapted from the Hello world quick…
MattWolc24
  • 106
  • 1
  • 9
0
votes
1 answer

How to calculate breaks and stops in Chained through time pattern

I saw in the TimeFold documentation the design pattern to do continuous planning. I have seen an example of a schedule and would like to know how sleeping time or extra working time is taken into account in the resolution. timefold example There is…
BrayanMa
  • 5
  • 2
0
votes
1 answer

OptaPlanner/Timefold - Timetable generation with repeated lessons

I am using the documentation of timetable generation quickstart at https://timefold.ai/docs/timefold-solver/latest/quickstart/spring-boot/spring-boot-quickstart.html#springBootJavaQuickStart. As per the quickstart, If a subject is taught multiple…
Mubin
  • 4,192
  • 3
  • 26
  • 45
0
votes
2 answers

Optaplanner / Timefold - employee roster stuck on poor allocation

I've inherited a Optaplanner based employee roster system. It is largely based on the Optaweb example. I've updated it to use Optaplanner 9.41.0.Final and will soon try to upgrade to Timefold, although I'm suspecting that this will not solve the…
Magick
  • 4,603
  • 22
  • 66
  • 103
0
votes
1 answer

How to list reasons for point deductions with EasyScoreCalculator?

In my EasyScoreCalculator code, whenever it deducts points from the soft score because of logic I set up, I want it to record some sort of message for me to view with the solution to help explain the score ("Deducted X points because Job Y is…
MattWolc24
  • 106
  • 1
  • 9
0
votes
1 answer

Timefold Over Constrained Planning Initializing Score Trend

I have a single entity and a sing planning value. The planning value is nullable. Hard/Medium/Soft score configuration. All of the constraints are penalties/negative. I'm trying to figure out if InitializingScoreTrend is applicable to…
Pezetter
  • 2,783
  • 2
  • 22
  • 40
0
votes
1 answer

Retrieve problems for each assignment of planning variable

I'm working on a school scheduling application based on OptaPlanner that displays problems interactively during drag and drop: I have naively implemented this by looping over every valid timeslot, assigning it to the lecture then retrieving the…
aioobe
  • 413,195
  • 112
  • 811
  • 826