Relative Content

Tag Archive for optaplannertimefold

how to use Shadow variable

For the convenience of calculation, I defined Cc as shadow variable and ComposeCc as the genuine planning variable.
I want to achieve: when the planning variable of ComposeCc changes, all Cc associated with the ComposeCc will also change. So I do the following steps:

how to use Shadow variable

For the convenience of calculation, I defined Cc as shadow variable and ComposeCc as the genuine planning variable.
I want to achieve: when the planning variable of ComposeCc changes, all Cc associated with the ComposeCc will also change. So I do the following steps:

Replacing default solution cloner

For my planning problem with one real planning entity class I need to declare various PriorityQueues in one of the problem classes.

How to Configure Timefold to leave unassigned values in planning entity

I’m working on a scheduling problem where I need to assign technicians to service devices. However, in some cases, it is preferable to leave a device unassigned if no suitable technician (lack of demanded skills) is available (i.e., the device.pesel should be None). I’ve structured my domain model as follows: