How to implement a dynamic termination logic for TimeFolder solver
I have customized the TimeFold
employee scheduling sample source. The default setting quarkus.timefold.solver.termination.spent-limit=30s
is currently used which is 30 seconds for the schedule to prepare. But I have to implement a terminator, like if there is no 1% score improvement for 30 seconds. Then solver will terminate, otherwise it will continue the calculation.
How to implement a dynamic termination logic for TimeFolder solver
I have customized the TimeFold
employee scheduling sample source. The default setting quarkus.timefold.solver.termination.spent-limit=30s
is currently used which is 30 seconds for the schedule to prepare. But I have to implement a terminator, like if there is no 1% score improvement for 30 seconds. Then solver will terminate, otherwise it will continue the calculation.
How to implement a dynamic termination logic for TimeFolder solver
I have customized the TimeFold
employee scheduling sample source. The default setting quarkus.timefold.solver.termination.spent-limit=30s
is currently used which is 30 seconds for the schedule to prepare. But I have to implement a terminator, like if there is no 1% score improvement for 30 seconds. Then solver will terminate, otherwise it will continue the calculation.
The rule is not executing
I have a rule, it will select one shift from the group of shifts. It will penalize if the group contains two or more shifts.
How to sum up the duration for last 7 days in TimeFold
I have a reference shift shift1
. From the date and time of shift1
, we have to calculate the sum of all shift durations for the past 7 days. The explanation of the variables are as follows: