241 questions
Advice
0
votes
2
replies
54
views
Is Redis a good and compatible choice for sharing state with Timefold in a multi-node setup?
I’m using Timefold real-time scheduling in this setup:
Two application nodes
Requests are distributed via a VIP / load balancer (round-robin)
Each node runs its own Timefold solver instance
Nodes ...
Best practices
1
vote
1
replies
46
views
Distance Providers for VRP with Timefold/Optaplanner
In any VRP solution that involves actual driving distances, we need to use a service to get the distance between any two points, be it Google maps or Nominatim etc. What is the best practice for ...
0
votes
1
answer
31
views
Timefold - Pin selected items in a @PlanningListVariable
I'm currently trying to pin down selected items in a @PlanningListVariable, but can't get it to work.
My planning problem: I have to schedule tasks to be completed by certain inspectors on a certain ...
1
vote
1
answer
49
views
Field service routing: Posting a simple test data set gives validation errors
I tried following the instructions found in the Hello world tutorial for field service routing, found at this link. I copied the input dataset verbatim and posted it to the API seems to work well, but ...
0
votes
0
answers
76
views
ValueRangeProvider on the Planning Entity
Is it possible to use a ValueRangeProvider on the Planning Entity with the python version of Timefold.
I am creating a employee schedule program modifying the quick start. I use a hard constraint for ...
1
vote
1
answer
61
views
How to capture side effects on planning entities
If I have a form of the vehicle routing problem where I have to manage stock of items between locations, is there a way for the solver to keep transfers of inventory between entities consistent.
At a ...
0
votes
1
answer
80
views
timefold mixed model, how to define CH
How to define CH, if both basic and list variables are included in the model, there is an error as below:
The entity (class com.app.planner.domain.Machine) has both basic and list variables and cannot ...
0
votes
2
answers
80
views
How to get all constraint names from the Timefold ConstraintProvider?
I want to use per-request ConstraintWeightOverrides to allow users to customize the constraint weights. In order to not have to save a literal list of constraint names in the UI code, I want to add a ...
0
votes
1
answer
64
views
VRP modelling in Timefold for a fleet of electric vehicles with a maximum driving range and special trips to recharge
I am working on a Vehicle Routing Problem (VRP) where the fleet consists of electric vehicles. Apart from other properties in Timefold VRP example, vehicle class has:
1. A maximum driving range in ...
0
votes
1
answer
89
views
How to aggregate benchmarks in Timefold using Benchmark Aggregator?
I want to implement a way to aggregate all existing benchmarks from benchmark directory in a single comprehensive report. As far as I know, I will need the BenchmarkAggregator class to do this. I also ...
0
votes
1
answer
79
views
Problems when using SelectionFilter in multiple PlanningVariable scenarios
Now I create a solution A, a planning entity B and multiple planning variables(planning date and C).
@PlanningSolution
class A{
@PlanningEntityCollectionProperty
private List<B> bList;
}
@...
0
votes
3
answers
92
views
Timefold migration issue - Timefold's bom doesn't seem to be found?
In an attempt to migrate an old optaplanner project of mine to timefold's fork, I executed the instructions as given on TimeFold's site at https://timefold.ai/blog/upgrade-optaplanner-to-timefold
I ...
0
votes
0
answers
92
views
Allow unassigned planning variable
I'm trying to use TimeFold AI solver (in quarkus), with two planning variables. The value ranges for these variables are provided via valueRangeProviderRefs, which supply the corresponding lists of ...
3
votes
1
answer
245
views
Timefold Python project terminates on encountering Timefold decorators
I have been working with Timefold in Python for a while and wrote a setup manual for a Timefold project. When testing this setup manual on another device we ran into a problem. It doesn't seem to ...
1
vote
1
answer
83
views
Setting a predecessor constraint in timefold python
I am trying to implement a predecessor constraint similar to the Job Scheduling example given in java.
But I struggle with the ordering constraint definition to consider predecessors.
I have defined ...