Relative Content

Tag Archive for javatimefoldnp-hard

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.