I have a set of tasks to organize in Optaplanner. Each task has 2 planning variables: 1) when the task starts and 2) how long it should be.
However, I do not need all the tasks to be scheduled. To account for this, I added a new Boolean variable "active", that can be True or False. To reduce the search space, I would like that for tasks that have "active = False" the algorithm does not consider the other two planning variables (time and duration).
Is there a way to achieve this?